Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Client Code In the client/demo code you will read a transcript from a file, print the transcript, and calculate and print the number of credits

Client Code In the client/demo code you will read a transcript from a file, print the transcript, and calculate and print the number of credits and GPA. Then you will add and drop current semester courses from the keyboard, and print the transcript again.

1.Create a MyArray of Course objects. 2.Read the student name, student number, and completed courses from the file transcript.txt. The file has student name on the first line, student number on the second line, and then the courses, with each field on a separate line, in the following order: course number, course name, section, department, semester (Fall, Spring, Winter, or Summer and year), grade, credits. For each course read the fields, create a Course object, and add it to the MyArray of Courses. 3.Print the student name and student number, then print all completed courses. 4.Calculate and print the total credits earned. 5.Calculate and print the GPA. This table shows the points earned for each grade. grade points A 4.0 A- 3.7 B+ 3.5 B 3 B- 2.7 C+ 2.5 C 2.0 D 1.0 F 0 Calculate the grade points for a course by multiplying the points earned by the number of credits. Then calculate the GPA, by adding the points earned for all courses and dividing by the total number of credits completed. 6.Prompt the user to enter four courses being taken during the current semester. Use an empty String for the grade. 7.Prompt the user to drop one of the courses. Prompt for the course number, department, and semester. Find the course in the MyArray and remove it. 8.Print the student name and number and all of the courses in the MyArray.

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions