BASIC Programming
Chapter 9 Programming Assignment
|
Write an entertaining game program that is modelled somewhat on the popular t.v. game show "Who Wants to be a Millionaire?". The user must be presented with a series of multiple choice questions (with 4 choices on each question, just like the game show.) The user wins an increasing amount of money for each question that he answers correctly. He can quit at any time but if he answers a question incorrectly, he loses all of his money. (Optional: If you want to allow the user to keep the last "guaranteed amount" that would be fine but it will be tricky to code.) It is required however that you store the questions, the multiple choices, and the correct answers in a sequential access file named Ch9Prob1Data.txt. For example, your data file must look like this hyperlink (where the question is on the first line, the four multiple choice answers are on the next four lines, and the answer is on the next line). The program must be user-friendly with menus, prompts, keyboard shortcuts, proper TabIndex property settings, etc. Much of the grade for this assignment will be determined by the user interface and effective interactivity of the project.
Your program must follow the Visual Basic Documentation & Coding Standards. Save the form and project files as "Ch9Prob1" with the proper file extensions (.frm & .vbp, respectively) in a newly created folder named Ch9Prob1 within your network Basic folder. Save your sequential access file (Ch9Prob1Data.txt) to the same folder as well. Also, save or copy this project (.frm & .vbp files) into a folder named Ch9Prob1 within your Submit folder (so that the instructor can execute and test the program.)
Print out the code, the text file Ch9Prob1Data.txt, and the form image and staple them together with the code window on top. Type and print out your pseudocode using MS Word and save it as "Ch9Prob1Pseudocode.doc".
Staple your printouts in the following order:
Pseudocode
Generate your own pseudocode for this assignment.
Test Plan
No test plan is necessary for this assignment.