Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description This assignment is to be implemented using object - oriented programming. The overall objective is to create a program that implements the processing of
Description
This assignment is to be implemented using objectoriented programming. The overall objective
is to create a program that implements the processing of customer orders for robots from a robot
construction company : ITR Illawarra Toy Robotics The company builds robots based on orders
placed by customers. As one would expect, each robot has a degree of complexity and will be
assembled, using only parts available in the inventory of the company. Technicians, also called
Builders, that work for ITR have different abilities. For each builder, the ability is variable around
some given value and affects the success or otherwise of a robot build. Details about, customers,
builders and parts will be given in the next sections.
General code notes
These are some general rules about what you should and should not do
Your assignment should be organised into:
a A driver file containing your main function.
b A header file containing the prototypes for the functions you write.
c An implementation file containing the implementations of your functions.
d A Readme.txt file in point
Provide a text file Readme.txt with instructions for compiling your code on command line into
the executable ITR. The Readme.txt should actually be a text file, not a doc or docx or pdf or
rtf or something other than text, and the instruction should be a copy and pastable command.
g filecpp filecpp o itr stdcWall
Your code must use classes and inheritance, all userdefined functions should be
wrapped into classes.
Within your code, be consistent in your tabbing style. We want readable code.
Include sensible volumes of commenting.
Use appropriate variable names and be consistent in your chosen style.
Your main function should make it clear what is going on and should not be too large.
Other than the initial command line input, the program should run without user output. In
particular this means there should not be pauses waiting for the user to press a key.
Dont leak memory.
Highlevel view of this assignment
There are four components: Parts, Customers, Builders and Managers. Each of them serves particular
purposes. Your job is to implement and combine them to simulate the production process of the
Illawarra Toy Robotics.
Parts
There must be a class for Parts The company maintains an inventory or catalogue of parts used to
build robots. Data file describing the available parts is named Partstxt The structure of the file is
as follows colons are used to separate fields and the full stop to end the line:
Part code:Part name:Minimum:Maximum:Complexity.
Example:
A:Head:::
B:Torso:::
C:Leg:::
D:Arm:::
E:Tail:::
As shown above, each part has a code indicated by single capital letter. The Minimum and
Maximum are limits on the number of the corresponding part type allowed in a proposed build. For
example, the minimum number of Head is and maximum is ; Torso, Leg, Arm and Tail have
minimum of The complexity refers to the difficulty of producing this part and will impact the
success rate of the final production.
Customers
There must be some classes for Customers Customer data is contained in a file that is named as
Customerstxt and has no more than entries. It provides information about the customers
name, project name and the parts required to build the order. The structure of the file is as follows
colons are used to separate fields and the full stop to end the line:
Customername:Projectname:Listofparts:VIPbit:qualityrequirement
Example:
Carly:Cat:ABCCCCE::
Dan:Dog:BCACECC:
Ernie:Ettin:AABCCDD::
Sally:Snake:AEEEE:
Harrison:Hedgehog:AACDEE::
Isabella:Iguana:AABCDEE:
Nolan:Newt:AABCDDE:
Olivia:Ostrich:AABCCDD:
Emily:Elephant:AABCDE::
Natalie:Nightingale:AABCDE:
The Customername is the name of the customer that submitted the order. It is a nonempty
string of printable characters that may include spaces.
If the VIPbit equals the customer is an ordinary customer. If the VIPbit equals it
indicates that the customer is a VIP and will be prioritized to match with a Senior builder. If the
customer is a VIP customer, the next data in the line will be the qualityrequirement quantified as
an integer value.
The Project name is chosen by the customer and is supposed to represent the type of robot
to be built. It is a nonempty string of printable characters that may include spaces.
The List of parts contains a list of letters with each letter corresponding to a part in the
Partstxt file. They do not need to be in alphabetical order. There should not be more than parts
for any order.
Question to think about: how many classes we need to have for customers? What is their
relationship?
Builders
There must be some
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started