Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python 4. Tuen in the neackice ivosi ans an foge 3 . 3. Bewoon Chacate 4 wiseos ar nowded fideca for the chapters found an

image text in transcribed

image text in transcribed

python

4. Tuen in the neackice ivosi ans an foge 3 . 3. Bewoon Chacate 4 wiseos ar nowded fideca for the chapters found an the content Dase of Brightspace) 7. Yate ohepter 1 Quiz over Exercise Problerns found in the Puwerfoint unitimitad attempto Type All Problems below in the EDITOR NOT the SHELL. Pregramming Prebtenus for the Drepber - See Drep bex Dae Date Thelelen 1. Calculate Profit. The following steps calculate a coupany's profit. Wre as uzrat satement to ask for the Reverue. (must use a foat input) Whe as impuat starenent fo ask for the Expenses. (must use a float impua) Create the variable profit A assien it the difference between the values of the varables Revenue R Exjenses. Display the value of the variable profir. Fommatting Tip: print("The Profit is", format(yourvariablename, "2f )) Use ar Purchase. The following steps calculate the amonut of a stock purclase. the an input statement to ask for the Cost per Share of stock (must use a float input) Create the variable amotut and assign it the product of the valies of costPershar Drsplay the vahue of the variable amount Formatting Tip: print ( Your Stock Purchase is", format(yourvariablename, :2f) ) Discounted Price: The following steps calculate the price of an item affer a given percent reduction. Use an input statement to ask for the Price of an item (must use a float input) Use an imput stafement to ask for the discount percentage Create the variable markdown & assign it the value of (discountPercent divided by 100 ) times the value of price. Decrease the value of price by markdown. Display the value of price (rounded to rwo decimal places). Formatting Tip: priur("The Markdown price is". format(yourvariablename, "2f )) 4. Total Purchase A customer in a store is purchasing five items. Write a 1. Do the cettilne Started on Page 3 and tum into the drop bow the Practice Program. 2. Phid and compinte the Participation and challenge Activities found in the rybooks Chapler 1 intro to Python 3. Watch the Powerpoint: Ch t Coding examples ard Erercises and Review Concepts 4. Turn in the prackice program on Page 3. 5. Review Chapter 1 Videos as needed (videos for the chapters found on the Content Page of Brightspace) 6. Take Chapter 1 concepts Quiz over Chapter 1 - uolimited attempts 7. Take Chapter 1 Quiz over Exercise Problems found in the PowerPoint-unlimited attempta. Type All Problems below in the EDITOR NOT the SHELL. Programming Problems for the Dropbox-Sec Drop box Due Date Problem 1: Calculate Profit: The following steps calculate a company's protit. Use an imput stareinent to ask for the Revenue. (must use a float input) Use an input starement to ask for the Expenses. (must use a float imput) Creafe the variable profit \& assign it the difference between the values of the variables Revenue \& Expenses. Display the value of the variable profit. Formatting Tip: print("The Profit is"*, format(yourvariablename, 2f )) Ptoblem 2: Stock Purchase: The following steps calculate the amotut of a stock purchase. Use an input statement to ask for the Cost per Share of stock (must use a float input) Use an input statement to ask for the number of shares. (must use a int input) Create the variable amount and assign it the product of the values of costPerShare and numberOfShares. Display the value of the variable amount. Formatting Tip: print("Your Stock Purchase is". format(yourvariablename, ".2f")) Problem 3: Discounted Price: The following steps calculate the price of an item after a given percent reduction. Use an input statement to ask for the Price of an item (must use a float input) Use an imput statement to ask for the discount percentage Create the variable markdown \& assign it the vahue of (discountPercent divided by 100) times the value of price. Decrease the value of price by markdown. Display the value of price (rounded to two decimal places). Formatting Tip: print("The Markdown price is", format(yourvariablename. "2f")) Problem 4: Total Purchase A customer in a store is purchasing five items. Write a program that asks for the price of each item. then displays the subtotal of the sale, the amount of sales tax, and the total. Note: must use a float inputsAssume the sales tax is 7 percent. Formatting tip: (Tip: see slide 27 in PowerPoint for a guide and lining up decimals) Do all 4 Programs in ONE file

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

Students also viewed these Databases questions