Python Exercise: please provide screen shoot of the code: 1. Write a function to print a 'cashier receipt' output for a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Python Exercise: please provide screen shoot of the code: 1. Write a function to print a 'cashier receipt' output for a

Post by correctanswer »

Python Exercise:
please provide screen shoot of the code:
1. Write a function to print a 'cashier receipt' output for a
shop( any shop). It should accept 3 items, then sum them up and
print out a detailed receipt with TOTAL.
For example :
Input:
item_1_name="Trainers'
item_1_price=50
item_2_name="T-shirt'
item_2_price=20
item_3_name="Dress'
item_3_price=50
Output:
Trainers 50
T-shirt 20
Dress 50
total 120
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply