Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need a python program from one of the flow charts below. I posted a picture of the flow charts and the information that was given

Need a python program from one of the flow charts below. I posted a picture of the flow charts and the information that was given for the flow charts.

Create a Python program for any one of the problems for which you did a flowchart in the Algorithms activity. Use a comment to indicate the name of the flowchart you have chosen. Code and execute your program with the Python software and then copy and paste the code here.

1. Times 10 Design a flowchart that allows the user to enter a value. The program then multiplies the value by 10 and outputs the results.

2. Total Hours Design a flowchart that allows the user to enter a value for hours worked in a day. The program then calculates the hours worked in a 5-day week and outputs the results.

3. MPG A cars miles-per-gallon (MPG) can be calculated with the following formula: MPG = Miles Driven / Gallons of Gas Used Design a flowchart that asks the user to enter the Miles Driven and the Gallons of Gas Used. It should calculate the cars miles-per-gallon and output the result.

4. Meal Cost Design a flowchart that calculates the total cost of a meal at a restaurant. The user should enter the cost of the food, and then calculate the amount of a 15% tip and 7% sales tax. Output each of these amounts and the total of the meal.

5. Ingredient Adjustor A cookie recipe calls for the following ingredients: 1.5 Cups Sugar 1 Cup Butter 2.75 Cups Flour The recipe produces 48 cookies. Design a flowchart that asks the user how many cookies s(he) would like to make, and then outputs the number of cups of each ingredient needed for the specified number of cookies.

image text in transcribed

Moliny 07/2021 4. stard Inpat my Nomber Total cost=0 [set my Answer - My Number (0) Threer Output tipamun stop) start (sules tax Enter the meal charge B bermal charge Tip amount mente hure (0,15) Selesleri med charge. Les (total cost meal change the & Salertal * National Brand Read Value input Total hours a value (5) Process tatul houry output Puti Tip Amount at tipamswnth Put Entestaxt sales taz Put! Totul charges (tip ttex a total cast/ Start I charges Integer gallo Integer miles peryallery 5. Start gallon : Tinout #ut cookies Cup Sugar num lookies: (1.5) /48 Cup Butter=num looties. 1/48 Cup Flour = numcookies. 275/48 Print Cups of Bugur, Lupsager Print: laps of butter, lap better Print Cups of Flour, Cup Porr Tmiles pergallon Coutpat! Enter #of miles stop) Coutati Inter tot gehad miles pergallon = miley outputi miles pergallent milespergelin End

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions