Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program specification: A firm that specialises in plumbing repairs has a 5 0 call out charge. The first hour spent on the repair is then
Program specification: A firm that specialises in plumbing repairs has a
call out charge. The first hour spent on the repair is then free and they charge
per hour or part of an hour thereafter. A program is required that will let the plumber indicate they have started the repair and indicate when they have finished. The program should then output the amount to be charged.
Questions:
a
Time repair started is a data input required from the user. Select, from the drop down list, the other data input the user should be asked to provide.
b
The
call out 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.
c
Select, from the drop down list, the output that is required.
d
The following is part of an algorithm for this problem. Select the appropriate option from the drop down box to complete this part.
Set duration to time finished
time started
Set
rounded up duration
to duration rounded up to whole hours.
Set time charged to
rounded up duration
Set amount charged to
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started