Question: in language C Vrite a simple invoice generating program for a pet store as follows: 1- Ask the user for the tax rate and store
Vrite a simple invoice generating program for a pet store as follows: 1- Ask the user for the tax rate and store it in a float variable. 2. Ask the user for the number of cats being purchased and store the value in an integer variable. 3- Ask the user for the price of one cat and store it in a float variable. 4. Ask the user for the number of dogs being purchased and store the value in an integer variable. 5. Ask the user for the price of one dog and store it in a float variable. 6- Calculate and store the total price of cats sold in a variable of type double. 7. Calculate and store the total price of dogs sold in a variable of type double. 8- You can only create the 7 mentioned variables. No more variables could be created. 9. Output the invoice with the calculated values the same as the screen shots below. The grader will be using different values and if the program outputs the same numbers for different inputs, then a grade of zero will be assigned. 10- The output should be formatted and aligned exactly as the screen shot ( 30 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
