Re: a parking garage program
That looks like high school algebra with a few if statements for the extra charges.
Take each sentence and write the equation for the computation.
Re: a parking garage program
can you explain more clear I dont understand
Re: a parking garage program
You need to read your assignment and figure out the equations needed to compute the values that are required to do the program.
Take a piece of paper and write down the customer's charges.
Use many different values for the hours that the customer parked.
For example:
what are the charges for 2 hours?
What are the charges for 5 hours?
What are the charges for 15 hours?