Computers and Technology

Implement a Java program that creates math flashcards for elementary grade students. User will enter his/her name, the type (+, -, *, /), the range of the factors to be used in the problems, and the number of problems to work. The system will provide problems, evaluate user responses to the problems, score the problems, and provide statistics about the session at the end. Functional Requirements • User enters name at the beginning of a session. • System covers four math operations – addition, subtraction, multiplication, and division – with the user choosing which of the four operations to do in the session. Only 1 type of problem can be done in each session. • User will enter additional session parameters from prompts – number of problems to work and the range of values desired in the problems, e. g., addition with factors ranging from 0 to 12. • System will present problems to the user. • User will respond to problems with an answer and the system will provide immediate feedback for each problem, correct or incorrect. • System will provide summary statistics for the session once all problems are completed, including user name, date and time, operation chosen for the problems, range selected for the problems, number of problems, number of problemTechnical
Requirements The system should include the following Java components: • Name of your source code main class as follows: YourName_Project1.java • Methods to prompt the user and to get values for input variables, e. g., user name, number of problems, range of values, etc. • Switch statement for selecting the math operation to perform (cases). • Loop to create the selected number of problems for the session, • Method to get the factors for the problems. • Math. random() used in the creation of the problems. • System. currentTimeMillis() used to record the start time, end time, and calculate the duration of the session in seconds. • java. time. LocalTime. now() method to display date and time of session. s correct, percentage score, duration of the session.
Example output (from the Eclipse console) Enter your name: Kevin Enter "A" for Addition, "S" for Subtraction, "M" for Multiplication, "D" for Division: M Enter the number of problems you wish to work: 3 What are the low and high numbers you want in your problems? Enter the low value for your problems: 0 Enter the high value for your problems: 10 10 * 0 = 0 Correct 2 * 3 = 5 Incorrect 8 * 9 = 72 Correct Session Summary 3 problems, 2 correct Score is 67, Time is 11 seconds Session for Kevin was Multiplication on 2020-08-24 at 00:09:40.401
Hints. • To create your problems, code the addition case first. Then replicate and edit it for the others. • For the subtraction case, get the factors in the range, add them together so the sum becomes the minuend, one of the factors is the subtrahend, and the other factor is the difference. • For multiplication, get the factors in the range, similar to how you did the addition case. • For the division case, get the factors in the range, multiply them as you would in a multiplication problem. The product becomes the dividend, one of the factors becomes the divisor, and the other factor is the quotient.
Analysis. Describe the problem including input, processing, primary calculations, and output in your own words. Design.
Describe the major steps for solving the problem.
Coding. Copy and paste source code below. Testing.
Describe how you tested this program.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 22.06.2019 12:00, dani19cano
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, CalCDanG
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
Do you know the correct answer?
Implement a Java program that creates math flashcards for elementary grade students. User will enter...

Questions in other subjects:

Konu
English, 31.08.2019 22:30