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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to make ads relevant but it doesn't load? btw i won't be able to see the answer so use the comments .
Answers: 1
question
Computers and Technology, 25.06.2019 05:10
Create a console project in c#. 1. create an interface "imyinterface.cs" - add a method "string imessage()" 2. create a class named "c1.cs" - add 4 private data members, create property for each data member double loanamnout=0.0; double years=0.0; double interests=0.0; double interestrate=0.0; 3. - add a constructor with parameters to assign values to loanamnout, years, interestrate with values that user entered. 4. - add one method “payinterests()” to return the interests interests = loanamnout * interestrate * years 5. - inheritate "imyinterface", implement the method " imessage()", return string "be ready! ” 6. in program.cs, have users to enter loanamnout, years, interestrate. - call method payinterests() to display total interests. - call imessage() to display "be ready! ”
Answers: 3
You know the right answer?
Amanufacturer produces three types of products labeled as a, b, and c. these products come in three...
Questions
Questions on the website: 13722361