Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need in c++ with output f) x#ceil(-6.4); ceil(-fabs (-8 floor(-5.5)); 6.12 Parking Charges) A parking garage charges a $20.00 minimum fee to park for up

image text in transcribed

need in c++ with output

f) x#ceil(-6.4); ceil(-fabs (-8 floor(-5.5)); 6.12 Parking Charges) A parking garage charges a $20.00 minimum fee to park for up to three hours. The garage charges an additional $5.00 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $50.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three cussers who parked their cars in this garage yesterday. You should enter the hours parked for each custos Your program should print the results in a neat tabular format and should calculate and print the iorsi of yesterday's receipts. The program should use the function calculateCharges to determine the srarge for each customer. Your outputs should appear in the following format: Car Hours 1.5 4.0 24.0 TOTAL 29.5 Charge 20.00 25.00 50.00 95.50

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions