Question: A customer buys 2 items at a store with each item being bought in different quantities. Write a program that asks the user to enter

A customer buys 2 items at a store with each item being bought in different quantities. Write a program that asks the user to enter the cost of an item and its quantity. Repeat this for the other item. Finally, output the total amount the customer should pay (with 8.25% tax). Name your program file Hw1_q3_code.c. (TIP: Use scanf function, and float/double data type for prices and int for quantities) Example Hints and Inputs: (italic texts are what the program should print on the screen to instruct the user, the bold texts are what the user types in) Input the price of item1: $5.5 Input the number of item1 you bought: 3 Input the price of item2: $2.5 Input the number of item2 you bought: 10 Example outputs: Total cost = 44.923748

New to C. Trying to get the hang of it, how to start the problem, and actually do it :/ Also sorta panicked because this is due soon

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!