|Assignments - First Semester|
|Name||Description||Language(s)||Concepts Learned||Other Requirements|
|Calculator Program||Write a program that functions as a mathematical calculator. The calculator will have the following math functions:
Note, when you do the boardfoot calculation, allow the user to enter the dimensions in a mix of feet and inches if they wish. Ask them these seven questions, in this order:
boardfeet = (pieces * length * width * thickness) / 144
For temperature conversion, use these formulas:
celsius = 5/9 * (fahrenheit - 32)
For extra credit, include additional math functions.
An example calculator program is available here.
Another example calculator program is available here.
|Sound Library||Write a menu-driven program that functions as a library of various sound effects. Model the structure of the program similar to the calculator program.
Use the SOUND statement with a FOR / NEXT loop for at least 6 of the sounds.
|Hi-Lo Game||The program plays a number guessing game. If the user does not guess the number, the program tells them if they are too high or too low. The program will have the following features:
|The Leap Year Program||Write a program that determines whether a single or a range of years is a leap year in the Gregorian Calendar. The program will have the following features:
A working sample of the program is here.
The Calendar presentation is here.
|Introduction to String Processing||You will write a program that allows the user to enter their first and last name on one line, separated by a space. They will then be asked to enter a sentence. Your program will then provide the output as shown below in the sample run. User input is shown in red.
What is your first and last name? Abraham Lincoln
Enter a sentence: The cat in the hat
Enter a search word that is in that sentence: cat
Here are the results:
Your first name is: Abraham
Your last name is: Lincoln
Your name in all upper case is: ABRAHAM LINCOLN
Your name backwards is: nlocniL maharbA
The search word first appears in the sentence in position: 5
The number of words in the sentence is: 5
For extra credit, convert the sentence into ROT13.
If you do this option, you will be required to explain, in detail, how your code works.
The sentence in ROT13 is: Gur png va gur ung
For extra, extra credit, convert the sentence into Pig Latin.
If you do this option, you will be required to explain, in detail, how your code works.
The sentence in ROT13 is: Ethay atcay inway ethay athay
Click here for a Quick Basic Strings Tip Sheet.
Be sure to "user proof" your program.
|QuickBasic||A sample program is here.|
|Digital Clock||You will write a program that functions as a digital clock that displays the following
The current time in this format:
6 hours 12 minutes 36 seconds
Show whether it is AM or PM
When the hour, minute, or second is equal to 1, indicate the singular, not the plural.
When the hour, minutes, or second is less than 10, do not print the leading zero but replace it with a space to keep the words "hours," "minutes," and "seconds" lined up vertically.
The clock should be "running" until the user presses the Escape key.
October 14, 2008
Use Screen 1 for your display. Use the extended ASCII character set to create a border.
Click here for a sample picture.
The clock will be "ticking" that is, running with the time changing, while the program runs.
|The President Program||Write a program that shows all the US presidents, terms served, years lived, party affiliation, and vice-president. The features include:
There is a sample program here.
The notes from the classroom presentation on this topic are here in PDF format.
The data file, in CSV format, containing the president information is downloadable here
|Web Site Development|
|Web Site Development||
Your assignment is to create an instructional/how-to web site for a fictious online education company. The topic of your site is up to you but must be approved by your teacher.
A web site will instruct the user how to do something by showing and explaining the steps in the process. The site will have an online quiz to tests the user's knowledge.
The web site will contain a minimum of four separate pages (five if you count the one generated by PHP-driven quiz)
Contents of Page 1
Contents of Page 2
Your web site will also be evaluated on the following:
Keep in mind that ther content of your site must be of your own creation. You are allowed to use clip art and photos as will be explained in class.
All images must contain an annotation in the HTML source code that contains a direct link to their source. For example,
<!-- http://openphoto.net/gallery/image.html?image_id=6704 -->
or if the image was created by you,
<!-- Created by me using The Gimp -->
Sample Business Page - Focus Software Development
Sample Business Page - Polka Dot Software
HTML Goodies - HTML Tutorials
Webmonkey - HTML Color Codes
Media Builder - Clip Art and Backgrounds
Microsoft Office Clip Art - Clip Art and Backgrounds
Open Photo - Photographs to use
Open Clip Art - Clip Art to use
Creative Commons - Photographs to use
How to A to Z - Your teacher's how to do it site
PHP Quick Reference
Pagan's Pizza - form processing example
Order form PHP - example of extracting and echoing form data with PHP
Another order form/PHP demo - This one is a flower shop
How to build HTML forms
|Robotics||Learn how robots are programmed to perform a variety a tasks.
For a list of your assignments, click
|The Game Project||
Using SmallBasic, you will create a game. The game is called Connect 4 and is similar to Tic-Tac Toe. We will go through the SmallBasic tutorials and then build the game step-by-step.
Complete these chapters in the SmallBasic Tutorial:
Day 1 - Chapters 1 - 4Look at the resource in the column to the right for more information about programming in SmallBasic.
Now you will begin building the game. The steps are listed below. You will receive points for each of the completed steps.
Step 1 - Create the title screen
Set up the graphics window and build a title/introduction screen. That screen will show the name of the game, your name, game version number, and the date (month and year), and a prompt to tell the user how to start the game.
The graphics screen window size should be set to
GraphicsWindow.Width = 480
GraphicsWindow.Height = 320
Step 2 - Set up the game board
Create the game board screen. The board will consist of 6 rows and 7 columns. You can use any shape you want to create the board. Leave an area on the board to display the game title, instructions, and an indication as to whose turn it is.
Here is an example of a game board:
Step 3 - Create the player's piece
Create Player One's piece. This should appear above the first column on the left. Allow the player to move the piece from above one column to another with the use of the arrow keys. The piece should not move anywhere other than over the columns.
Step 4 - Drop the piece
Allow the player to drop their piece when they press the Enter key. The piece should drop from one row to another, stopping at the bottom of the column.
Step 5 - Switch players
Once Player One has dropped their piece, switch to Player Two. A different piece should appear above the column on the left. This piece should look different from Player One's piece. Player Two should be able to move the piece across the space above the columns as Player One did with their piece.
Step 6 - Drop the second piece
This is the same action as when Player One dropped their piece EXCEPT that now, instead of just dropping to the bottom row, you have to drop to the last unoccupied space in that column. So, if Player Two drops into the same column as Player One did, Player Two's piece would need to stop in Row 5.
Step 7 - Continuing the play
After Player two makes their play, switch back to Player One. Then back to Player Two, and so on. You should be able to fill the board with Player One and Player Two pieces. Step 8 - Checking for a win
Once you have the game functioning through Step 7, you need to add a checker that determines whether either player has a Connect 4 after each of their moves. You will need to test for a four-in-a-row that can occur horizontally, vertically, and in two diagonal directions. If a player has 4-in-a-row, then you will indicate which player won and the game will stop.
Step 8 - Checking for a draw
If all the spaces on the board are used and neither player has a Connect 4, then the game is a draw and you will display that on the screen and the game will stop.
Step 9 - Starting over
After a win or a draw, provide a feature that lets the player start another game or to quit.
Your code must be annotated, that is, include remarks in your program code that indicate what that portion of the program does.
Here is a beta version of my game.
You might need the SmallBasicLibrary.dll to run it. Download here.
Other SmallBasic Resources
Fun Programming for Kids