VISUAL BASIC .NET help

DaDoc04

Star
Registered
Hello all, I am working on a project in which I am supposed to design a test. Here are the instructions, Your program should open with a registration page (window/form) in which you display a general description of the test and the current date, and ask the user to enter his/her name. The user should not be allowed to begin the test without entering his/her name or identification. And once the user begins the test, he/she should not be allowed to leave the test until it has been completed; that is, the user should only be able to leave the test via the last/fourth and final form/window described below. The opening form should contain a button to move forward to the next form/window, such that when this button is clicked, the second form will be displayed.

The second form should open and pose five True/False questions for the test-taker to answer. Make up five true/false questions about Visual Basic.NET for the test-taker to answer. Each True/False question should present two option buttons, one for true and one for false. (The True/False response buttons should be grouped in group boxes on the test form, or else the ten option buttons will only permit one choice among the ten.) Each True/False question should have a numerical grade value of ten (10) points for a correct answer, zero (0) points for an incorrect answer. The test-taker will answer each question by clicking the appropriate True/False option button selection. If there is not enough space on the form to display all five of the questions and answers at the same time, you may arrange the questions in any suitable fashion, but the test-taker must be able to change any of his/her answers prior to terminating the test. This form also should have two buttons, one to move back to the previous/first form and another to move forward to the next/third form.

The third form shall pose five multiple-choice questions with at least four answer choices for each. Make up five multiple-choice questions about Visual Basic.NET for the test-taker to answer. Again, you should use option buttons for the answer choices and group them into group boxes so that each group of answers will function independently of the others. Each Multiple Choice question should have a numerical grade value of ten (10) points for a correct answer, zero (0) points for an incorrect answer. If there is not enough space on the form to display all five of the questions and answers at the same time, you may arrange the questions in any suitable fashion, but the test-taker must be able to change any of his/her answers prior to terminating the test. This form will require a button to move backward to the previous form and another to move forward to a next/last form. The button to move forward should read “Finish” because the test-taker should not be permitted to go back to any of the earlier forms once he/she arrives at the last/fourth and final form. (You might want to consider giving the test-taker a warning message before allowing him/her to proceed to the last/fourth and final form.)

On the last/fourth and final form the program should display the test-taker’s name, the current date, a question-by-question summary list of the test results (the test-taker’s answer, the correct answer, and the numerical score for each question), and the total score for the test (maximum of 100 points). There is no need to store the test results in a file of any type. This form should have a button to terminate the test only. Once the test-taker has reached the last/fourth form, he/she should not be allowed to return to any of the previous forms.

I have gotten to the 3rd form and am having trouble with the 4th form... Could someone please help me out.. I dont think i can post the work I have done, but if you think u could help, i will send you my work
 
lilluck316 said:
Hello all, I am working on a project in which I am supposed to design a test. Here are the instructions, Your program should open with a registration page (window/form) in which you display a general description of the test and the current date, and ask the user to enter his/her name. The user should not be allowed to begin the test without entering his/her name or identification. And once the user begins the test, he/she should not be allowed to leave the test until it has been completed; that is, the user should only be able to leave the test via the last/fourth and final form/window described below. The opening form should contain a button to move forward to the next form/window, such that when this button is clicked, the second form will be displayed.

The second form should open and pose five True/False questions for the test-taker to answer. Make up five true/false questions about Visual Basic.NET for the test-taker to answer. Each True/False question should present two option buttons, one for true and one for false. (The True/False response buttons should be grouped in group boxes on the test form, or else the ten option buttons will only permit one choice among the ten.) Each True/False question should have a numerical grade value of ten (10) points for a correct answer, zero (0) points for an incorrect answer. The test-taker will answer each question by clicking the appropriate True/False option button selection. If there is not enough space on the form to display all five of the questions and answers at the same time, you may arrange the questions in any suitable fashion, but the test-taker must be able to change any of his/her answers prior to terminating the test. This form also should have two buttons, one to move back to the previous/first form and another to move forward to the next/third form.

The third form shall pose five multiple-choice questions with at least four answer choices for each. Make up five multiple-choice questions about Visual Basic.NET for the test-taker to answer. Again, you should use option buttons for the answer choices and group them into group boxes so that each group of answers will function independently of the others. Each Multiple Choice question should have a numerical grade value of ten (10) points for a correct answer, zero (0) points for an incorrect answer. If there is not enough space on the form to display all five of the questions and answers at the same time, you may arrange the questions in any suitable fashion, but the test-taker must be able to change any of his/her answers prior to terminating the test. This form will require a button to move backward to the previous form and another to move forward to a next/last form. The button to move forward should read “Finish” because the test-taker should not be permitted to go back to any of the earlier forms once he/she arrives at the last/fourth and final form. (You might want to consider giving the test-taker a warning message before allowing him/her to proceed to the last/fourth and final form.)

On the last/fourth and final form the program should display the test-taker’s name, the current date, a question-by-question summary list of the test results (the test-taker’s answer, the correct answer, and the numerical score for each question), and the total score for the test (maximum of 100 points). There is no need to store the test results in a file of any type. This form should have a button to terminate the test only. Once the test-taker has reached the last/fourth form, he/she should not be allowed to return to any of the previous forms.

I have gotten to the 3rd form and am having trouble with the 4th form... Could someone please help me out.. I dont think i can post the work I have done, but if you think u could help, i will send you my work

May be able to help. Can you be more specific regarding the development environment and the trouble you are experiencing.

Thanks.
 
its been a while since i have done any coding (VB 4-5)but i will try.
i dont remember the syntax but this should be easy. just define a few variable types.
1) user with what ever parts you need. i.e. fname, lname, id_string etc.
2) a custom Boolean variable first part the correct answer, the second part is the users input. now you could compare the two values per answer and the value of each comparison is the value. ( (actual = true + user input = false) = false) then store the result in an array and display on the fourth form. or you could use a if,then else loop to compare the result only on the fourth page and display the result(s).

it should be easy. the question only need to be string data for display. you (should) already know the answers to the quiz and you dont need to save them so just compare user input against actual value and display the result. as far as the score goes that part should be easy too. just define a varScore and for every True boolean result increment this by one. and display the result. and when you terminate the test make sure you set a kill function to all you vars or else they might stick and give you memory trouble later. hope that made sense.
 
Back
Top