program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marty8917
    New Member
    • Dec 2007
    • 4

    program

    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.
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    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

    Comment

    • marty8917
      New Member
      • Dec 2007
      • 4

      #3
      sorry about that. trying my first program

      Comment

      • HawwwaH
        New Member
        • Dec 2007
        • 1

        #4
        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.

        Comment

        Working...