Question: Your code should starts with def main (): then you should prompt the message of Please enter your meal cost: then assign the value
Your code should starts with def main (): then you should prompt the message of "Please enter your meal cost: then assign the value to x once you have x, you need to figure out the Sales_Tax, which is 0.07 of x then figure out the Tips, let's say 20% of the meal, which is 0.2 * X then you will need to add all of them together and assign the value to Totals For example: Totals = Sales Tax + Tips + x Then display the answer using print statement. Once you are done coding, hit enter twice, then type main() and then hit enter, it should prompt you with "Please enter your meal cost: Sample Run : "1 >>> main () Please enter your meal cost: 100 Your bill is 127.0 >>> "1
Step by Step Solution
There are 3 Steps involved in it
The image shows instructions for writing a piece of code in Python According to the provided instruc... View full answer
Get step-by-step solutions from verified subject matter experts
