I need help writing a program in vb. here is what i need.
1. Asks for the user name (use an input box)
2. Sets the variable used to count the number of problems and a second to count the number correct
3. Use a Loop of choice to produce 10 problems (note some will need to increment a problem count)
4. Generate 2 independent Random numbers and display them on a Form
5. Provide some direction on the form to indicate what is to be done (Add answer to TextBox)
6. Provide a button on the form accepting the answer ( Final Answer is)
7. Evaluate the answer with an IF - Then -Else statement (does Textbox3 = X + Y)
8. then if Yes Load a form to give a congratulations & Name (note you need to provide a stop or time to read)
9. Increment the number correct variable C= C+1(include the user name on the Form)
10. else Load a Form to give a sorry your wrong & Name message and display the correct answer is & answer
11. Increment the problem counter if applicable. P= P+1
12. Finish the loop to create the next problem, when 10 problems have been answered.
13. After 10 problems the loop should drop out to Load a Form showing the statistics.
14. Display the number correct, the user name, and the percent correct (No. correct * 10)%
15. Provide a button to exit, Create an Input box to try again or exit ( Yes or No)
16. Return to just after input user name if the answer is Yes or Exit if No
Note: the form for correct should be green for incorrect should be red, for statistics white.
1. Asks for the user name (use an input box)
2. Sets the variable used to count the number of problems and a second to count the number correct
3. Use a Loop of choice to produce 10 problems (note some will need to increment a problem count)
4. Generate 2 independent Random numbers and display them on a Form
5. Provide some direction on the form to indicate what is to be done (Add answer to TextBox)
6. Provide a button on the form accepting the answer ( Final Answer is)
7. Evaluate the answer with an IF - Then -Else statement (does Textbox3 = X + Y)
8. then if Yes Load a form to give a congratulations & Name (note you need to provide a stop or time to read)
9. Increment the number correct variable C= C+1(include the user name on the Form)
10. else Load a Form to give a sorry your wrong & Name message and display the correct answer is & answer
11. Increment the problem counter if applicable. P= P+1
12. Finish the loop to create the next problem, when 10 problems have been answered.
13. After 10 problems the loop should drop out to Load a Form showing the statistics.
14. Display the number correct, the user name, and the percent correct (No. correct * 10)%
15. Provide a button to exit, Create an Input box to try again or exit ( Yes or No)
16. Return to just after input user name if the answer is Yes or Exit if No
Note: the form for correct should be green for incorrect should be red, for statistics white.
Comment