3-3 Assignment

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

140

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by AmbassadorDolphinPerson1004

Report
3-3 Assignment: Introduction to Pseudocode and Flowcharts Pseudocode: o Declare two float variables: work_hours and pay_check o Print “Enter the number of work hours” o The input would go into the variable work_hours o Insert an if-else statement: IF (work_hours < 0): print “invalid Input” ELSIF (work_hours <= 40): CALCULATE pay_check = work_hours * 20 print pay_check ELSE CALCULATE pay_check = 40 * 20 + (work_hours – 40) * 30 print pay_check o Output should result in the system doing the math with the inputted data and tell the company what the paycheck should be.
End Print pay_check Calculate pay_check = 40*20+(work_hours-40)*30 Print pay_check Calculate pay_check = work_hours*20 N o Y e s IF (work_hours <= 40) Read work_hours Enter work_hours work_hours pay_check Start
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help