1. Create nine (9) variables to represent the following data. There are three (3) products, each...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Drako Corp. provides management consulting services to retail and manufacturing clients. Drako has two support departments - Human Resources (HR) and Accounting (AC). Drako also has two operating...
-
IST 8100 Supplemental Cases Inside Microsoft During last fall's United Way campaign at Microsoft, two vice-presidents made a wager on whose division would generate the most contributions. The loser,...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
from the given option three are similar to each other becausethey follow the same patter identify the option that is dissimilarto the other three A. BCED B. EFhG c. KLNM D. RSVT
-
A A-connected, 25-kW, 230-V, three-phase, six-pole, and 50-Hz squirrel-cage induction motor has the following equivalent-circuit parameters in ohms per phase Y: R1 = 0.045 R2 = 0.054 X1 = 0.29 X2 =...
-
Hi-Tech Corp. spent $300,000 on research and development to generate new product lines. Only one of the five product lines resulted in a patented item, while the remaining four were considered...
-
Table 1.2 illustrates a possible scenario in a trade on gold futures. On day 1 , when the gold futures price is \(\$ 1350\) per ounce, we enter a long position for two contracts, whose unit size is...
-
Pinder Co. produces and sells high-quality video equipment. To finance its operations, Pinder Co. issued $25,000,000 of five-year, 7% bonds, with interest payable semiannually, at a market...
-
1 Define Management? Explain its features, importance and nature? 2 Briefly explain about functions of management 3 Define leadership and explain leadership styles? 4 Briefly explain about decision...
-
Your firm has decided to try two approaches to estimating a valuation allowance for sales returns. Required: a. First, your firm decides to estimate that 10% of all sales will eventually be returned....
-
Create five series, each satisfying one of the conditions below: an+1 = 0 lim n lim n lim n lim n an an+1 an an+1 an an+1 an an+1 lim n an 2 = 1 = 2 =
-
Go to Warren Buffets Letter to Shareholders page at www. berkshirehathaway.com/letters/letters.html and read the most recent letter. How many of the strategy topics covered in this chapter are...
-
Based on the framework applied to Tritec Motors in the box entitled How Would You Do That? 2, use the opening vignette on AnneMulcahy at Xerox to map out the key stakeholders in her turnaround...
-
Assume that Belgium has a large number of pharmaceutical stores in 2018 was competitively structured; however, certain chemists did supply illegal medical goods. Over the course of three years, one...
-
The box entitled HowWould You Do That? 1 illustrates the five-forces model for the airline industry. Use the analysis there as an example and performa five-forces analysis for one of the following...
-
Choose two firms that are well-known to your group membersperhaps firms that youve done case analyses on in the past. For each of these firms, identify their vertical, horizontal, and geographic...
-
QUESTION 3 Which is a valid method for making forecasts from time series data like sales volumes or securities prices? O Astrological projection O Logical argumentation O Factorial regression O...
-
What kind of financial pressures can an LBO cause?
-
List and explain the two categories in task control.
-
Are materials always a flexible resource? Why?
-
Can you think of instances when gaming behavior is appropriate in an organization?
-
What is the Standard Industrial Classification (SIC)? In what ways might such a classification system be useful? Can you think of any limitations or problems such a system might have over time?
-
1. In what ways did the defence industries respond to the ending of the Cold War? 2. Using an Internet search, find out how the defence and security industries have responded to the threat of...
-
Explain why the business objectives of owners and managers are likely to diverge. How might owners attempt to ensure that managers act in their interests and not in the managers own interests?
Study smarter with the SolutionInn App