Write a program that will help an elementary school student learn multiplication. Use a Random object...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that will help an elementary school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program should then prompt the user with a question, such as: How much is 6 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display one of the following messages randomly and ask whether the student wants to attempt another question. If yes, continue. If no, then do nothing. Each correct answer carries 1 point and each wrong answer will not accumulate any points. Display the number of points scored by the student over the total number of questions displayed. Possible responses for the correct answer are as follows: Very good! Excellent! Nice work! Keep up the good work! If the answer is wrong, display on of the following possible messages randomly: No. Please try again. Wrong. Try once more. Don't give up! No. Keep trying. Your form code should validate the data entered for proper type etc. But a create a separate class with methods or properties as appropriate for each of the following: 1. Generating a random question. This method should be called with the application starts, and then each time when a new question is generated. 2. Evaluating the answer 3. Keeping track of points 4. Generating random messages for correct answers and wrong answers. Write a program that will help an elementary school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program should then prompt the user with a question, such as: How much is 6 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display one of the following messages randomly and ask whether the student wants to attempt another question. If yes, continue. If no, then do nothing. Each correct answer carries 1 point and each wrong answer will not accumulate any points. Display the number of points scored by the student over the total number of questions displayed. Possible responses for the correct answer are as follows: Very good! Excellent! Nice work! Keep up the good work! If the answer is wrong, display on of the following possible messages randomly: No. Please try again. Wrong. Try once more. Don't give up! No. Keep trying. Your form code should validate the data entered for proper type etc. But a create a separate class with methods or properties as appropriate for each of the following: 1. Generating a random question. This method should be called with the application starts, and then each time when a new question is generated. 2. Evaluating the answer 3. Keeping track of points 4. Generating random messages for correct answers and wrong answers.
Expert Answer:
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
(a) Find the inverse of the following matrix, mod (26) 1 3 0 -4 0 1 1 0 - -2,
-
a) The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use the rand function to...
-
1. Using the information from the financial statements below and the FCFF and FCFE formulas calculated using net income, estimate the following: 1. FCFF = NI + NCC + Int(1 - Tax rate) - FCInv- WCInv...
-
Marta purchased a home with an adjustable rate mortgage. The margin on an adjustable-rate mortgage is 5.5% and the rate cap is 6.5% over the life of the loan. If the current index rate is 8.9%, find...
-
Explain how a forward contract to sell foreign currency is mapped into a portfolio of zero-coupon bonds with standard maturities for the purposes of a VaR calculation.
-
During a particular year, the T-bill rate was 6%, the market return was 14%, and a portfolio manager with beta of .5 realized a return of 10%. a. Evaluate the manager based on the portfolio alpha. b....
-
Derive an expression for the electric energy generation per unit of air volume stored in a cavity for a CAES system. Assume that there are two expansion stages and express the work output as the sum...
-
Sport Pro Magazine sold 12,000 annual subscriptions on August 1, 2010, for $18 each. Prepare Sport Pros August 1, 2010, journal entry and the December 31, 2010, annual adjusting entry.
-
Three siblings, Akbar, Benot, and Cleo, live in the town of Digitopolis. The sum of the ages of all three children is 16. Akbar's age is equal to the sum of the other two. Three times Cleo's age is 1...
-
Liquid reaction A --> 2B is taking place in a steady state packed bed reactor that has total available packing area (A) of 10 m. The density (p) and packing surface (a) of the catalyst per volume are...
-
To compute the price of a bond (market price), you use Question 8 options: a) neither of the present value tables; it is necessary to use the future value tables b) both the present value of the face...
-
Can insights from behavioural economics help ordinary people to decide and choose more effectively in their everyday decision-making? If so, how and why? Illustrate with examples.
-
Describe some of the different channels via which emotions affect financial trading decisions, explaining whether or not each of these channels is about the positive versus negative impact of...
-
Building on some of the examples introduced, explore some examples of intrinsic motivation that you think are important to peoples daily lives. Do these motivations improve behaviour, or not? Justify...
-
How are insights from behavioural macroeconomics useful to policy-makers, and are they more useful than insights from conventional macroeconomic theory? Are there other behavioural insights, not...
-
Outline the essential elements of social motivation theory. What does the empirical evidence tell us about social motivations and can this evidence be explained using insights from conventional...
-
R and S went into the partnership with investments in the ratio 6: 5. After 6 months, R withdraw one third of his capital and S withdraw one fifth of his capital. What will be the ratio of profits...
-
What is the difference between direct materials and indirect materials?
-
Write a program RecoverSignal that will read the binary file written by StoreSignal, as described in the previous exercise. Display the integer values that the data represents on the screen.
-
Write a class TimeOfDay that uses the exception classes defined in the previous exercise. Give it a method setTimeTo(timeString) that changes the time if timeString corresponds to a valid time of...
-
Modify the TelephoneNumber class described in Exercise 6 so that it is serializable. Write a program that creates an array whose base type is TelephoneNumber by reading data from the keyboard. Write...
-
The nozzle of a mixing vibrator is tested for its number of vibrations. The vibration frequency, for each nozzle sample, can be modeled by a normal distribution with mean 128 and standard deviation...
-
If a random variable has the standard normal distribution, find the probability that it will take on a value (a) between 0 and 2.3 ; (b) between 1.22 and 2.43 ; (c) between -1.45 and -0.45 ; (d)...
-
Verify that (a) \(z_{0.005}=2.575\); (b) \(z_{0.025}=1.96\).
Study smarter with the SolutionInn App