Question: i need help creating a program for this assignment this also uses C language In-class exercise on basic conditionals Point value 25 points Write a

i need help creating a program for this assignment this also uses C language  i need help creating a program for this assignment this also
uses C language In-class exercise on basic conditionals Point value 25 points
Write a program that will 1. Have a comment section at the

In-class exercise on basic conditionals Point value 25 points Write a program that will 1. Have a comment section at the top of the program similar to the following: /* Your Name The Date Week 4 Assignment */ I 2. Write a C-Language program that will present a basic menu with three selections: 1 - Camaro 2 - Mustang 3 - Charger And will accept a number (1-3) as input 3. Based on the number the user entered, use 'if statements to set a variable called 'price' that will contain the base price for the car You don't have to use real prices, just make some up. 4. Then, the program will ask the user if they want the 'deluxe' package, Use 'scanf and the %c conversion character to get the user's response (y). 5. If the user answered 'y', then add the deluxe package price ($150.00) to the price of the car 6. Then the program will add the tax (0875) to the price and 7. Finally output the total price of the car. Here is some sample output from the program I wrote to solve this problem (next page) (You don't have to make yours look just like mine, but it should be similar) CACOSC1320Worklassignment bin Debuglastigent.ee D X 1 2 3 --Car Buyer--- Camaro Mustang Charger Please select 1, 2, or 3: 3 And do you want the deluxe package with that? y Your new Charger will cost: $32788.13 Process returned @ (exe) execution time : 5.385 s Press any key to continue. #include int main() CON 9 10 11 char Typesofcars -1; /*1 Sama 2 - mustang 3 - challenger/ printf("\tCar Buyer "); printf("1 Camazo "); printf("2 Mustang "); printf("3 Challenger "); printf ("please select 1, 2, or 3:"); scanf("%d", &Typesofcars): char cResponse = ""; /*y - +250.00 to total n = */ printf ("And do you want a deluxe package with that?"); scanf("d", &cResponse); 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 float fcamaro - 32952: if (Typesofcars printf("d"); return 0; 9

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!