Question 7 2010 · October-November · Paper 13 · 10 marks
Reveal official mark-scheme answer
Official answer for Question 7
- Initialise counter
- While (or repeat) loop
- with correct condition
- Initialise variables
- Sensible variable names used
- Input hours inside loop
- calculate PAY
- calculate TAX
- Condition statement whether to pay tax
- Calculate pay after tax/set tax to 0
- Output name /pay/tax inside loop
- Input next name
- Count incremented inside loop
- Count output outside loop
Show text version of question
Question 7
An algorithm is to be created to calculate the pay for the workers in a factory.
The name of each worker is input with the number of hours worked that week. Workers are paid in Lienes and cents, a Liene being local currency.
100 cents = 1 Liene
Each worker is paid 2.85 Lienes per hour. If a worker earns more than 80 Lienes in a week they must pay 20% of anything over 80 Lienes in tax. Their pay is then reduced by that amount.
Produce an algorithm for the software which will output for each worker: their name; their pay for the week; the tax they must pay.
The algorithm will continue to calculate the pay of workers until the value 'xxx' is input as the worker's name.
The number of workers should be output at the end of the algorithm.
Question 4
The remaining questions refer to the following information.
are being milked each cow is given some extra food to supplement what they eat in the fields. Each cow needs a different amount and type of extra food.
Why this question appears here
91% assigned-topic match · Programming › Constructs
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_w10_qp_13.pdf
