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
    1. Calculate the tuition for each student ($850 times the number of credits
    2. Total tuition of all 5 properties
    3. Average GPA
    4. Number of honor students (GPA >= 3.5)
  • One method using one dialog box to print the following:
    1. Name of the University
    2. Student number, name, number of credits, GPA and tuition
    3. Total tuition paid
    4. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!