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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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