0

Can you help me

In order to discourage excessive electricity consumption, an electric company charges their customers with a lower rate of 50.00 $ for each kilowatt-hour consumption for the first 25 kilowatt- hour and a higher rate of 95.00 $ per kilowatt-hour in excess of 25 moreover, 8.5% adjustments tax is added to the final electric bill.Create a C program to compute the electric bill given the number of kilowatt-hour consumption.Display the consumption the excess consumption and the final electric bill of the customer

8th Oct 2021, 2:22 PM
Christian rama
5 Réponses
+ 3
Jibraeel Abdelwahhab, you are showing a really nice code to help someone solving a task. we all appreciate this very much!  (this is my personal statement - but it is not to criticize someone !!) but there is an issue by giving a ready solution, when the op has not done and shown his attempt first. as a part of the community i believe that learning by doing is more helpful, than just using a shared solution. we should act more as a mentor.  it is a very successful way when we are giving hints and help, so that the op is able to solve his task by himself. it would be great if you are going to help us to keep sololearn what it is: ▪︎a unique place to learn (we are a "self" learning platform!) ▪︎an absolutely great community that is willing to help other people  ▪︎a great resource of people which has an unbelievable knowledge in coding and a long lasting experience ▪︎a place to meet people and to discuss with them all the possible points of view thanks for your understanding
8th Oct 2021, 3:57 PM
Lothar
Lothar - avatar
+ 3
Christian rama , to get useful help from the community,  we need to see your attempt first. without having seen your code, it is difficult to find out where the issue is. => please put your code in playground and link it here thanks!
8th Oct 2021, 3:59 PM
Lothar
Lothar - avatar
+ 1
Its simple first solve this question mathematically then try to do it in programming how many variables you required and calculation steps try to implement it u need to know about basics of data types float int .....
8th Oct 2021, 3:00 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Hello ! The objective of your problem is to take some number of hours and tally up a bill for the customer. For the first 25 hours, you only charge 50 per hour. Above that amount is 90 per To solve this first part of the problem, you will want to make a loop for the number of hours given and increment the price by 50 until it reaches 26 where it increments by 90. Once you do this, you will have the subtotal. Next you will have to add tax to that amount at %0.085. I have also provided a solution here : https://code.sololearn.com/cb8b549w9QlE
8th Oct 2021, 3:04 PM
Jibraeel Abdelwahhab
Jibraeel Abdelwahhab - avatar
0
https://code.sololearn.com/c3T6P7ft1xnH/?ref=app This is the code that that i try to thank you for help
8th Oct 2021, 10:29 PM
Christian rama