Drew G. answered 05/04/20
Software Engineer with Computer Science Degree From Ohio State
So for this problem, it seems you have to calculate a rate that changes based on what unit number you are currently on. So you will need to have a dynamic way to change the rate. This is how I would write the pseudocode! unitCounter = 0 bill = 0 rate = 0 loop for all units: if unitCounter less then or equal to 50 units: rate = .50 else if unitCounter is less then or equal to 150 units: rate = .75 else if unitCounter is less then or equal to 250 units: rate = 1.20 else if unitCounter greater than 250 units: rate = 1.50 bill = bill + rate unitCounter += 1 surcharge = bill * .20 bill = bill + surcharge print bill