Addition Tutor: Create an application generates 2 random integers, each in the r
ID: 3534728 • Letter: A
Question
Addition Tutor:
Create an application generates 2 random integers, each in the range of 100 throug 500. The numbers should be displayed as an addition problem on te application's form, such as: 247 + 129 = ?
The form should have a text box for the user to enter the problem's answer. When a button is clicked, the application should do the following:
Ceck the user's input and display a message indicating wheter it is the correct answer.
Generate 2 new random numbers and display tem in a new problem on te form.
Explanation / Answer
Please rate with 5 stars :) To get a random number, use int(rnd * max) + 1 To add: VB assumes things are strings unless you convince it that they are numbers try multiplying and you should get the right answer - as you cant multiply letters use /1 (divide by 1) somewhere in your calcs to make the prog realise they are numbers text3.text = text1.text + text2.text /1
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.