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

  Calculate a 10% commission of an item price when sold

Enter a bid for an item and the bids are stored in an STL priority_queue object. This allows the highest bid to be at front of the queue.

  How virtual memory relies on locality of reference principle

TLB entries are different than page table entries. Describehow they differ and why they differ. Virtual memory relies on a locality of reference principle. Describe.

  Ways to avoid communication pitfalls

Based on the section on "Watch out for communication pitfalls" in the Bateman and Snell text, describe some ways that Lei could have avoided this situation.

  Identify the comment object returned

Create tests for SalesItem that test whether the findMostHelpfulComment method works as expected. Note that this method returns a Comment object.

  Experience with pcap

The purpose of this assignment is to identify your experience with full packet capture.Research packet capture, and report on its usefulness in cyber security and network forensics.

  Design a dns namespace

Design a DNS namespace

  Banner advertising on web sites trigger realization

Banner advertising on Web sites helps trigger realization that there is gap between reality and desired state which occurs in?

  Write a program that computes the area of trapezoid

Write a program that computes the area of Trapezoid. Unknown values should be input by user.

  Determine features of ram to include in web server

Determine the features and capacities (RAM, disk storage, processor speed) that Amy should include in the Web server computer that she will need for her site.

  Examine how coppa and cipa are similar and how they are

write a three to five 3-5 page paper in which you describe the main compliancy requirements and the protected

  Benefits of a web-based computing environment

Web-based computing so for this essay question, explain in scholarly detail benefits of a Web-based computing environment.

  Instruction cycle and finding contents of registers

Go over instruction cycle and find out contents of registers PC, AR, DR, AC, and IR for each of seven memory-reference instructions.

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