Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C# for the following: Problem 1 [5 points]: Write a method GenerateQuestion that can be used as a math tutor for a young student.
Use C# for the following:
Problem 1 [5 points]: Write a method GenerateQuestion that can be used as a math tutor for a young student. The method should generate and display two random numbers that are to be added, such as: The method should wait for the student to enter the answer. If the answer is correct, the method should return true, otherwise it should return false. Then, in Main, generate three such questions. For each one, if the user answered correctly (if the method returned true) then display a "congratulations!" message. Otherwise display a message similar to: "you answered incorrectly, please try again!". - Hint 1: use Random, as seen in class! - Hint 2: see previous notes on how to format the output so it displays the numbers nicely alignedStep 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