Answered step by step
Verified Expert Solution
Question
1 Approved Answer
To discourage excess electric consumption, an electrical company charges its customers a lower rate of P 7 5 for the first 2 5 0 kilowatt
To discourage excess electric consumption, an electrical company charges its customers a lower rate of P for the first kilowatthours and a higher rate of P for each additional kilowatthour. In addition, a surtax is added to the final bill. Write a program thatcalculates the electrical bill given the number of kilowatthours consumed as input. At the end, print the number of kilowatthours consumed and the computed bill.Sample:Input: Output: Kilowatthours: Electric bill: PHPInput: Output: Kilowatthours: Electric bill: PHP
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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