DOC PREVIEW
CSUDH TBE 540 - TBE 540 Pseudocode to Flowchart Exercise

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

START/ENDPROCESSINPUT/OUTPUTDECISIONProgram 1PSEUDOCODE FLOWCHARTProgram 2PSEUDOCODE FLOWCHARTPSEUDOCODE FLOWCHARTTBE 540Pseudocode to Flowchart ExerciseUse the pseudocode to make a flowchart for the following program descriptions.Use these flowcharting symbols:START/END PROCESSINPUT/OUTPUT DECISIONProgram 1The program will (1) ask for the user’s name, then (2) print HI and the name. The program will then (3) ask what year the user was born, (4) calculate the age, and (5) print the age. (6) If the student is over 21, the program will (7) print YOU ARE AN ADULT!PSEUDOCODE FLOWCHARTSTART START(1) Get name Get name(2) Print HI and name(3) Ask year born(4) Calculate age(5) Print age(6) Age > 21?(7) If Y, print message ENDProgram 2The program will (1) choose two random numbers, then (2) print them out as an addition problem. The program will then (3) ask the user to (4) enter the correct answer. (5) If the answer is correct, the program will (6) print RIGHT. (6) If the answer is wrong, the program will (7) print NO, THE ANSWER IS and the correct answer.PSEUDOCODE FLOWCHARTSTART START(1) Calc. two random numbers Calc. 2(2) Print addition problem random num.(3) Print message (ENTER ANSWER)(4) Wait for input(5) Answer correct?(6) If Y, print RIGHT(7) If N, print NO THE ANSWER IS + correct answer.ENDProgram 3The goal of the program is to take in several numbers and print the average. Each number will come in one at a time. Each time a number comes in, the computer will have to add itto the running total and add one to the “number of numbers” so the average can be calculated. This process will need to be repeated until the user is finished entering all the numbers. At the end, the average must be calculated and printed. There will have to be a way for the computer to tell whether or not there is another number coming in or whether it should print the average. NOTE: You can show “looping” (repeating) on a flowchart orthe pseudocode by just drawing a line with an arrow.Brainstorm on the steps needed to make this happen. Write the “pseudocode” and (if you dare) try the flowchart.PSEUDOCODE FLOWCHART START


View Full Document

CSUDH TBE 540 - TBE 540 Pseudocode to Flowchart Exercise

Download TBE 540 Pseudocode to Flowchart Exercise
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view TBE 540 Pseudocode to Flowchart Exercise and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view TBE 540 Pseudocode to Flowchart Exercise 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?