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
Step by step
Solved in 4 steps with 2 images