Click here to Skip to main content
15,881,578 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Write a python program to except food bill in billing counter and calculate the total bill after adding conditions:
1.zero rupees if the bill is less than 500
2.add 10℅ if the bill is more than 500 and less than 1000
3.add 18℅ GST if the bill is more than 1000 and less than 2000

What I have tried:

How to get program to run the above code
Posted
Updated 22-Feb-23 6:22am
Comments
Richard Deeming 22-Feb-23 11:26am    
Nobody here is going to do your homework for you. The only program you'll get is the one you write. If you don't know where to start, then talk to your teacher.

How? You write the code to do it. That's how.

If you've got a specific problem with your code, fine, we can talk about that. But if you don't know where to start, you really need to go back to your teacher about that.

The point of the assignment is not really to teach you the code, but to think about the problem and come up with the steps to solve it. So, start with a piece of paper and a pencil and write out what you would do to get through the above conditions, and keeping track of variables and their values.
 
Share this answer
 
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900