The partial pseudocode below designs a guessing game

Assignment Help Basic Computer Science
Reference no: EM13839826

1. The partial pseudocode below designs a guessing game where a random number between 1 and 10 is generated and then a player tries to guess the number. The decision structure part of the program is missing. It should display a message indicating whether the player's guess was correct, too high, or too low. Fill in the missing decision structure. (5 points)

 

start

   declarations

      num randomNumber

      num guess

      num limit

      string PROMPT = "Enter a number between 1 and 10: "

      string CORRECT = "You guessed correctly!"

      string HIGH = "You guessed too high!"

      string LOW = "You guessed too low!"

   randomNumber = random(10)

   output PROMPT

   input guess

 

   // missing decision structure

 

stop

Reference no: EM13839826

Questions Cloud

What kind of good can the ship owner expect to attract : The same ship owner advertises a tariff whereby the freight charged for all cargo will be the same. What kind of good can the ship owner expect to attract?
Find distance from the building to the base of the ladder : Find the distance from the building to the base of the ladder
Track the following employee information : A local company is starting that will provide pet sitting services for the local community. This company will provide in-house and daily pet sitting services for dogs, cats, fish, birds and reptiles. Each of their employees is insured and are certifi..
Investors interested in a target date retirement fund : What type of investors would be interested in a target date retirement fund? Why?
The partial pseudocode below designs a guessing game : 1. The partial pseudocode below designs a guessing game where a random number between 1 and 10 is generated and then a player tries to guess the number. The decision structure part of the program is missing. It should display a message indicating whe..
What is the insurance aspect of the social security annuity : What is the insurance aspect of the Social Security annuity? Why does a progressive tax code produce a retirement annuity for a middle-class household that is similar to that which would follow from a flat tax?
Select the northeast sales : Select the Northeast sales, and then display the Quick Analysis Totals gallery. Click the second Sum option-the sixth item in the gallery-which displays the column selection in yellow. Copy the formula down through cell F7.
What is the elasticity of demand for zamboni air filters : The HRB Corporation is the world’s only manufacturer of air filters for Zamboni engines. Last year, HRB charged $20 per filter and sold 1 million of them, and it paid all of its production workers $10 per hour. What is the elasticity of demand for Za..
Explain why the reduction in employment : Most industrial farms hire migrant workers, so the market for such workers is reasonably taken to be perfectly competitive. Suppose that all farms individually have a short-run elasticity of labor demand of 0.5. Explain why the reduction in employmen..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write specific formulas and functions

Consider the following scenario: As supervisor for a retail company, you supervise six people in your location. You are responsible for their payroll and commissions each week. Use the data provided to create a worksheet described below

  How long will it take to reach steady-state value

Investigate the effect of the parameter b on y(t). To do this, plot y versus t for several values of b on the same plot. How long will it take for y(t) to reach 98 percent of its steady-state value?

  Designing a game system

Suppose that you are designing a game system that responds to players' pressing buttons and toggling joysticks. The prototype system is failing to react in time to these input events.

  An analysis of the security issues associated with batch fil

For this writing assignment you will be required to provide an analysis of the Security issues associated with batch files, Visual Basic and other forms of scripting.

  Resistance to change in it projects

Resistance to Change in IT Projects

  Manual park button and the application accurately

As an application tester, I want to press the manual park button and the application accurately records the location of the intended vehicle. The ratio of successes to failures will be recorded to report to the development team.

  Draw the uml class diagram for the schoolbus

The declaration for the SchoolBus class. Instances of the SchoolBus class represent school buses of varying sizes. The class provides functions to add and remove students.

  Implement a personal scheduler windows application

Description: Implement a personal scheduler Windows application. The application should have the following features: Create a new Java Project named SchedulerApp. Add a new package named business.

  Explain integration between systems and infrastructure

Describe the relationship and integration between systems and infrastructure. Note: Database and Data Warehousing, Analytics, Interfaces and Cloud Technology, and Infrastructure and Security should be considered.

  Determine if that polygon is a square

Given the length of four sides determine whether they can be used to create a polygon and determine if that polygon is a square. A polygon can be created if no single side is greater than the sum of the other three sides.

  Design interface for government for identifying terrorists

As part of the design team on a major government defense project, it is time to create your first mock-up of this terrorist identification and tracking user interface.

  How the game was integrated with the concepts of computing

Each week, you will explore a new game through the lens set up by the weekly material. For example, when working with Turing machines, you may wish to represent the concept through a game of Hangman.

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