Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago