Question 5 Write Menu Driven Program Calculate Electricity Bill See Table Tariffs Units 26 Q30129938

Question 5 Write a menu-driven program to calculate the electricity bill. See the table below for tariffs. Units 26 markS Charge(VAT exclusive) R 0.85 R 1.07 R 1.24 1-50 51-350 351 and above A VAT of 14% should be added to the bill. Your program should make use of the following functions calci To 50 ( )-to calculate the charges for the first 50 units. Based on the requirements of the program stated below, you need to decide on the return type and parameters for this function. calc51To350 () -to calculate the charges for the units up to 350. This function should in turn call calclTo50 () to calculate the charges for the first fifty units. Based on the requirements of the ne program stated below, you need to decide on the return type and parameters for this function c350AndAbove - to calculate the charges for units above 350. This function call calc51To350 ) to calculate the charges for the units up to 350. Bas rements of the program stated below, you need to decide on the return alc350AndAbove O) turn call cal re type and parameters for this function 67

media%2F35b%2F35bb56f5-93c4-44bb-8fdb-8d

Question 5 Write a menu-driven program to calculate the electricity bill. See the table below for tariffs. Units 26 markS Charge(VAT exclusive) R 0.85 R 1.07 R 1.24 1-50 51-350 351 and above A VAT of 14% should be added to the bill. Your program should make use of the following functions calci To 50 ( )-to calculate the charges for the first 50 units. Based on the requirements of the program stated below, you need to decide on the return type and parameters for this function. calc51To350 () -to calculate the charges for the units up to 350. This function should in turn call calclTo50 () to calculate the charges for the first fifty units. Based on the requirements of the ne program stated below, you need to decide on the return type and parameters for this function c350AndAbove – to calculate the charges for units above 350. This function call calc51To350 ) to calculate the charges for the units up to 350. Bas rements of the program stated below, you need to decide on the return alc350AndAbove O) turn call cal re type and parameters for this function 67 Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *