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
-
Assume that interest rates for most maturities are unusually high. Also assume that the net working capital (defined as current assets minus current liabilities) levels of many corporations are...
-
The following reaction establishes equilibrium at 2000 K: If the reaction began with 0.100 mol L 1 of N 2 and 0.100 mol L 1 of O 2 , what were the equilibrium concentrations of all species? N(g) +...
-
On July 1, 2000, Pushway Corporation issued 200,000 shares of \($5\) par value common stock in exchange for all of Stroker Companys common stock. This stock had a fair value that was \($200,000\) in...
-
On July 1, 2012, Bliss industries Inc. issued $24,000,000 of 20-year, 11% bonds at a market (effective) interest rate of 14%, receiving cash of $19,200,577. Interest on the bonds is payable...
-
thanks!!!!!!!. (10) Suppose that you enter into a six-month forward contract on a non-dividend-paying stock when the stock price is $30, and the risk-free interest rate is 12% (with annual...
-
On January 1, 2010, Phelps Company purchased an 85% interest in Sloane Company for $955,000 when the retained earnings of Sloane Company were $150,000. The difference between implied and book value...
-
Locate a person who has lived in your state his/her whole life or at least 90% of their life. Ask the person's permission to use his or her name and quotations in the paper, and ask the individual...
-
What are your states registration requirements to become an investment adviser firm or an investment adviser representative? What examinations or credentials are required to register?
-
A [0/90/0] laminated beam of length \(L\) is simply supported at both ends and is loaded by a single concentrated load \(P\) at midspan. Find the equation for the maximum flexural deflection of the...
-
Would you rather be involved in warfare as a member of a forager society or as a member of an industrial nation? Why?
-
Evaluate the hypothesis that in societies in which female contributions to the food supply are less critical or less valued than male contributions, female status is lower.
-
A 30-ft-high downspout of a house is clogged at the bottom. Find the pressure at the bottom if the downspout is filled with \(60^{\circ} \mathrm{F}\) rainwater.
-
Harold Hill borrowed $16,300 to pay for his child's education at Riverside Community College. Harold must repay the loan at the end of 18 months in one payment with 21% interest. a. How much interest...
-
What are the key elements of a system investigation report?
-
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?
-
8. Landlord owned a clothing store and agreed in writing to lease the store's basement to another retailer. The written lease, which both parties signed, (1) described the premises exactly, (2)...
-
Online, find a residential tenancy lease. Is it important for a lease to be in writing? Who probably drafted the lease, a landlord or a tenant? How can you tell? Should any other provisions be...
-
9. ROLE REVERSAL Write one multiple-choice question with two noncompete clauses, one of which is valid and the other void.
Study smarter with the SolutionInn App