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 25 for hiring out a canoe, which includes the first two hours of canoeing. They charge 5 per hour or part of an hour thereafter if the canoe is hired for longer than 2 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 24 hour clock. Time canoe taken out is data input required from the user. Select, from the drop-down list, the other data input the user should be asked to provide. Answer 1Choose...25 initial hire chargeTotal amount charged5 per hour chargeTime canoe returned
The 25 initial hire charge is fixed data implied by the program specification. Select from the drop-down list the other item of fixed data implied by the program specification.Answer 2Choose...Time canoe returned5 per hour chargeTotal amount chargedTime canoe taken out
Select from the drop-down list the output that is required.Answer 3Choose...5 per hour chargeTime canoe taken outTime canoe returned25 initial hire chargeTotal amount charged
The following is part of an algorithm for this program. Select the appropriate option from the drop-down 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)-2
Set amount charged to ( Answer 4Choose...Time canoe taken outTime canoe returnedRounded up durationDurationTime charged *5)+2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!