Question

In: Computer Science

Use pseudo code to plan a programming solution for the following: A GUI interface to ensure...

Use pseudo code to plan a programming solution for the following:

  • A GUI interface to ensure a user is old enough to play a game. See additional resources above for additional resources.

  • Properly formatted prompts to input name, address, phone number, and age.

  • Instructions to ensure that the information is displayed back to the user. Also, the user must be 21. So, include instructions to display an appropriate message about whether or not the user can continue.

  • Instructions that will allow another user to enter their information.

  • This assignment requires a loop.

Solutions

Expert Solution

Pseudocode :

Pseudocode is nothing but the plain language description of an algorithm or a program.Pseudocode often uses structural conventions of a normal programming language, but is intended for human reading rather than machine reading.

The case provided in th question is to check whether the boy is eligible to play game.So we need to get the details from him,Then we need to check whether the age is greater than 21, if yes he is eligible to play.

So at first, we need to get all the detais from the user and then check whether age greater.THis will be done in a loop so that if one person is not eligible means another person can enter the details and continue.

Ppseudocode :

Start   

Input name , address ,phno , age   // The details are entered

Display the details   //Details are displayed back to user

Input the limit

for count= 1 to limit by 1 do //Loop to set the limit of access

enter the age

if age>=21 //condition to check if age greater than 21

Display you are eligible to play   //if yes eligible

Start game //Game Start

else

Display you are not eligible to play

exit 0 //Exit from game

end if   //Ends the if stmt.

end for //Ends the loop

Stop


Related Solutions

Use the below info to create a java program A GUI interface to ensure a user...
Use the below info to create a java program A GUI interface to ensure a user is old enough to play a game. Properly formatted prompts to input name, address, phone number, and age. Remember that name, address, phone number, etc. can be broken out in additional fields. Refer to the tutorial from this week’s Reading Assignment Multiple vs. Single Field Capture for Phone Number Form Input for help with this. Instructions to ensure that the information is displayed back...
Topic is relates to Java programming! Code using java GUI 2. Create the following controls: a)...
Topic is relates to Java programming! Code using java GUI 2. Create the following controls: a) a TextField b) a Button c) a Text d) a Label 3. create the following container and put them the above controls: a) a VBox controller b) a BorderPane controller c) a GridPane
The purpose of this problem is to use graphic user interface (GUI) to interactively store grades...
The purpose of this problem is to use graphic user interface (GUI) to interactively store grades in a text file, rather than adding them manually to a script. Follow these steps to complete the program: Step 1. Use a question dialog box and ask the user “Do you want to run this Program?” with two options for “yes” and “no”. If the user’s answer is “yes”, go to the next step, otherwise, go to Step 6. Step 2. Create a...
PYTHON PROGRAMMING Using tktinker, create a gui that surrounds the code below that has buttons and...
PYTHON PROGRAMMING Using tktinker, create a gui that surrounds the code below that has buttons and labels and an overall theme. # Meet the chatbot Eve print('Hi there! Welcome to the ChatBot station. I am going to ask you a series of questions and all you have to do is answer!') print(' ') print('Lets get started') #begin questions firstName = input('What is your first name?: ') lastName = input('What is your last name? ') print("Hi there, ", firstName + lastName,...
Using a (GUI interface), write a Java program that simulates an ATM machine with the following...
Using a (GUI interface), write a Java program that simulates an ATM machine with the following options menu: "Welcome" 1. Deposit to account 2. Withdraw 3. Exit
How would I code the following in assembly language? Use the Keil programming environment to code...
How would I code the following in assembly language? Use the Keil programming environment to code the C8051F330 SiLabs 8051 micro controller. All the documentation is available on efundi. The program shall be done in assembler and you shall use the DJNZ instruction to generate a delay time to flash the LED. The LED shall flash in the following sequence: 1. On for 50mS, 2. Off for 400mS, 3. On for 50mS, 4. Off for 1.5S, 5. Repeat the sequence...
Use the branch and bound method to find the optimal solution to the following integer programming...
Use the branch and bound method to find the optimal solution to the following integer programming problem: maximize 7x1 + 3x2 subject to: 2 x1 + x2 < 9 3 x1 + 2x2 <13 x1, x2 > 0; x1, x2 integer Instead of using EXCEL Solver to solve this problem directly as an integer programming problem, use EXCEL Solver to solve the LP problems at each branch, with the appropriate constraints added, according to the branch and bound algorithm. Be...
Use the graphical method for linear programming to find the optimal solution for the following problem....
Use the graphical method for linear programming to find the optimal solution for the following problem. Maximize P = 4x + 5 y subject to 2x + 4y ≤ 12                 5x + 2y ≤ 10 and      x ≥ 0, y ≥ 0. graph the feasible region
Develop the pseudo code for, desk check and test the following programs. Allow the user to...
Develop the pseudo code for, desk check and test the following programs. Allow the user to provide the number of elements, and initialise the array according to their input. Use functions where appropriate to ensure modularity. 1. Find the average of a list of numbers 2. Find the smallest element in a list of numbers
What will be the expected output of the following pseudo code? Write exactly what would display...
What will be the expected output of the following pseudo code? Write exactly what would display when you execute the statements. Module main() Declare Integer a = 5 Declare Integer b = 2 Declare Integer c = 3 Declare Integer result = 0 Display "The value of result is" Display result Set result = a + b * c - a Display "Changed value is: ", result End Module
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT