Module 2 - Game Skills 4 |
Objectives: After studying the Module 2 Game Skills 4, you will be able to:
|
YOUR LESSON Introduction The assignments in this module have given you practice with using the 5 step process to design computer programs. A key ingredient of the process is the development of an algorithm. And an important tool for developing algorithms is the flowchart. Usually, if you can visualize the algorithm with a flowchart, coding the program will be fairly easy. You have also learned about assigning information to variables. There are basically two different types of information that can be assigned: numeric and alphanumeric. Numbers are assigned to numeric variables and text, symbols, or words (anything that will not be used to do arithmetic) are assigned to alphanumeric variables. Sets of information can be processed by assigning data to unique variables. Finally, you have seen different ways to format output. Data can be printed as variables in combination with literals or it can be neatly organized in the columns of a table. If a table is used, preset print zones can be used by placing a comma between items in a PRINT statement. Remember, "good programming practice" means using REMs to tell the name of the program, the name of the programmer, and the date. After all, wouldn't you put the name of the assignment, your name, and the date on work you turned in for another class? It is also helpful to break up programs into blocks of code that do specific tasks--for example, Input, Processing, and Output. This is somewhat analogous to creating an outline which has well defined sections and follows a structured pattern. Finally, the use of meaningful variable names makes it easier to understand what a program is supposed to do. It's now time to put all this into practice with one final program for Module 2. |
YOUR ASSIGNMENT The coed 3-player basketball team needs to keep track of some simple statistics. Your job as the team statistician is to write a program that will neatly display the team's scoring information in a table format. Here are the details you will need to write this program.
|
Binary Bandits |
|||||
Player | 3-Pts | 2-Pts | FT | Total | |
Atwill | 2 | 6 | 5 | 23 | |
Putney | 5 | 3 | 4 | 25 | |
Jordan | 2 | 4 | 3 | 17 |
Grading Rubric All assignments will be graded according to a rubric. For Assignment 02.09 - Game Skills 4, the rubric will be as follows: Required statements used: 2 out of 2 points This assignment is worth a total of 10 points. If you are dissatisfied with your grade, you may redo and resubmit the assignment. You will need to zip the two files (the program and the algorithm) and submit them as an attachment. |
A QBasic Review
|
Attach the program you wrote for this section to Assignment 02.09 Game Skill 4 in the Dropbox area. Once you have completed the assignment, please move on to the next assignment. |