CS 230 Fall 2009                                                Assignment 4 –More Complicated Branching                                           100 points

 

Assigned: 09/28/2009

Due: 10/06/2009 at the start of class – NOTE: I have made it due on Tuesday so that it is not due the same time as when the test probably will be. However, it must be done by class time on the due date. There will be a new assignment for that day!

 

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. Plan main button(s) with pseudocode or flowchart. There is some complicated logic – think about it BEFORE lab!!

 

Main Assignment:

The Penn State – Germantown Campus (made up) has asked you to develop a program to calculate
(simplified) tuition and fees. You will need to get as input from the user the number of credits, and whether the student is “In State” or not, and whether the student will live in the dorms or not (checkboxes for each).  You will then need to calculated tuition and board and total costs. Tuition is according to the following scheme:

Per Credit Costs

In State

Out of State

First 12 Credits

600

1200

Next 9 Credits

200

500

In addition, the state in an effort to encourage less pollution / demand on highways / more use of already paid for dorms, has decided to offer a 20% discount on tuition for any student who lives in the dorms.  The dorm cost is $5000.  For calculations, show Basic Tuition Cost, Discount (0 if none), Final Tuition, Dorm Cost (0 if not in dorm), and Total Cost as results.  In addition to the calculate capability, provide capabilities to clear all of the controls (text boxes and checkboxes) to start again, and to exit.

Please set the name of the project to something other than the default name (WindowsApplication1, …). It is helpful if you use a name that identifies you as well as the assignment (e.g. yourlastname assignment 4).

 

Background Knowledge:

 

Task Details:

 

Miscellaneous:

Hand in: