Question: Based on the question above, adjust the code such that, when you have amounts that are R 0 . 4 9 c or R 0

Based on the question above, adjust the code such that, when you have amounts that are R0.49c or R0.45c in the amount, you need to give either a 50c change or a 40 c. If the amount you owe ends on R0.49, you need to receive a 50c change. If the amount you owe, ends on R0.49, you should receive a 40c change.
Create a table with the amount required and the change is given as in Section A, but only complete ten (10) iterations. Complete five (sets) of two (2) iterations. For example, five (5) iterations for rounding up and five (5) iterations for rounding down. Do not repeat the values used in Section A.
For example, if the amount you need to pay is R11.49, and you pay with R20 not, the change that you will get is as follows:
1x R5
1x R2
1x R1
1 x 50c
The 1c is discontinued therefore you cannot make use of it.
SUBTOTAL: [10]
 Based on the question above, adjust the code such that, when

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 Databases Questions!