Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Homework Help for Java Programming fundamentals beginner class. using **NetBeans** please include screenshot of the output and also please keep the Extra Credit oppurtunity into
Homework Help for Java Programming fundamentals beginner class. using **NetBeans** please include screenshot of the output and also
please keep the Extra Credit oppurtunity into consideration while writing the code Thank you, Appreciate the help!
Chapter 3 & 4 Assignment (Math Quiz) - 20 points Your goal is to generate a simple math quiz with a number of equations that will be determined by the user. You will prompt the user for an answer to each equation and display whether they answered it correctly or incorrectly. At the end of the math quiz, you will display the number of total equations that they answered correct out of how many were given. Prompt the user for the number of math equations they would like to solve. (1 point) Input How many equations would you like to solve? OK Cancel Use a loop to generate the number of math equations that the user specified. (4 points) You will need to generate 2 random numbers from 1-10 for each equation. Then use addition as your operator. (2 points) Display an input box that gives the user an equation that adds the 2 random numbers together and prompts them for the answer. (2 points) Input 2 8+10-? OK Cancel Use conditionals to determine if the user is correct or incorrect. (2 points) Display a message that lets them know whether it was correct or incorrect. (1 point) Message i Correct OK Use a tally variable to keep track of how many questions they answer correctly. (2 points) Display how many questions were answered correctly out of how many questions were given. (1 point) Message You got 3 out of 5 questions correct. . Figure out the percentage of questions that the user entered correctly and add this to your output box. Note: you need to be careful of integer division when you are calculating the average. The variable that determines the total number of questions or the variable tallying the number of correct questions needs to be a double data type. Based on the percentage of questions that were answer correctly, determine a message to display that will tell the user how good they did. (5 points) Criteria: o Percentage is 90% or higher O Percentage is between 80% (inclusive) and 90% (not inclusive) o Percentage is between 70% (inclusive) and 80% (not inclusive) o Percentage is between 60% (inclusive) and 70% (not inclusive) O Percentage is 50% or below Example: Message You got 3.0 out of 5 questions correct which equates to 60.0% You need more practice. OK Extra Credit Challenge (2 bonus points): Make the quiz randomly generate a mathematical operator (mulitiplication, addition, & subtraction) for each equationStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started