- University Admissions
- Subject
- Business Tutoring
- Management
- Computer Science / it
- Mathematics
- Finance
- Social Sciences
- Healthcare and Nutrition
- Science
- Humanities
- Biotechnology
- Law
- Communication
- Services
- Editing & Proofreading
- Blog
Note: This hurdle task is a time-bound test. You have a 48 hour window during week 8 to complete it.
If you receive a Redo grade, you must pass a re-sit test that will occur in week 12 in order to meet the hurdle requirements.
Purpose: Demonstrate your understanding of object-oriented programming and the core concepts of object-oriented design.
Task: You must complete two tasks. The first is a coding task, and the second is a series of short answer questions.
Deadline: This task should be completed during week 8 — see Canvas for the Tutoring window.
Submission Details
Please print your solution to PDF and combine it with the screenshots taken for this test.
Make sure that you submit code that is readable, follows the universal task requirements, and is appro- priately documented.
Consider the following UML diagram:
Sales is a class that contains knowledge of purchase orders that a business has received. There are two types of purchase orders: single transaction orders and batch orders, which the class Sales records separately in two dedicated lists. Batch orders are instances of class Batch and can be added to its corresponding list, _batch_orders, using method AddBatch. Single trans- action orders, on the other hand, are instances of class Transaction and can be added to its corresponding list, _single_orders, using method AddTransaction. All orders can be printed to the console via method PrintOrders.
Class Batch defines three member variables:
Finally, class Batch defines two read-only getters to obtain the Number and Name of the order. Class Transaction is similar. Its member variables are:
Class Transaction defines a Print and a Total method, which print the order and return the amount of this order, respectively. The read-only getters return the Number and Name of a single transaction order.
A sample output of an application implementing the above UML diagram may look like the fol- lowing (result of telling a Sales object to PrintOrders):
Sales:
Batch sale: #2024x00001, CompSci Books #1, Deep Learning in Python, $67.90 #2, C# in Action, $54.10
#3, Design Patterns, $129.75 Total: $251.75
Batch sale: #2024x00002, Fantasy Books Empty order.
#00-0001, Compilers, $134.60
#10-0003, Hunger Games 1-3, $45.00 #15-0020, Learning Blender, $56.90 Sales total: $488.25
You may have noticed a peculiar feature duplication in the design. In addition, batch orders are limited to containing single transaction orders. This is an arbitrary limitation. Batch orders should be able to contain nested batch orders. Consequently, class Batch should allow for both, objects of class Batch and objects of class Transaction, to be stored (i.e., added to _items).
To achieve this, you need to redesign the system. Start with the abstract class Thing as shown in the following UML diagram:
| <<abstract>> Thing |
| - _number: String- _name: String |
| + Thing(String number, String name)+ Print() <<abstract>>
+ Total() : Decimal <<abstract>> + Number : String <<read-only property>> + Name : String <<read-only property>> |
Restructure the current solution as follows:
You are required to:
25k+
Sessions Done
4.9/5
Student Rating
600+
Expert Tutors
Concept Clarity
Personalized Plan
Affordable Rates
Flexible Schedule
Results Driven
24/7 Support
We have helped students from top universities including the University of Sydney, Melbourne, UNSW, ANU, Queensland, Monash, Flinders, and more in Australia, New Zealand, and the UK.
88% of our students improved their grades after just a few tutoring sessions.
Our students are 4x more likely to achieve top marks with personalized tutoring support.
4000+ students have successfully improved their academic performance across various subjects with our expert tutors.
Students who work with us are twice as likely to achieve their academic goals.
Here’s how we help you maximize your potential and achieve success in your studies at university in Australia.

We help clarify your academic goals, aligning them with your aspirations to create a clear path forward.

Identify strengths and weaknesses, allowing us to tailor your tutoring sessions for maximum impact.

Receive a custom study plan that addresses your unique needs and optimizes your learning outcomes.

Work with a tutor specializing in your subject to receive personalized guidance tailored to your learning style.

We adapt tutoring to align with your goals, ensuring you stay focused on achieving your desired results.

Ongoing support and expert feedback ensure steady progress toward your academic goals and success.
At Tutoring Lounge, we take pride in providing top-quality tutoring services that have helped hundreds of students excel and achieve their academic goals in Australia

Our focus has always been on rigorous quality control and excellent customer service. We hire only the industry’s best editors and put each document through a rigorous three-step quality checking process. With our 24/7 customer service via chat, phone, and email, customers can instantly follow up on their orders and address queries to their editors.




