What information would you need from the user at each point

Assignment Help Computer Engineering
Reference no: EM133532132

Homework: Information Systems

Overview

In this homework, you will gain more practice with designing a program. Specifically, you will create pseudocode for a higher/lower game. This will give you practice designing a more complex program and allow you to see more of the benefits that designing before coding can offer. The higher/lower game will combine different programming constructs that you have been learning about, such as input and output, decision branching, and a loop.

Higher/Lower Game Description?Your friend Maria has come to you and said that she has been playing the higher/lower game with her three-year-old daughter Bella. Maria tells Bella that she is thinking of a number between 1 and 10, and then Bella tries to guess the number. When Bella guesses a number, Maria tells her whether the number she is thinking of is higher or lower or if Bella guessed it. The game continues until Bella guesses the right number. As much as Maria likes playing the game with Bella, Bella is very excited to play the game all the time. Maria thought it would be great if you could create a program that allows Bella to play the game as much as she wants.

Prompt

For this homework, you will be designing pseudocode for a higher/lower game program. The higher/lower game program uses similar constructs to the game you will design and develop in Projects One and Two.

I. Review the Higher/Lower Game Sample Output PDF for more detailed examples of this game. As you read, consider the following questions:

1. What are the different steps needed in this program? How can you break them down in a way that a computer can understand?

2. What information would you need from the user at each point (inputs)? What information would you output to the user at each point?

3. When might it be a good idea to use "IF" and "IF ELSE" statements?

4. When might it be a good idea to use loops?

II. Create pseudocode that logically outlines each step of the game program so that it meets the following functionality:

1. Prompts the user to input the lower bound and upper bound. Include input validation to ensure that the lower bound is less than the upper bound.

2. Generates a random number between the lower and upper bounds

3. Prompts the user to input a guess between the lower and upper bounds. Include input validation to ensure that the user only enters values between the lower and upper bound.

4. Prints an output statement based on the guessed number. Be sure to account for each of the following situations through the use of decision branching:

A. What should the computer output if the user guesses a number that is too low?

B. What should the computer output if the user guesses a number that is too high?

C. What should the computer output if the user guesses the right number?

5. Loops so that the game continues prompting the user for a new number until the user guesses the correct number.

III. If you would like to practice turning your designs into code, check out the LAB: Higher/Lower Game in zyBooks. Give additional practice turning designs into code, which will support your work in moving from Project One to Project Two.

Reference no: EM133532132

Questions Cloud

Discuss how this is relevant to agewell : Describe the term as used in this course and outline its importance to nonprofit organisations making particular reference the AgeWell case.
Quotations for kfc and mcdonalds with weblink : Quotations for Kfc and mcdonalds with weblink, my budget is $4,000 good for 35 persons. And what is your preferred catering and why?
Why you think technology will solve operational challenge : Brief description of why you think technology will solve the operational challenge and possibly optimize operations in general (also in detail)
Explain in detail seven main chapters of criminology : Explain in detail the seven main chapters of Criminology. Explain in detail the principles of feminist intervention in mental health?.
What information would you need from the user at each point : IT 140- What information would you need from the user at each point (inputs)? What information would you output to the user at each point?
Which are obstructing the project progress : About the Australian rail project Are there any issues (environmental, source of funding or political) associated with the case project which are obstructing
Why the language would be politically incorrect : Explain why the language would be "politically incorrect" or offensive in today's world, even if it seems obvious why.
Would moving to a product team structure lead : What kind of organizational structure does the hospital housekeeping use - would moving to a product team structure lead to greater efficiency or effectiveness
What your favorite room or feature is on the listing and why : what your favorite room or feature is on the listing and why it is important to your future life. Please provide a link to the listing.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd