Write the missing number game program

Assignment Help Programming Languages
Reference no: EM131308882

Assignment Problem: Missing Number Game

Write the Missing Number Game Program. You will write a program that will allow a user to play the missing number game.  The game will display a 4 (rows) x 3 (columns) board of numbers that will be predetermined (board 1 is shown below).  The missing number is based on the other numbers displayed on the board; this is based on the sum of the two outer column numbers equaling the center column number;

You will create 3 playing boards using 2D arrays that the game will randomly select from for the user to play.  You will use one 1D parallel array with answers of all three boards for testing and create a 1D parallel array to keep track of the used game boards.  For example, if the board above was board 1 then in your 1D parallel array, index [0] should store the value 14, the answer to the missing number:

Use only whole numbers for this game.

Allow the user to guess three times, after the user has guess three times, indicate they have lost the game and give them the opportunity to play again ( do not allow the same board to be displayed again if they guess the answer correctly).  If they have played all three boards successfully, output a message they are the number guessing champion and exit the program.

Your program must use input validation.

Input Validation:  The program must check to see if the user enters a valid number.  A number greater than or equal to zero must be entered.  If the user does not enter a valid value, display an error message and continue to ask the user to enter the value again until a valid value is entered.

Attachment:- Assignment.rar

Reference no: EM131308882

Questions Cloud

Future technology and future increase in costs : The information technology department has recently completed a major refurbishment and upgrade of the city's data center, at a cost of $10,145,825. The chief information officer (CIO) has informed the central budget office that the IT department will..
Design a test methodology for the sungrafix network : Designing Test Methodology for the SunGrafix Network? Reports on incident response and escalation procedures, with information on updating the security policy for employees, management, and network administration.
Find that lauryn has a reported equity beta : You are going to value Lauryn’s Doll Co. using the FCF model. After consulting various sources, you find that Lauryn has a reported equity beta of 1.4, a debt-to-equity ratio of 0.4, and a tax rate of 40 percent. Based on this information, what is La..
Develop personal and household savings plan : Develop a personal and household savings plan. What savings strategies will you use to improve your financial situation? Explain why you chose each strategy instead of others that you did not choose. How much will you save each month? How much intere..
Write the missing number game program : Write the Missing Number Game Program. You will write a program that will allow a user to play the missing number game.  The game will display a 4 (rows) x 3 (columns) board of numbers that will be predetermined
The yield to maturity of this bond is unchanged : A ten years maturity bond with a coupon rate of 6% is now selling at $977.22. What would be the current yield and capital gain yield for this bond in one year from now assuming the yield to maturity of this bond is unchanged?
Why is it difficult to measure probability of stock falling : Suppose you are in charge of risk management at a large mutual fund. A portfolio manager is considering purchasing a large number of shares in a particular stock. The company whose stock she is considering has only been around for 5 years. Why is it ..
Returns distributed uniformly and continuously : Suppose stocks X, Y and Z have monthly returns distributed uniformly and continuously. The uniform distributions are between -10% and 10% for stock X, between -12% and 8% for Y and between -5% and 10% for stock Z. A fund manager wants to select a sto..
Discuss trade-offs between dynamic and static data structure : CSC310 assignment- Discuss the trade-offs between dynamic and static data structures. What are advantages of and differences between ArrayList, LinkedList, and Vector? Provide examples of how to best implement each of these data structures.

Reviews

len1308882

12/12/2016 3:44:14 AM

For this Assignment you will attach two files, the Analysis of the Problem (using Word or a text editor) and your program (.cpp file). Do not cut and paste your code into the message section of the assignment area or your program will not be graded and you will receive a zero for the assignment.

Write a Review

Programming Languages Questions & Answers

  Write an if-then statement for the following code

Write an array that stores the square of the numbers from 1 to 5 in each element. Write out each element.

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Create a project in xcode

Create a new project in XCode using the Mac OS X/Command Line Tool template

  Write a lisp program to evaluate lisp arithmetic

Write a Lisp program to evaluate Lisp arithmetic expressions. Assume four operators may be used in expressions and they are +, -, *, and /. All these operators are binary, i.e., they are applied in an expression in this format

  Write modular program to enter integers for sorting

Write a modular program that performs the following functions: Allows the user to enter 10 integers for sorting, Allows the user to select one of the two types of sorting techniques.

  Implement a base class appointment and derived classes

Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, "see the dentist") and a date and time.

  Design program that asks user to enter budgeted amount

"Design a program that asks the user to enter the amount that he or she has budgeted for a month. (For example: $2,000.00)

  Create and link the tables for the inventory model

create and link the tables for the inventory model from inventory systems below:

  Program to convert temperature in celcius from fahrenheit

Write the program which accepts the temperature in Fahrenheit from user and conversts it to Celsius by subtracting 32 from Fahrenheit value and multiplying result by 5/9. Show both values.

  Explain immediate addressing mode

Expand your program in Part 1 to allow the operand use the "immediate" addressing mode. That is, the value of an operand is stored in the instruction. It should be assumed that the value operand is given as a decimal number.

  How to complete input assertion and output assertion

Complete input assertion and output assertion which will guarantee that student always ends game passing class. Add assertions and invariants which can help reason about claim.

  Program should prompt the user at the beginning

The program should prompt the user at the beginning for the number of different milk quantities to evaluate in this one run of the program.

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