Computer Science Homework Solutions
Problem
#7655

Creating an addition tutor with 2 randomly selected integers.

The form needs to contain one command button that should present a new addition problem and one should allow the user to quit.  There should be a text box to present the question and accept the answer and another to tell the user whether her answer was correct.  End program with the quit button.  After that is working, add option buttons to allow the user to choose easy medium or hard problems, i.e., numbers between 0 and 9, 0 and 99 or 0 and 999.

I am at the understanding that one variable, X is x-int(rnd*10). Then y=int(rnd*10). If this is correct what should the Command buttom that generates a new problem look like? I am having a tough time visualizing this.
Thx!

Solution
What is this?
By OTA - Overall OTA Rating
Huanhuan Liang, MSc - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$7.98)
Included in Download
  • Plain text response
  • Attached file(s):
    • Question.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Data Structures C++ - Write a program that generates an array of 10 random integers in the range from 0 to 999. Output array using the template function writeArray(), and then call the function bubbleSort() to sort the lis ...
  • The reason positive integers doesn't go to infinity in java. - In real arithmetic, the sum of the inverses of all positive integers goes to infinity. In other words, if we take enough terms in the sum the sum exceeds any fixed value. However, when we compute the ...
  • Computing the number of intergers that can be represented using sign or two's complement. - Using a 32-bit word, how many different integers can be represented by (a) sign and modulus; (b) 2's complement? Express the answer using powers of 2.
  • VB - Application Development - Hints: 1. How would you use Integers and Strings in an application? Start off by defining integers and strings. Include examples. 2. Are Integers and Strings considered objects in VB? Elaborate. ...
  • Number missing from sequence - This is a problem solving exercise that a certain major software company likes to use in their interviews. Like many algorithm design problems, there are many possible answers, but I have presented o ...
Browse