Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the comments or commands in Python for all of these as soon as possible 1. Create nine (9) variables to represent the following
I need the comments or commands in Python for all of these as soon as possible
1. Create nine (9) variables to represent the following data. There are three (3) products, each with three (3) related pieces of information: 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. "Product ID" column heading and it's values should align right "Taxed" column heading and it's values should align center "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) - "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 Product InformationStep 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