Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Java program called Assignment4.java. The program is to display question

ID: 3764472 • Letter: W

Question

Write a Java program called Assignment4.java. The program is to display questions and read user inputs, then calculate and print out the requested value with a proper format. The goal of this program will be to create math study guides be producing arithmetic tables for the user. This program will follow a very simple process.

Specifications (20 points) Simple Memory Game Example: Flash Memory Game :http://www.best-flash-games.net/memory-games/remember-numbers.html

Skills: Input/Output Arrays Loops

Basic Description: Create a simple memory game using a single-dimension array. Game Description: Give the user a choice between difficult levels:

Easy – User gets 20 turns

Medium – User gets 10 turns

Hard – User gets 5 turns

When the user gets a match, they don't lose the turn. If they don't get a match, they lose a turn. 5 incorrect guesses = game over. The user guesses two items, these items are revealed to the user. If they match, the cards stay flipped over when presenting the puzzle. Otherwise re-hide the puzzle and ask for a new guess. The user wins if they match all the items.

Specifications: Create a game according to the above rules Your array should use either numbers or letters. (integers might be easier) You should have at least 10 items to match (so your array should be at least 20 items) If you do more than 10 items, you might want to give the player more turns.

The positions of the 10 items should be randomized every time the game is played. Note: populating the array is one of the big challenges of this assignment After every guess "clear the screen" before outputting the puzzle again. for (int n = 0; n < 10; n++) System.out.println( " " );

Explanation / Answer

Give complete description of the problem Assignment4.java. Its is not complete and mixed with another problem. So for which problem you want the solution.

As a hint: You can read user input in Java like this -

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//reader object to read sentence from console
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
//reading data from console
try {
       System.out.println("Enter data:");

         String data=reader.readLine();

         System.out.println("You entered:"+data);
      } catch (IOException e) {
            e.printStackTrace();
       }

For developing Assignment4, it is required to know:

1. Which questions to ask?

2. Which input to read and which format?

3. What type of calculation needs to be done?

4. What is expected output and which format it is to be displayed?

Hence, provide complete specification of the problem.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote