CS 230 Spring 2007                          Assignment 11 – Arrays                                                   100 points

 

Assigned: 04/18/2007

Due: 04/27/2007 at the start of class (last day of class)

 

Pre-Lab (Do Before Lab):  Bring materials – a way to save a copy for you and a copy to turn in. Plan out tasks, objects, and events needed for program. Write pseudocode for the main buttons and for functions / independent sub procedures.

.

Main Assignment:

·         You have been recently hired by a professor to write a program to help figure out curves for tests. The scores from the test should be read in from a file (scores.txt) and displayed in a rich text box. These scores should be put into an array of scores as they are read in, since we will need to go back and revisit those scores.  Provide buttons and text boxes for trying out a potential method for determining the curve: Target Middle Mean = X (see below). Calculate a curve using a target specified by the user (see below). Once the curve has been determined, add it to all student scores, and display the updated scores in a second rich text box. Also, display information relevant to the method – the max, min, and middle mean, and the curve, plus the number of A’s, B’s, C’s, D’s, and F’s (in this simplified program no +’s or –‘s) in read only text boxes. 

·         Provide the curve calculation capability, a clear capability, a clear all capability and an exit capability.

o        The difference between Clear and Clear All is that the Clear All clears the results rich text box. Both versions clear the target, max, min, middle mean, and number of A’s, B’s, C’s etc

·         A sample interface is provided on page 2. Don’t let that constrain your creativity. Use it to help understand what I see as the inputs and outputs.

Hand in:

 

Task Details:

·         Ensure that the target is are numeric, and the entered value is between 30 and 100. Don’t try to calculate anything if bad data has been entered (display a message).  

 

Miscellaneous