Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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 P75 for the first 250 kilowatt-hours and a higher rate of P8.5 for each additional kilowatt-hour. In addition, a 10% surtax is added to the final bill. Write a program thatcalculates the electrical bill given the number of kilowatt-hours consumed as input. At the end, print the number of kilowatt-hours consumed and the computed bill.Sample:Input: 200Output: Kilowatt-hours: 200Electric bill: PHP82.50Input: 260Output: Kilowatt-hours: 260Electric bill: PHP176.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started