Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use only java java java java java java at least use 7 methods dont use array (very important)initial time by onnly using currentTimeMillis(); please follow

use only java java java java java java

at least use 7 methods

dont use array

(very important)initial time by onnly using currentTimeMillis();

please follow the steps that written in the project its highly important

image text in transcribedimage text in transcribed

Problem Description: Write a game to help users to improve their arithmetic calculation skills. The aim of the game is to solve maximum number of questions correctly in a limited time. The game must generate random arithmetic expressions of two and three operations with random integer operands and asks the user the answer. If the user correctly writes the answer, the program generates the next random question until the time finishes. Use the following rules to implement your program. 1. Give initial time of 1 minute (increase the total time by 5 seconds if 5 questions in a row were correct). 2. Implement two levels: a) First level uses one operation with two operands only, e.g. 5+3 ? b) Second level uses two operations with three operands, e.g. 20/4+5 ? 3. At the end of the program calculate and show the score by grading total number of correctly answered questions. The program also must display the total time that is elapsed and number of correct answer/questions. You can provide motivational messages such as in the sample run that is provided. 4. According to the score of the user, put a threshold to decide whether the user can advance to the next level or repeat the current level. 5. At the end of game ask the user if he wants to repeat the level, advance to the next level (if he has enough points), or quit the program. 6. Here is a sample run of the program: Welcome to Arithmetic's Exercise Program Answer as many questions in total 60 seconds. You get 5 seconds bonus if you answer 5 questions in a row. Use java arithmetic precedence rules! Input ' q ' to quit or any key to start: 1. 5+69=59 Correct 2. 260=2 Correct 3. 3/8+5=5 Correct 4. 8/24=0 Correct 5. 912+0=96 Correct (5 seconds added) 6. 5212+13=51 Wrong 7. 5+19=59 wrong 8. 220=2 wrong 9. 3/1+5=5 wrong Time finished! You are as fast as a turtle! You answered 5 questions correctly out of 9 in 65 seconds. You can not advance to the next level Input ' q ' to quit or any key to restart

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Stages of a Relationship?

Answered: 1 week ago