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

  Expect development success

The goal of most organizations is to operate in an environment similar to CMM levels 2 repeatable or level 3 defined where projects are well documented and follow standards and best practices learned from previous implementations. It is virtually imp..

  Modify the range accordingly or terminate the program

modify the range accordingly or terminate the program. The program must do up to 20 guesses

  People and organization responsible for bumping problems

Answer from the perspective of the airlines and from the perspective of the customers. What people, organization, and technology factors are responsible for excessive bumping problems?"

  Information technology security for small business

Then write an information security white paper that can be used to market your firm's security consulting services to small businesses in the Washington, DC, area. Your white paper must:

  Determine the maximum period obtainable from lcg

Determine the maximum period obtainable from following LCG? Xn+1 = aXn (mod 24). What must be the value of a?

  Methods-majority of target audience can play applications

What are some methods that we can guarantee that majority of target audience can play applications?

  Sbh problem to reconstruct dna sequence from its l-mer

The SBH problem is to reconstruct a DNA sequence from its l-mer composition. Suppose that instead of a single target DNA fragment, we have two target DNA fragments

  Leverage social media and networking technologies

Imagine that you have been hired as a consultant for a university that wants to leverage social media and networking technologies to encourage the collaboration of students, and improve their overall sense of community.

  Simulating problem for arriving for lunch at restaurant

Customers for lunch arrive into a restaurant at Exponential rate of 10 per hour for seated service and at  Exponential rate of 15 per hour for buffet. Simulate this problem for 8 hours using minutes as the basic time units.

  Develop an object-oriented design

Identify possible objects in ONE of the following systems and develop an object-oriented design for them. Using a UML class diagram and associated explanation to show your design. You may make many reasonable assumptions about the system when derivin..

  Show truth table

Show truth table for xz=(x+y)(x+y)(x+z) the y in the middle part should have a line over it and the x in the last part should to.

  Task manager to recognize and troubleshoot problems

Which system resources are probable to be at root of problem? How can you use system tools, like the Task Manager, to help recognize and troubleshoot these problems?

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