The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as follows: Damage type Cost 1000 $ 700 $ 400 $ A B C Your program reads in the car model, its owner name,...

How to solve this problem?The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as<br>follows:<br>Damage type<br>Cost<br>1000 $<br>700 $<br>400 $<br>A<br>B<br>C<br>Your program reads in the car model, its owner name, the type of the damage (a character<br>between A&C) and the number of damaged- repairable parts of the car. We assume that the<br>damages per car belong to the same group. You program should find and output the<br>approximate repair cost.<br>Sample Run 1:<br>Enter the car model: Toyota<br>Enter your name: Jad<br>Enter the type of the damage and the number of damaged parts: A 4<br>Hey Jad, you have to pay around 4000$ to repair your Toyota<br>Sample Run 2:<br>Enter your name: Alaa<br>Enter the car model: BMW<br>Enter the type of the damage and the number of damaged parts: C 3<br>Hey Alaa, you have to pay around 1200$ to repair your BMW<br>

Extracted text: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as follows: Damage type Cost 1000 $ 700 $ 400 $ A B C Your program reads in the car model, its owner name, the type of the damage (a character between A&C) and the number of damaged- repairable parts of the car. We assume that the damages per car belong to the same group. You program should find and output the approximate repair cost. Sample Run 1: Enter the car model: Toyota Enter your name: Jad Enter the type of the damage and the number of damaged parts: A 4 Hey Jad, you have to pay around 4000$ to repair your Toyota Sample Run 2: Enter your name: Alaa Enter the car model: BMW Enter the type of the damage and the number of damaged parts: C 3 Hey Alaa, you have to pay around 1200$ to repair your BMW

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here