Question: Write a simple invoice gencrating program for a pet store as 1- Ask the user for the tax rate and store it in a float
Write a simple invoice gencrating program for a pet store as 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 3- Ask the user for the price of one cat and store it in a float 4- Ask the user for the number of dogs being purchased and 5- Ask the user for the price of one dog and store it in a float store the value in an integer variable. store the value in an integer 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 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) lease enter number of dogs sold: e lease enter the prlce of onedog:22-33 The ACHE Company of Pensacola 234 university Road 1540.00 339.8 lease enter the price of one dog: s The ACHE Company of Pensacele ItemI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
