Question: Write a program that asks the user how many automobiles are to be described. Plz use simple Java language(BLUEJ is preferred) thank you 2. rafter

Write a program that asks the user how many automobiles are to be described. Plz use simple Java language(BLUEJ is preferred) thank you  Write a program that asks the user how many automobiles are

2. rafter 7.6-easy] Automobile Description Write a program that asks the user how many automobiles are to be described, and for each automobile it inputs the user's selection of make and color. Then it outputs color and make. you could do this easily using a simple procedural program, do it by using a main method in class AutomobileDriver to instantiate an object called auto from a class Automobile. Make your classes conform to the following UML class diagram: AutomobileDriver Automobile make : String color: String main(args: StringID: void setMake0 void setColorO: void printMake:void printColorO: void Let Automobile methods setMake and setColor do the prompting and inputting for make and color, and include input verification which asks again if a selection is illegal. Let Automobile methods printcolor and printMake print color and make on one line. In AutomobileDriver, after asking auto to call setMake and setcolor, use ) to chain the two printing methods. Write code so that the program can produce the following display: Sample session: How many cars do you want to consider? 2 Select Buick, Chevrolet, or Pontiac (b,c,p): x The only valid selections are 'b', 'c', or 'p' Select Buick, Chevrolet, or Pontiac (b,c,p): p Select blue, green, or red (b,g,r):r red Pontiac Select Buick, Chevrolet, or Pontiac (b,c,p): c Select blue, green, or red (b,g,r):g green Chevrolet

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!