Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program that prompts user for a file name, opens and reads the data, process, and store them in an array of students.

image text in transcribed

image text in transcribed

Write a Java program that prompts user for a file name, opens and reads the data, process, and store them in an array of students. A Student (you need to declare it) is a class defining a Student with information (such as name, id and a list of courses) and associated operations; Course is a class containing information (such as name, grade and number of units) and associated operations. The program calculates the total completed units and GPA for a student. The program then prints at and stops execution. (Refer to the sample below.) able Use the following table to assign points for a course Grade Points 4.0 3.0 2.0 To calculate the GPA multiply units by points for each course, and then add then together and divide the sum by total units. For example if course 1 has 5 units and the grade is A (4 points) and course 2 has 4 units and the grade is B (3 points), and course 3 has 4 units and the grade is F then (4*3 + 5*4 + 4 *0)/13- 2.462. Units completed are all the courses that have a passing grade (a,b,c, and d), Units taken is sum of all units registered for Completed courses are considered the ones with passing grade (A,B,C,D) Input File Format: Last, First ID number of courses Course I name Grade Units Course 2 name Grade Units Course 3 name Grade Units Input File Sample: Smith Jr., Joe 111-22-3333 3 Physics I A 5 English 1A B 4 English 1B F 4 Jones, Bill Physics I A 5 Chemistry 1A B 5 Computer Science 1 A 4 Chemistry 1 Lab B 1

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 Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago