Question: COBOL CODE Write a COBOL IF ELSE and COMPUTE statements to calculate the price of the glass based on the type of glass and quantity
COBOL CODE
Write a COBOL IF ELSE and COMPUTE statements to calculate the price of the glass based on the type of glass and quantity entered by user (refer Figure 2). If user enter invalid Glass Type, show error message.
Hint: total-price = quantity x price (based on the type of glass)
| Glass Type | Price (RM) |
| Clear Glass (Type 1) | 6.00 |
| Frosted Glass (Type 2) | 10.00 |
| Sheet Glass (Type 3) | 12.00 |
| Patterned Glass (Type 4) | 18.00 |
Figure 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
