Please write a c++ programming code that can work on codechum according to the instructions below. Meter Reader. We need to start saving money people! I've noticed that we've been spending more money on electricity than everything else combined. In order for us to keep track of our electricity usage, we need to calculate our monthly cost based on our meter readings. Cost: 0 to 100 kWh - P150.00 101 to 500 - P150.00 + 0.5 for each kWh over 100 over 500 - P350.00 + 0.3 for each kWh above 500 Input 1. Rate of energy consumption in kWh Output The first line will contain a message prompt to input the rate of energy consumption in kWh. The second line contains the total cost on electricity usage (in pesos). Enter·the·rate·of·consumption·(kWh):·324 Total·cost·=·P262.00
Please write a c++
Meter Reader.
We need to start saving money people! I've noticed that we've been spending more money on electricity than everything else combined. In order for us to keep track of our electricity usage, we need to calculate our monthly cost based on our meter readings.
Cost:
0 to 100 kWh - P150.00
101 to 500 - P150.00 + 0.5 for each kWh over 100
over 500 - P350.00 + 0.3 for each kWh above 500
Input
1. Rate of energy consumption in kWh
Output
The first line will contain a message prompt to input the rate of energy consumption in kWh.
The second line contains the total cost on electricity usage (in pesos).
Enter·the·rate·of·consumption·(kWh):·324
Total·cost·=·P262.00
![4
0 to 100 kWh - P150.00
101 to 500 - P150.00+ 0.5 for each kWh over
100
over 500 - P350.00+ 0.3 for each kWh
above 500
Input
1. Rate of energy consumption in kWh
Output
The first line will contain a message prompt to
input the rate of energy consumption in kWh.
The second line contains the total cost on
electricity usage (in pesos).
Enter the rate of consumption (kWh): 324
Total cost = P262.00
Score: 0/15
Overview
< 5/6 >
main.cpp
1
C++
Tests
Executions
CE Run Tests
Test Cases
O Test Case 1
O Test Case 2
O Test Case 3
Test Case 4
O Test Case 5
Test Case 6
Hidden
Hidden
Execute Code [F10]
Submit Code](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9f6cc102-fd60-440b-a78b-66526aefdaf5%2F582da6cb-b7d5-498a-9579-035cd415a602%2F22lw3e9_processed.png&w=3840&q=75)
![5. Meter Reader
by CodeChum Admin
We need to start saving money people! I've
noticed that we've been spending more
money on electricity than everything else
combined. In order for us to keep track of our
electricity usage, we need to calculate our
monthly cost based on our meter readings.
Cost:
0 to 100 kWh - P150.00
101 to 500 - P150.00+ 0.5 for each kWh over
100
over 500 P350.00+ 0.3 for each kWh
above 500
Input
1. Rate of energy consumption in kWh
Score: 0/15
main.cpp
1
> +
C++
Tests
Executions
CE Run Tests
Test Cases
O Test Case 1
O Test Case 2
O
Test Case 3
O Test Case 4
O Test Case 5 Hidden
O Test Case 6
Hidden](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9f6cc102-fd60-440b-a78b-66526aefdaf5%2F582da6cb-b7d5-498a-9579-035cd415a602%2F4l7b41j_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)