Question

Write a program that can be used as a math instructor for a young student. The...

Write a program that can be used as a math instructor for a young student. The program should display two random numbers to be added, such as: 247 + 129 The program should then pause while the student works on the problem. When the student is ready to check the answer, he or she can press a key and the program will display the correct solution: 247 +129 346

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Since you have not mentioned the coding language of your preference, I am providing the code in Java.

CODE

import java.util.Random;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Random rand = new Random();

Scanner sc = new Scanner(System.in);

int firstRandomNumber = rand.nextInt(1000);

int secondRandomNumber = rand.nextInt(1000);

System.out.format("What is the result of %d + %d ? ", firstRandomNumber, secondRandomNumber);

System.out.print("Press any key when you are ready......");

sc.nextLine();

System.out.format(" %d + %d = %d", firstRandomNumber, secondRandomNumber, firstRandomNumber + secondRandomNumber);

}

}

Add a comment
Know the answer?
Add Answer to:
Write a program that can be used as a math instructor for a young student. The...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please help! Write a program that can be used as a math tutor for a young...

    please help! Write a program that can be used as a math tutor for a young student. The program should display two random numbers to be added. The program should then pause while the student works on the problem. When the student is ready to check the answer, he or she can press a key and the program will display the correct solution. The output must be formatted correctly with the numbers aligned properly. You will build on this assignment...

  • In phyton 11. Math Quiz Write a program that gives simple math quizzes. The program should...

    In phyton 11. Math Quiz Write a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: 247 +129 The program should allow the student to enter the answer. If the answer is correct, a mes- sage of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed

  • USING A PYTHON Write a program that gives simple math quizzes. The program should display two...

    USING A PYTHON Write a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

  • Number 16. Chapter 3 Problem Comes from "Starting out with >>> C++ From Control Structures through...

    Number 16. Chapter 3 Problem Comes from "Starting out with >>> C++ From Control Structures through Objects" Ninth Edition. Checking work Programming Challenges 147 16. Senior Citizen Property Tax Madison County provides a $5,000 homeowner exemption for its senior citizens. For example, if a senior's house is valued at $158,000, its assessed value would be $94,800, as explained above. However, he would only pay tax on $89,800. At last year's tax rate of $2.64 for cach $100 of assessed value,...

  • x= Suppose you are building a program for teaching kids' math. Write a java program the...

    x= Suppose you are building a program for teaching kids' math. Write a java program the does the following: 1. Ask the user if he/she wants to sign-up a. If yes continue to step 2 b. If no Display the message "Thank you, Have a nice Day 2. Ask the user to enter a username. 3. Ask the user to enter a password with at least 8 characters long 4. Write a method with the following header: public static Boolean...

  • Write a program which gives an easy mathematics quiz. The program should display two random numbers...

    Write a program which gives an easy mathematics quiz. The program should display two random numbers which are to be added together, like this: 117 + 213 ----- The program should ask the user to enter their answer. If the answer is correct, the user should be congratulated. If the answer is wrong, the right answer should be displayed and the user should be scolded. Don't forget to: Generate random numbers Ask the user if they want to be tested...

  • Using Python, write an application that tests an elementary school student on their basic math skill....

    Using Python, write an application that tests an elementary school student on their basic math skill. The program should generate random equations to be solved with numbers between 0 and 12. The student should be told if they are correct or incorrect. If the user enters the word DONE, the program should end by telling the student their average (i.e. if they correctly answer 4 out of 8 problems, their average would be 50%). To help modularize you code, create...

  • Language: C++ Write a program that will allow the instructor to enter the student's names, student...

    Language: C++ Write a program that will allow the instructor to enter the student's names, student ID, and their scores on the various exams and projects. A class has a number of students during a semester. Those students take 4 quizzes, one midterm, and one final project. All quizzes weights add up to 40% of the overall grade. The midterm exam is 25% while the final project 35%. The program will issue a report. The report will show individual grades...

  • Write a JAVASCRIPT program that will help an elementary school student learn multiplication. Use the Random...

    Write a JAVASCRIPT program that will help an elementary school student learn multiplication. Use the Random method to produce two positive one-digit integers. The program should then prompt the user with a question using random numbers, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it is correct, display the message "Very good!" and ask whether the student wants to continue if so then ask another multiplication...

  • Math 112 Written Homework: Inverse Functions Student Name: Instructor: Math 112 Section: sentences. All graphs should...

    Math 112 Written Homework: Inverse Functions Student Name: Instructor: Math 112 Section: sentences. All graphs should be drawn accurately on this sheet, and be fully labeled Earlier in the semester, we found that the cost function for producing x pairs of a particular type of skates was given by: C(x) 752.75 +42.54x. What is the inverse of this function? What does it represent? Pick one ordered pair on the graph of the inverse function, and describe what it tells you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT