Instructions Week 5 Assignment:Pseudocode and Flowchart Solution Instructions: Create a FLOWCHART and a PSEUDOCODE for each problem. Use the information below to create a pseudocode (which can be a...

1 answer below »

Instructions



Week 5 Assignment:Pseudocode and Flowchart Solution


Instructions:


Create a FLOWCHART and a PSEUDOCODE for each problem.
Use the information below to create a pseudocode (which can be a text-based description for solving the problems) and a flowchart (using flowchart symbols to illustrate how you would program) to solve each problem. You may use Microsoft Word® for your pseudocode and Microsoft PowerPoint® for your flowchart.


1.Problem:


Create a flowchart and pseudo code to do the following:-


You are going to modify week 4 assignment (2 problems) to use input() function (no hard coded values) to prompt the user to enter the values.


Make sure the prompt message is meaningful, do not say "Enter value", say something like this "Enter hours worked" after you get all the inputs, display the results and prompt the user if wants more calculation (y/n). If no then print a message like "Thank you for ……."


The flowchart must include a loop and if-then.







Create acomment block(starts at line 1 of your code) with the following information:


Your Name


Course Name, Section (example: ENTD200 B002 Spr18)


Instructor name


Week #


Date completed



2.Problem 1:Create a Python program to solve a simple pay calculation. Calculate the amount of pay, given employee name, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display employee name, hourly rate, hours worked, and pay. (Do not add any rules such as overtime)


Problem 2:Create a Python program to calculate the average miles per gallon obtained on a trip. Input car name, the amount of gas used and the number of miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used. ) Display car name, gas used, miles driven and MPG. Use your own values to test the. You can hard code the values or you can use the input() function. See announcement for sample code.

Answered Same DayMar 13, 2021

Answer To: Instructions Week 5 Assignment:Pseudocode and Flowchart Solution Instructions: Create a FLOWCHART...

Neha answered on Mar 13 2021
130 Votes
#Student Name:
#Course Name, Section
#Instructor Name
#Week 6
#Date: 13 March 2021
while(True):

name = input('Enter employee name: ')
hoursWorked = int(input('Enter hours worked by employee: '))
hourlyRate = int(input('Enter hourly rate for employee: '))
pay = hoursWorked *...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here