Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help. In language c View Layout References Mailings Program 1 Write a simple invoice generating program for a pet store as follows: 1- Ask the

Help. In language c image text in transcribed
View Layout References Mailings Program 1 Write a simple invoice generating program for a pet store as follows: 1- Ask the user for tee 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). ease enter tax rate percentage: 7.5 Please enter number of cats sold: 50 lease enter the price of one cat: 1580 lease enter number of dogs sold: 60

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 3 Lnai 8726

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448440, 978-3662448441

More Books

Students also viewed these Databases questions

Question

RP-2 What is the best way to predict a persons future behavior?

Answered: 1 week ago

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago