Question

In: Computer Science

1. Draw a structured flowchart or write structured pseudocode describing how to get from your home...

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.

Solutions

Expert Solution

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.


Related Solutions

i could use the flowchart and pseudocode solutions for the following: 1.       1.  Draw a structured flowchart describing...
i could use the flowchart and pseudocode solutions for the following: 1.       1.  Draw a structured flowchart describing the steps you would take to bake pancakes in a pan.  Include at least one decision. 2.       2.  Create the pseudocode to go along with the flowchart created in question above.
Draw a structured flowchart or write pseudocode that describes the process of guessing a number between...
Draw a structured flowchart or 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 someone try to guess it by following your instructions. Submit the flowchart or pseudocode and the results of your test. Create a python program based on your flowchart or pseudocode....
1 Write structured pseudocode to show the following: If you are at home, get comfortable and...
1 Write structured pseudocode to show the following: If you are at home, get comfortable and take a nap while you are sleepy, otherwise do not take a nap. 2 Write structured pseudocode to show the following: when you are on time for work you have time to buy coffee 3 Write structured pseudocode to indicate that you will keep drying your hair while it is still wet 4 Write structured pseudocode to show the following: when you are on...
6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart...
6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart for each of the following problems: a) Obtain three numbers from the keyboard, compute their product and display the result. b) Obtain two numbers from the keyboard, and determine and display which (if either) is the smaller of the two numbers. c) Obtain a series of positive numbers from the keyboard, and determine and display their average (with 4 decimal points). Assume that the...
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message...
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third. Make a working version of this program in Python.
All program should be in C Write its pseudocode and draw its flowchart) to prompt the...
All program should be in C Write its pseudocode and draw its flowchart) to prompt the user to input the variables to solve the following problem: X2 + X×Y/Z - W*V3 Note 1: You should ask the user to input 5 numbers to be able to do this calculation. Note 2: You can use multiplication instead of power if you do not want to use it (as we have not officially covered it). Write a program (compile and run), pseudocode,...
-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell...
-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell phone customer. -List at least 10 separate modules that might be included. - For example, one module might calculate the charge for daytime phone minutes used. - -Make a working version of this program using Python. Need all of the above answered including the correct code for program using python
Write an algorithm (flowchart OR Pseudocode) for the following problem Take input character from the user...
Write an algorithm (flowchart OR Pseudocode) for the following problem Take input character from the user unless he enters '$'. Thereafter display how may vowels were entered by the user. Also display the number of each vowel ('a', 'e', 'i', 'o' and 'u') separately. For example if the user enters B a b e c o o d i u g o a l $ Then we have the output below: #A=2 #E=1 #I=1 #O=3 #U=2
Please I can get a flowchart and a pseudocode for this java code. Thank you //import...
Please I can get a flowchart and a pseudocode for this java code. Thank you //import the required classes import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class BirthdayReminder {       public static void main(String[] args) throws IOException {        // declare the required variables String sName = null; String names[] = new String[10]; String birthDates[] = new String[10]; int count = 0; boolean flag = false; // to read values from the console BufferedReader dataIn = new BufferedReader(new...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the following requirements: Reads in a series of positive integers,  one number at a time;  and Calculate the product (multiplication) of all the integers less than 25,  and Calculate the sum (addition) of all the integers greater than or equal to 25. Use 0 as a sentinel value, which stops the input loop. [ If the input is 0 that means the end of the input list. ]...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT