Write a simple guessing game for the user to guess a number

Assignment Help Computer Engineering
Reference no: EM132105205

In this problem you will write a simple guessing game for the user to guess a random number between 0 and 511 (up to 10 points extra credit if you can make it between 1-400 instead without bias).

Your program should flow as follows: Asks the user to enter a user name. Makes a call to "syscall $random" and sets the result as the initial LFSR state.

Calls state = LFSR(state) nine times to generate a random number between 0 and 255 using value B from each subsequent state.

For up to nine guesses Ask the user to guess a number. If the user guesses correctly, congratulate the user and end the program.

Tell the user whether the guess was too high or too low. Tell the user that all nine guesses were used, and the random number.

Reference no: EM132105205

Questions Cloud

A program will read ten numbers and store them in an array : A program will read ten numbers and store them in an array. the program should display how many of these elements are odd and how many are even.
Construct a nuclear power plant in alice springs : Why is stakeholder analysis important as a precondition of the decision whether or not to follow through with such a plan?
Information systems : Is is accurate to suggest that it is important that information systems be integrated throughout an entire organization?
Compare to how a project is managed : There are 5 steps of PPM responsibilities how does this list of 5 compare to how a project is managed?
Write a simple guessing game for the user to guess a number : Write a simple guessing game for the user to guess a random number between 0 and 511.
What is a wbs dictionary : What is a wbs? What is a WBS Dictionary? I am not sure where to bring with this section of my assignment.
Calculate and display a square matrix multiplication table : Calculate and display a square matrix multiplication table. For instance a sample output for a 4x4 table is listed below.
Explain why and how you would use schedule performance : Explain why and how you would use Schedule Performance and Cost Performance Indexes on your project and please your work (formula and each element).
Find and prove by induction a formula for s-1 : What is the inductive hypothesis? What is the inductive step? Find and prove by induction a formula for S-1

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