Question: Assuming quantity has already been declared as Integer and discoun t has been declared as Real , write the pseudocode that uses range checking to
Assuming quantity has already been declared as Integer and discount has been declared as Real, write the pseudocode that uses range checking to set the discount based on the following table:
| quantity | discount |
| 0 - 4 | 0.00 |
| 5 - 9 | 0.05 |
| 10 - 14 | 0.07 |
| 15 or more | 0.09 |
You may use either high-end or low-end values for range checking.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
