subject

Amanufacturer produces three types of products labeled as a, b, and c. these products come in three colors red, green and blue. in each production cycle, the manufacturer produces all the combinations of these products but in varying quantities. you are asked to simulate this operation based on the following framework:

you need to define the following classes:

class part:

attributes:

status is an enum type consisting of constants in_stock and

out_of_stock

string type; which will be a, b, or c

string color; which will be either red, green, or blue int quantity; which will be the number of this part in inventory

status partstatus; methods:

define a constructor that initializes all the attributes.

define all the set and get methods.

the method tostring to generate an output that reads:

in green @ 17 is in_stock

or

in blue @ 0 is out_of_stock

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, manny2085
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, mona92
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 23:00, GreenHerbz206
Computer programming is one type of what career
Answers: 1
You know the right answer?
Amanufacturer produces three types of products labeled as a, b, and c. these products come in three...

Questions in other subjects: