Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!