Question: You are to create a program that will keep track of 5 student records. You may define the data however you like, arrays, individual variables
You are to create a program that will keep track of 5 student records.
- You may define the data however you like, arrays, individual variables etc...
- You will define any values you like for the data.
- You may read the data in from dialog boxes or you can create a text file and read in the data that way.
- You are NOT to use scanner to read in the data
- The data you will read for each of the 5 properties will be:
- Student number (string of 4 numbers)
- Student name
- Number of credits
- GPA
You must also read the name of the University
Your program must meet the following specifications
You must create a new user defined class
- Add data (read in and calculated) is to be a member of the class. Therefore, nothing is to be passed in the parameter lists.
- The following methods are to be part of the class
- One method to read in all data (either from dialog boxes or text file)
- One method to calculate the following
- Calculate the tuition for each student ($850 times the number of credits
- Total tuition of all 5 properties
- Average GPA
- Number of honor students (GPA >= 3.5)
- One method using one dialog box to print the following:
- Name of the University
- Student number, name, number of credits, GPA and tuition
- Total tuition paid
- Number of honor students
Additionally, you must use formatting for all decimal values (there is a sample program stored with this assignment that shows how to format your decimals)
If you like, you may also align your data in columns (a sample program to do that is also stored with this assignment)
Before trying to format your data, you should first make sure your program is calculating everything correctly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
