Question: In this project, you will design and implement a test application(With java) to help users to improve their arithmetic calculation skills. The aim of the

In this project, you will design and implement a test application(With java) to help users to improve their arithmetic calculation skills. The aim of the program is to solve maximum number of questions correctly in a limited time. The application must generate random arithmetic expressions of two and three operations with random integer operands and then prints the question and gets the answer from the user. 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. The program must be modular and use methods for subtasks. Include at least 7 methods in your program. 1. You should use only System.currentTimeMillis()for keeping track of time. 2. Give initial time of 1,5 minute and increase the total time by 5 seconds if 5 questions in a row are correct 3. Implement two levels for the game: 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 = ? 4. 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 given at the e-next page. 5. Print a star pattern (as shown on the sample run) when user answers 3xk questions in a row where k = {1, 2, 3, 4, 5, }. When the size of the stars gets bigger than allowable number of characters in a row of the output screen, resize your stars with this formula (3xk) / 4 (this will be the number of starts in the last row of the triangle) 6. 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. 7. At the end of the test, ask the user if he wants to repeat the level or advance to the next level (if he has enough points), or quit the program.

Here is a sample run of the program: Welcome to Arithmetic!s Exercise Program You have 90 seconds to answer as many questions as possible. You will get 5 seconds bonus if you answer 5 questions in a row. Use java arithmetic precedence rules to find answers! Press" q !to quit or any key to start Q1 5 + 6 * 9 = 59 Correct Q2 2 - 6 * 0 = 2 Correct Q3 3 / 8 + 5 = 5 Correct ***good*** *** *** *** ** ** ** * * * Q4 8 / 2 - 4 = 0 Correct Q5 9 * 12 + 0 = 96 Correct (you won 5 secs.) Q6 52 - 12 + 13 = 53 Correct ****** very good ****** ****** ****** ****** ****** ****** ****** ***** ***** ***** ***** ***** ***** **** **** **** **** **** **** *** *** *** *** *** *** ** ** ** ** ** ** * * * * * * Q7 5 + 1 * 9 = 59 Wrong Q8 2 - 2 * 0 = 2 Wrong Q9 3 / 1 + 5 = 5 Wrong

TIME IS UP! You are as fast as a turtle! Correct Answers: 6 Total Questions: 9 Total Time: 95 sec Sorry!!! You cannot advance to the next level ! Input "q !to quit or any key to restart Q1 5 / 5 + 2 = 3 Correct Q2 3 * 4 - 2 = 10 Correct Q3 3 * 7 * 5 = 100 Wrong Q4 2 + 7 / 3 = 5 Wrong Q5 .......

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!