Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

=+ Dissecting a black-box convolutional neural

Answered: 1 week ago