i have written this program and it does not run due to i have 3:warnings please help i must submit tomorrow#include
Not understanding what you mean just text the exact question so that we will how tackle the problem
A parking garage charges R7.50 minimum fee to park for up to three and a half hours.The garage charges an additional R1.50 per hour for each hour or part thereof in excess of three and a half hours. The maximum charge for any given 24-hour period is R25.72. Write a program that calculates and prints the parking charges for each of the three customers who parked their cars in this garage at the same time. you should enter the hours parked for each customer. your program print the results in a neat tabular format and should calculate and print the total of recipts. The program should use the function calculatecharges to determine the charge for each customer. The payment amounts should be printed inside the body main()
@kay-jay Looks like your code got cut off. Do note we have a limit on the number of characters in a question.
I'm not sure why you used a for loop for input and calculations but I attached a file (ParkingFee.cpp) which is a simple and working code that answer's your question. Your style of C++ coding is kinda oudated and I'm not sure why you're being taught to code like that, software development houses no longer use that kind of code, like where I'm currently working, that code has been taken out completely to the new styles of programming. Sorry I found your question late, but I hope you passed your submission.
@MusaRa thank you i will use it to study for the big test coming ahead
Join our real-time social learning platform and learn together with your friends!