Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago