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...
I did the complete programming in python , just want to use tkinter for GUI. please...
I did the complete programming in python , just want to use tkinter for GUI. please look at the 2nd part . i did some part of this program using tkinter but could not finis it. Thank you. import random image = 'w' # modified functions which accepts two numbers each and returns the respective # output def add(a, b): return a + b def subtract(a, b): return a - b def multiply(a, b): return a * b def kidCalc():...
Use python programming to write this code and provide a screen short for the code. 2....
Use python programming to write this code and provide a screen short for the code. 2. Write a function that takes one argument (a string) and returns a string consisting of the single character from that string with the largest value. Your function should contain a for loop. You can assume that the input to your function will always be a valid string consisting of at least one character. You can assume that the string will consist only of lower-case...
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
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT