Question
1] I need to createe a program in python 3.x and submit the python file. 2] I also need a screenshot of the output. 3]
1] I need to createe a program in python 3.x and submit the python file.
2] I also need a screenshot of the output.
3] Build a python program to calculate total expenses, given/inputs the shopper name, shopping date supermarket name, item name, item price, quantity (The formula to calculate the total is Total = Item price * Quantity.) Display/outputs shopper name, shopping date, supermarket name, item name, price, and total. Add commute expense and type such as taxi fee, bus, your own car, and so on.
4] You are allowed to hard code the values in this assignment or use input() function
Example:
name = "Sambaz"# hard coded value
name = input("What is your name")
Use simple coding, do not use function def. You need to submit the output of your code.
Sample output: (receipt)
Shopper name: Ymmas Azaba
----------------------------------------------------------------------------------------------------------------------------
Apus food store
2/20/2020
ItemPriceQuantityTotal
Banana1.0522.10
Commute expense
Commute type: TaxiFee:5.00
Total expenses7.10
----------------------------------------------------------------------------------------------------------------------------
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started