Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using only material covered in the lectures, write a Python program that will: 1. Use a comment with your full name. 2. Create a list
Using only material covered in the lectures, write a Python program that will: 1. Use a comment with your full name. 2. Create a list with your first name, last name, and student ID. Display your full name on one line and student ID on the next. No user input 3. Using a loop, will ask the user to enter the prices for 4 purchased products one at a time and place them in the list for prices. Only valid prices can be accepted. (i.e price >0) 4. Using a loop, will ask the user to enter the number of items of each purchased product, one at a time and place them in the list for items 5. Using loops, it will populate a list with the total cost of each product. And subtotal of all purchased items( total cost of purchased item before tax) 6. After all data has been received and produced, It displays each item, its price and total cost as shown. Each item will be printed along with the price. Your program will print a subtotal on a new line, Then it will print the total tax for all the items, and finally a grand total
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