Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

homework help in C++ The user will enter the following information interactively: 1. The pet name, 6. The discount rate 2. The pet weight 7.

homework help in C++
image text in transcribed
image text in transcribed
The user will enter the following information interactively: 1. The pet name, 6. The discount rate 2. The pet weight 7. The number of nights the pet will stay 3. The owner name, 8 . The number of times per day to feed 4. The age of the pet the pet 5. The number of medicines that the pet will take each day KNOWN INPUT/FACTS 1. For all owners, medicines are $25.88 3. The standard hair cut cost is $35.17. each. 4. The overtime hair cut cost is $10.55. 2. Shampoo services are mandatory and 5. The cost per feeding is $5.00. cost $15.88 per ounce per pet. 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 12021 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 pet's weight in ounces is found by multipling the dog's weight in pounds by 16. 9. The Shampoo cost is found by multiplying the dog's 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

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

Students also viewed these Databases questions