Question: 1. Create nine (9) variables to represent the following data. There are three (3) products, each with three (3) related pieces of information: Product

1. Create nine (9) variables to represent the following data. There are

 three (3) products, each with three (3) related pieces of information: Product 

1. Create nine (9) variables to represent the following data. There are three (3) products, each with three (3) related pieces of information: Product ID Price Taxed Product-1 111 111.49 Y Product-2 222 222.99 N Product-3 111 334.49 N Note You must use self-describing variable names to maximize readability and maintainability of the code 2. You might require one (1) extra variable that will be needed to store the average price of all the three products. Therefore do not declare any more than 10 variables altogether. 3. Display each product information as illustrated in the sample output. YELLOW highlighted parts represent where you should be getting user inputs and storing to relevant variables declared earlier The table should be formatted as per the output, you are allowed to decide on the spacing between fields, but should align as shown. o "Product ID" column heading and it's values should align right o "Taxed" column heading and it's values should align center o "price" column heading and it's values should align left Total is calculated by adding the tax component of 13% only if the particular product is taxable (Need conditional statements) o "Total" column heading and it's values should align left Do not hardcode answers in the table. It should be generated from variable/equations/conditions Name your file "Lab4-FirstName.py" and submit to Lab4 folder

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 Programming Questions!