In: Computer Science
1. Draw a structured flowchart or write structured pseudocode describing how to get from your home to your school. Include at least two decisions and two loops.
2. Draw a structured flowchart and write pseudocode that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number. Pick a number and have a fellow student try to guess it following the instructions.
Psuedocode to get from your home to school
1. Get ready for school
2. Start from home
3 Decide whether to go by the school van or a local train
4. If decide to go by school van wait till 8.30 for the van at the stop
5 If van arrives then then go by van.
6 . If van didn't arrive by 8.30 then go to the train station.
7 If decided to go by train, or you had missed the van then reach through train.
8.After reaching train station if you have left more than 10 minutes to reach the school then walk to reach school
9. If less than 10 minutes left then hire a taxi and reach school
10 . End
Above the flow chart.
Pseudocode to guess a number between 1 and hundred.
In this game computer asks to guess the number 1 to 100. The user types the number. If the secret number is less than guess the computer will show guess low. If secret number is high computer will show guess higher.
1. Start the program
2.Ask user for thier name and display greeting.
3.ask to select a number from 1 to 100
4.use a conditional statement to determine less than, equal to or greater than the screct number with guess
5.Give them clues like if the number is less than guess show as guess lower
6. If the secret number is greater then show as guess higher.
7. If guess is correct then display as correct answer and end
8.Create a scoring system if guesses less than 10 then super performer. If guess greater than 10 and less than 15 then average performer if guess greater than 15 then poor
9.End the program.