Test 1
Any similar code will result in zero test marks for all parties involved. No questions asked.
Write, save, and run a Python program, named [Link] that will do the following when run.
Upload your [Link] file to the Test 1 assignment folder in the course shell under Assessments
> Assignment menu. Only one submission is allowed.
1. Use your full name as a comment. Ask the student’s full name and 1 mark
student ID in one statement.
2. Create 3 lists. One to store product names, one for their prices, and 2 marks
another for number of items purchased.
3. Using a loop, will ask the user to enter the names of 3 purchased 4 marks
products one at a time and place them in the list.
4. Using a loop, will ask the user to enter the prices for the 3 purchased 5 marks
products one at a time and place them in the list. Only positive prices can
be accepted.
5. Using a loop, will ask the user to enter the number of items of each 5 marks
purchased product, one at a time and place them in the list.
Only valid numbers can be accepted.
6. Using loops, it will populate a list with the total cost of each product. 5 marks
7. After all data has been received and produced, displays the student’s full 8 marks
name and student ID in two lines. It then displays the user entered
product names, number of items purchased, and prices, using the data in
the lists. It finally displays number of items purchased of each product,
the product price, and total cost as shown in the sample run.
8. The output should be similar to the sample run, with the proper spacing 5 marks
and formatting. The program should accept all the necessary data first,
and then print the output.
Total: 35 marks
Sample run: