Information Systems Unit 3 Programming Tasks
 Home
Task Description Skill Name Example Due Date
1 Create a form for ordering 6 items of computer hardware including CD-RW drives from your computer store. The program is to print the number of these drives ordered. Create a web page that 'writes to itself' ie calls itself. grahams_order_1

bobs_order_form_1

Fri Feb 6
2 Extend the adder program so that it not only gives the sum, but also the difference, product, and quotient. Performing mathematical calculations. calculator adder Fri Feb 13
3 Create a page that calculates your level of 'Happiness' Performing mathematical calculations. happiness adder Fri Feb 13
4 Extend the calculator and happiness programs so that there are checks for null entries. Validating input. calculator_1
happiness_1
calculator
happiness
Fri Feb 20
5 Extend the order form created in task 1 to include a selection box to find how the customer knew about your store. The form is to write the order to a new web page and also give the total charge for the order. Create a web page that passes (as variables) values entered to another web page. grahams_order_2 bobs_order_form_2
processorder_2
Fri Feb 20
6 Write a program that generates a freight-charges table - two columns, distance (km) and charge ($). Start at 5 km which costs $10 and increment distance by 5km and charge by$4. Create a web page that uses a loop structure to create a table of values. grahams_charges loops
bobs_freight_table
nested_loops
Fri March 12
7 Create a survey form of at least 10 questions on a topic of you choice and writes the results to another page.    survey survey
process_survey
Fri March 19
8 Extend the order form created in task 5 so that it writes the order to a file called orders.txt
Create a web page that not only writes the values entered to another web page but also writes the order to a file which can be retrieved. grahams_order_3 bobs_order_form_3
processorder_3
Fri March 26
9 Write a program that retrieves this text file. Create a web page that retrieves the order and displays it. read_grahams_order_1 read_bobs_order_1 Fri March 26
10 Extend the order form created in task 8 so that it firsts checks to see if a file is already present, and if so it appends the new order to the file. Call the text file orders2.txt Instead of just one order being saved, the file adds a new order to existing ones. grahams_order_3b bobs_order_form_3
processorder_3b
Fri March 26
11 Alter the retrieve program in 9 above so that it loads the file into an array and prints each line. Instead of a text file the file is now a basic database with each order being a record. Parts of each record (fields) can now be identified. read_grahams_order_2 read_bobs_order_2 Fri March 26
12 Alter the retrieve program in 11 above so that after it loads the file into an array it explodes each line so that individual items of data (ie. the fields) can be accessed and written into a table. Manipulating a 2D array. read_grahams_order_3 read_bobs_order_3 Fri April 2
13 Alter the order form so that there are 3 (not 6) hardware items -  a system box at $500, a VDU at $250, a printer at $150. Total price incl GST for one of each will be $990. The date is to be shown as day, month, year (not time), and the address is to be split into 4 fields - street, suburb, state, and pcode. Tip - you'll need to create a new orders.txt file called orders3._txt.   grahams_order_4
processorder_4
screen dumps at:
grahams_order_form_4
processorder_4
Fri April 23
14 Write a program to retrieve and display the orders created in task 13 in a table.   read_grahams_order_4 screen dump at:
read_grahams_order_4
Fri April 23
15 Add code so that images of hardware randomly appear on the order page each time it is opened. Place 4 images of hardware in an array and randomly select 3 to be displayed on order form grahams_order_5 get images from the folder named images
shuffle_pictures
Fri May 30
16 Using the program created in 15 above, extend it so that it displays the total number of system boxes ordered, the total number of VDUs ordered, the total number of printers, ordered and the total value of the orders. You'll have to alter the total of each order when it is saved so that the '$' sign is not included, as it appears that intval (used in the read_grahams_order_4) won't work.   read_grahams_order_5 screen dump at:
read_grahams_order_5
Fri May 30