Question: Program specification: A canoe hire company charges a fixed amount of 2 5 for hiring out a canoe, which includes the first two hours of
Program specification: A canoe hire company charges a fixed amount of for hiring out a canoe, which includes the first two hours of canoeing. They charge per hour or part of an hour thereafter if the canoe is hired for longer than hours. A program is required that will let the canoe hire company indicate when a canoe is taken out and when it is returned later in the day. The program should then output the hire charge for that day. The program uses a hour clock. Time canoe taken out is data input required from the user. Select, from the dropdown list, the other data input the user should be asked to provide. Answer Choose... initial hire chargeTotal amount charged per hour chargeTime canoe returned
The initial hire charge is fixed data implied by the program specification. Select from the dropdown list the other item of fixed data implied by the program specification.Answer Choose...Time canoe returned per hour chargeTotal amount chargedTime canoe taken out
Select from the dropdown list the output that is required.Answer Choose... per hour chargeTime canoe taken outTime canoe returned initial hire chargeTotal amount charged
The following is part of an algorithm for this program. Select the appropriate option from the dropdown list to complete this part.
Set duration to time returned time taken out
Set rounded up duration to duration rounded up to whole hours
Set time charged to rounded up duration
Set amount charged to Answer Choose...Time canoe taken outTime canoe returnedRounded up durationDurationTime charged
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
