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

  Discuss some ways that we can code more efficient functions

Discuss some ways that we can code more efficient functions and procedures. What is the difference between using a procedure versus a function and when should we use each?

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

  Write calendar application which allows user to select date

The purpose of this lab is to give you a chance to use some of the data stream tools we have been discussing in a simple application. The assignment is to write a calendar application which allows the user to select a date, and either retrieve a p..

  Write program that inputs single integer in digital river

A digital river is sequence of number where number following is n+ sum of its digits for example 12345=12345+15=12360. Write a program that inputs single integer n (1

  Program to calculate area of two-dimensional shape

Implement the Shape hierarchy shown in following figure. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape.

  Develope a tutoring software for an elementary school

You are the project manger for a company that is planning to develope a tutoring software for an elementary school that will follow their curriculum create a work breadown structure.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Create console program to prompts user to enter revenue

Create the console program which: Prompts user to enter revenue and expenses computes net income Outputs revenue, expenses and net income.

  Determine the number of days in the current month

The second should accept two values, determine the modulus and return the value, which the calling statement should then print out.

  Write main program that can serve as a test class

Implement the previous classes in Java. Write main program that can serve as a test class that tests all of the methods created and demonstrates that they are working

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Write a class named car that has the member variables

Write a class named Car that has the following member variables: YearModel. An int that holds the car's year model

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