Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to create a JAVA PROGRAM that will keep track of 5 student records You may define the data however you like, arrays, individual

You are to create a JAVA 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: 1. Student number (string of 4 numbers) 2. Student name 3. Number of credits 4. GPA 5. 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. You do not have to do user input error checking on this assignment. We will get to that on a future assignment.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Database And Knowledge Base Systems

Authors: S Krishna

1st Edition

9810206208, 978-9810206208

More Books

Students also viewed these Databases questions