Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Visual C# You will copy/open assignment #4 project (Math Practice) and finish the application. Here are the specifications: 1. 2. Set the Addition and Level
Visual C#
You will copy/open assignment #4 project (Math Practice) and finish the application. Here are the specifications: 1. 2. Set the Addition and Level 1 radio buttons as the default when the form is loaded. Code a void method and name it GenerateDisplayProblem. This method will display two random numbers in the appropriate labels. The range of the random numbers will be determined by the level of the problem. This method will display the correct operator image based upon the value of the operator radio button. If it is a subtraction problem, make sure the first number is larger than the second number since negative answers are not wanted by the teacher. If the second number is larger than swap the values. This method should be called anytime a new problem has to be displayed which should happen for any of the following scenarios: a. b. c. i. The form is initially displayed ii. Any radio button is clicked. ili. If the student answers a correct answer. d. Code a returning-value method to validate the student name (required) and the student answer which should be a valid integer. Use the Error Provider control instead of the MessageBox class. Test the application. 3. a. Test the application. 4. A KeyPress event needs to be coded for the student answer textbox control. This event should only allow the digits 0 to 9 and the backspace key to be entered in the textbox control. a. Test the application. 5. Code a void method and name it CheckAnswer that will have three parameters: a. First number-integer b. Second number- integer c. Answer - integer This method should contain logic to determine if the student answer is correct. If it is correct then the happy image should be displayed in the result PictureBox, clear the answer textbox control, add 1 to the appropriate counters and call the method to generate and display a new problem, set the focus to the answer textbox control. If the answer is not correct the sad image should be displayed in the result PictureBox control, select the data contained in the answer textbox control and add 1 to the appropriate counters. d. Test the application. 6. Code a void method and name it DisplaySummaryResults. This method should calculate the correct percentage and then display all the summary information using the appropriate labels This method should be called anytime the Summary page is clicked on the tab control. a. Test the application Step 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