Question: An Arithmetic Exercise Program In this project, you will design and implement a test application to help users to improve their arithmetic calculation skills. The

 An Arithmetic Exercise Program In this project, you will design andimplement a test application to help users to improve their arithmetic calculation

An Arithmetic Exercise Program In this project, you will design and implement a test application 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. See next page for a sample output of the program. Here is a sample run of the program

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!