Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could anyone please make me a flow chart for the following program. I use d c++

ID: 3646219 • Letter: C

Question


Could anyone please make me a flow chart for the following program. I use d c++ for the code...


Write an application that will help an elementary school student learn addition, subtraction, division and multiplication.
Use a random object to produce two positive two digit integers.
The application should include a menu that allows the student to select an arithmetic problem either:
Addition,
Subtraction,
Exit the application.
After the student selects the Addition, the program should prompt the user with a question, such as
How much is 4 plus 9?

The student then inputs the answer.

Next, the application checks the student

Explanation / Answer

import java.util.Scanner; public class MathTutor { Scanner input = new Scanner(System.in); int numQuestions; int choice; int numCorrect; public MathTutor (){ numQuestions = choice = numCorrect = 0; } public int getNumQuestions(){ { System.out.print("How many questions? "); numQuestions = input.nextInt(); if (numQuestions < 1) { System.out.println("Invalid - must ask at least 1 question"); } }return numQuestions;} public int getQuestionType(){ while (choice < 1 || choice > 4) { System.out.println("Please select the type of questions you would like"); System.out.println("1) Addition"); System.out.println("2) Subtraction"); System.out.println("3) Multiplication"); System.out.println("4) Division"); System.out.print("Type: "); choice = input.nextInt(); if (choice < 1 || choice > 4) { System.out.println("Choice must be in the range 1-4"); } }return choice;} public void askQuestions() { for (int i = 0; i