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
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.
|