/* Complete the program below. */ import java.util.Scanner; // Scanner reads user input from the keyboard public class MathQuizPart4 { // test driver for methods in MathQuiz class public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // needed for user input // call the method here to display the welcome message // use generateRandomNumber to generate two random numbers // between 1 and 50 and store them in variables // call askQuestion here to ask a math question // and store the user's answer in a variable // call giveFeedback here to tell user if they are correct or not scanner.close(); // close the scanner } // main // Display a welcome message public static void displayWelcomeMessage() { // copy and paste the code from MathQuizPart1.java here } // displayWelcomeMessage // Generate a random number within a range public static int generateRandomNumber(int min, int max) { // copy and past code from MathQuizPart2.java here } // generateRandomNumber // Ask the user to guess the sum of num1 and num2 and return the user's answer // Note: Scanner must be passed in from main. // DO NOT CREATE A NEW SCANNER in this method. // Use ONE Scanner for System.in within one program. public static int askQuestion(int num1, int num2, Scanner input) { // copy and paste code from MathQuizPart3.java here } // askQuestion // Provide feedback public static void giveFeedback(int guess, int sum) { // write the code here to provide feedback // if the guess is correct, print "Correct!" // if the guess is incorrect, print "Incorrect. The correct answer is " + sum } // giveFeedback } // class MathQuiz