Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED HELP WITH THIS IN C++ PROGRAMMING For the following Program Requirement: 1. Determine the formulas needed. 2. Determine the specific order required for correct

NEED HELP WITH THIS IN C++ PROGRAMMING

For the following Program Requirement: 1. Determine the formulas needed. 2. Determine the specific order required for correct calculations of the formulas. 3. Place your name in the comments on the very first line of your program code 4. Write the C++ CODE that will achieve all of the PROGRAMMING REQUIREMENTS (such as calculations, output and user interactive input) in the correct order. 5. Using a C++ compiler, compile & execute your code until a. It contains no errors and is able to run bug-free and b. It results in the correct output. 6. Copy the C++ code into a text editor and save it as a text file named Programming Assignment 2b 7. FINALLY, upload these source code in a rtf file.

The user will enter the following information interactively: 1. The pet name, 2. The pet weight 3. The owner name, 4. The age of the pet 5. The number of medicines that the pet will take each day 6. The discount rate 7. The number of nights the pet will stay 8. The number of times per day to feed the pet

KNOWN INPUT/FACTS 1. For all owners, medicines are $25.88 each. 2. Shampoo services are mandatory and cost $15.88 per ounce per pet. 3. The standard hair cut cost is $35.17. 4. The overtime hair cut cost is $10.55. 5. The cost per feeding is $5.00. 6. The cost per night to board is $55.00.

OUTPUT WILL CONSIST OF: (with TEXT to explain each value)-- ALSO NOTICE SOME DOUBLE SPACING!! LINE 1: BILLING REPORT FOR SEPTEMBER 1 2021 LINE 2: The owner name: XXXX with the Pet named: xxxx LINE 3: Amount Due: $999.999 had a Shampoo cost: $999.99 LINE 5: The cost of Boarding came to: $999.99 and Hair cut: $999.99 LINE 7: The Discount Rate was: 99% The standard cost of the Hair cut was $999.99 LINE 8 Before Any Discount, The amount due was $999.99 The Pet stayed: 999 days LINE 10: The pet was feed: 999 number of days. The Hair Cut Cost came to $999.99 LINE 12: The Aging add-on cost for the Hair cut was $999.99 LINE 13: The Medicine cost for the pet was $999.99 over 999 the stay of 999 nights. LINE 15: END OF REPORT

CALCULATIONS/FORMULAS NEEDED:-- OUT OF SEQUENCE!! 1. The total feeding cost is found by multiplying the number of times the pet was fed by the cost per feeding. 2. The aging hair add-on cost is found by multiplying the old age factor by the overtime hair cut cost. 3. The Hair cut cost is found by adding the standard hair cut cost to the aging hair add-on cost. 4. The medicine cost is found by multiplying the number of medicines that the pet will take by the cost of an individual medicine. 5. The number of medicines that a pet will take is found by multiplying the number of medicines that the pet will take each day by the number of days that the pet will stay. 6. The number of times the pet was fed was found by multiplying the number of times per day to feed by the cost per feeding by the number of nights to stay. 7. The old age factor is found by subtracting one from the age of the dog. 8. The pets weight in ounces is found by multipling the dogs weight in pounds by 16. 9. The Shampoo cost is found by multiplying the dogs weight in ounces by the shampoo services per ounce. 10.The total amount due is found by subtracting the Total Discount amt from the total billable amount. 11.The total billable amount is found by adding the medicine cost, total boarding cost, total feeding cost, total hair cut cost and the total shampoo cost together. 12.The total boarding cost is found by multiplying the number of nights to stay by the cost per night to board. 13.The total discount is found by multiplying the total billable amount by the discount rate.

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_2

Step: 3

blur-text-image_3

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Know how to approach on-the-job training

Answered: 1 week ago