By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

program

P: 4
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.
Dec 2 '07 #1
Share this Question
Share on Google+
3 Replies


lotus18
100+
P: 866
Hi

Sorry, but we don't make assignments or programs for anyone. Follow the Posting Guidelineshttp://www.thescripts.com/forum/faq....ing_guidelines

Just have a try. If you find difficulty with your coding, or problems regarding your codes, that's the time you can call our help : )

Rey Sean
Dec 3 '07 #2

P: 4
sorry about that. trying my first program
Dec 3 '07 #3

P: 1
Well, if you do add form, there will ge a form call Login, that will give you a basic layout which will save you some time.
Dec 3 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.