Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 Information

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions