Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Study the algorithm and complete the question(s) that follow: ~Algorithim_to_BuyElectriciy Int units Float cost units = display Enter Number of units you would like
Study the algorithm and complete the question(s) that follow: ~Algorithim_to_BuyElectriciy Int units Float cost units = display "Enter Number of units you would like to buy if units < 20 then else cost units * 2.00 if units >= 50 then cost = units * 1.50 else display You have entered invalid number of units" endif endif display "The cost of ", units, "units is R", cost end Question 6 6.1 Trace the algorithm above using 55 as the number of units. (10 Marks) 6.2 Modify the algorithm so that the buyer is given a 15% discount if they buy their units on or before the 7th of the month. The algorithm should allow the user to enter any amount and calculate their change. (10 Marks) [Sub Total 20 Marks]
Step by Step Solution
★★★★★
3.31 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
61 Tracing the algorithm with 55 units The user enters 55 as the number of units they would li...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started