Question: You will make assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from thissite

You will make assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from thissite

You will code the following and submit it in one file. Use the information in the Content area for this week to assist you. Save it as a python file (.py), and upload it into the Assignments area.

1. Includecomment blockon line1 of your code with the following information:

""

"""

Your Name

Course Name, Section (example: ENTD200 B002 Spr18)

Instructor name

Week #

Date completed

"""

2.Create 2 Python programs based on week 5 flowcharts and requirements. You must use loops, do not use function call

Here is a SAMPLE run for a simple calculator to add to numbers (this is for reference only)

Simple Calculator

What is your name --> Supa

Enter first number --> 7

Enter second number --> 5

Supa, The total of 7.0 + 5.0 = 12.0

Do you want another calculation ? (y/n) y

What is your name --> Lupa

Enter first number --> 21

Enter second number --> 11

Lupa, The total of 21.0 + 11.0 = 32.0

Do you want another calculation ? (y/n) n

Thanks for using my calculator

Week 5 psuedocode and flowchart

Using While loop until It's True:

Take input for 'Employee_name' as string

Take input for 'Hours_worked' as integer

Take input for 'Hourly_rate' as integer

Calculate 'pay' as pay = Hours_worked * Hourly_rate

Print Employee_name, Hours_worked, Hourly_rate, and pay

Take input for 'car_name' as string

Take input for 'amount of_gas_used' as integer

Take input for 'no_of_miles' as integer

Calculate 'MPG' as MPG = no_of_miles / amount_of_gas_used

Print car_name, amount_of_gas_used, no_of_miles, and MPG

Take input for 'choice', 'Want another calculation? (y/n)' as string

if user enters 'n' for choice then:

Break the loop

Print 'Thanks for using this Program!'

https://linkode.org/#RhySp9z4z3MNFxrtSjCBc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!