0

Please help me with this question..

Write a progran to read customer number,number of calls to calculate telephone bills: Rental charges 250 rupees,first 50 calls free,next 50 calls 0.90rupees/call,next 100 calls 1.50rupees/call, above 200 1.90rupees/call

3rd Oct 2018, 5:44 AM
Pranay Bhoir.
Pranay Bhoir. - avatar
8 Respostas
+ 2
It seems like your homework. You should at least try to solve it yourself. We can help you, but we need to see some attempts from your side. And also write the language you work in.
3rd Oct 2018, 6:16 AM
Jan Štěch
Jan Štěch - avatar
+ 1
Ok, post us your attempt, so we can know how are you doing that and where is the problem.
3rd Oct 2018, 10:16 AM
Jan Štěch
Jan Štěch - avatar
+ 1
for(int i=1; i<=input; i++){ if(i<=50){} else if(i<=100){result+=0.9;} else if(i<=200){result+=1.5;} else{result+=1.9;} }
3rd Oct 2018, 12:25 PM
Jan Štěch
Jan Štěch - avatar
+ 1
Sry. I don't programm in python. The logic will be same. You just need to rewrite the keywords. My version works in C++, Java, C#, PHP, JS, and many other languages.
3rd Oct 2018, 12:30 PM
Jan Štěch
Jan Štěch - avatar
0
can you please make the code?
3rd Oct 2018, 5:51 AM
Pranay Bhoir.
Pranay Bhoir. - avatar
0
I've tried and im not getting it that's why im asking...
3rd Oct 2018, 10:08 AM
Pranay Bhoir.
Pranay Bhoir. - avatar
0
atleast tell me what to write in loop
3rd Oct 2018, 10:43 AM
Pranay Bhoir.
Pranay Bhoir. - avatar
0
want in python form
3rd Oct 2018, 12:28 PM
Pranay Bhoir.
Pranay Bhoir. - avatar