Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2 (12 Marks): CLO1, CLO2, CLO3 Local car body shop offers two types of customizationclassic and sport: The cost of a classic is AED 1000

image text in transcribed
image text in transcribed
Q2 (12 Marks): CLO1, CLO2, CLO3 Local car body shop offers two types of customization"classic" and "sport": The cost of a "classic" is AED 1000 for car size 'H', AED 1500 for size 'R', & AED 2500 for size 'V'. The cost of a "sport" is AED 3000 for car size 'H', AED 3500 for size 'R', & AED 4500 for size *V". 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 specifi y 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 Uppercae then compare with "NO". If the customization type or car size 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 Q2 (12 Marks): CLO1, CLO2, CLO3 Local car body shop offers two types of customization"classic" and "sport": The cost of a "classic" is AED 1000 for car size 'H', AED 1500 for size 'R', & AED 2500 for size 'V'. The cost of a "sport" is AED 3000 for car size 'H', AED 3500 for size 'R', & AED 4500 for size *V". 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 specifi y 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 Uppercae then compare with "NO". If the customization type or car size 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 Q2 (12 Marks): CLO1, CLO2, CLO3 Local car body shop offers two types of customization"classic" and "sport": The cost of a "classic" is AED 1000 for car size 'H', AED 1500 for size 'R', & AED 2500 for size 'V'. The cost of a "sport" is AED 3000 for car size 'H', AED 3500 for size 'R', & AED 4500 for size *V". 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 specifi y 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 Uppercae then compare with "NO". If the customization type or car size 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 Q2 (12 Marks): CLO1, CLO2, CLO3 Local car body shop offers two types of customization"classic" and "sport": The cost of a "classic" is AED 1000 for car size 'H', AED 1500 for size 'R', & AED 2500 for size 'V'. The cost of a "sport" is AED 3000 for car size 'H', AED 3500 for size 'R', & AED 4500 for size *V". 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 specifi y 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 Uppercae then compare with "NO". If the customization type or car size 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

=+C&B (especially taxation) laws, regulations, and practices?

Answered: 1 week ago