Question: Java code please - Programming Lab (64) Q2 (12 Mario: CLOI, CLOS, CLOJ Local car body shop offers two types of customization classic and sport

Java code please Java code please - Programming Lab (64) Q2 (12 Mario: CLOI, CLOS,

- Programming Lab (64) Q2 (12 Mario: CLOI, CLOS, CLOJ Local car body shop offers two types of customization classic" and "sport" The cost of als AED 1000 for cars'. AED 1500 for sine 'R', & AED 2500 for sine 'V'. The cost of a "sport" is AED 3000 for CM iH, AED 3500 for sine R. & AED 4500 for skrev The customization are available in any color the customer desires. The coloring cost is AED 3000 The user can choose to go with coloring or not. The coloring cost is ZERO if the user enter NO for the color selection Write a program that reads the input from user as the following information: The customization type specified by the character 'C' or 'S', for "classic" or "sport" The car size specified by the character 'H', 'R' or 'V' for "Hachback", "Regular" or "Van". If the customization type and car size are correct: The program calulates the cost of customization base on customization type and car size The program asks the user for the car color specified by a word, like: "white", "red","black"...ets The program calulates the cost of car coloring. The coloring cost is ZERO if the user enter"NO" for color hint: convert the color name to Uppercar then compare with "NO" If the customization type or car site are NOT correct: Display error message. The output to user should define details of the cost for customizing the car. Also calculates and outputs the total cost: Total Customization cost - Cost base on customization type and car size + Cost for coloring Sample 1 Input/Output Enter the customization type for classic and (S) for Sport) Enter the car sine (CH) for Hachhack, (R) for Regular and (V) for Van R Enter the car coloring Enter (NO) for no color: black Cool base on customization type and car AED 1500 Cost for coloring AED 3000 Total Cost AED 4500 Sample 2 Input/Output: Enter the customation type (for classic and (s) for Sport) Enter the car size) for Hochback (R) for Regular and (V) for Van Enter the frame color amene Cost base os customization type and cars: AED 3000 Cost for coloring: AEDO Total Cost AED 3000 Sample 3 Input/Output: Enter the customization type C) for classic and (S) for Sport K Enter the car size (CH) for Hachback, (R) for Regular and (V) for Van: H Enter the frame color in lowercase format red Wrong customization type or care

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!