Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please see question below. Language should be Java I've provided the input format labelled as as mentioned in problem 2 below: Input First, you will

Please see question below. Language should be Java

I've provided the input format labelled as "as mentioned in problem 2" below:

Input

  • First, you will receive the number of semesters included in the student transcript, followed by the word SEMESTERS
  • Second, you will receive the total number of classes that the student has taken so far, followed by the word CLASSES
  • For each semester of data provided, you will receive the following information:
    • Semester name
    • Number of courses taken that semester
    • Multiple lines containing information for each course taken that semester in the following format:
      • course code followed by grade letter obtained, each separated by a comma

In order to improve your CGPA calculation, you will implement Dalhousies grade replacement rule to the work that you did in Problem 2.

If a course is repeated, the initial attempt is not included in the CGPA.

For example, if you get a B in a course that you had previously failed, only the B is included in your CGPA. For the sake of this exercise, the GPA for the previous semester is not affected.[1]

Input

(Same as Problem 2)

Processing

1. Convert each letter grade to the appropriate grade point value

  • Disregard any neutral grade letters (e.g. W or ILL grades)

2. Calculate the GPA and CGPA at the end of each semester and output semester information

  • If any course is repeated, make sure to disregard/overwrite the first attempt when calculating the CGPA (as described above)

Output format

(Same as Problem 2)

Sample input

Sample output

3 SEMESTERS 6 CLASSES Transfer Credits 2 ENGI 1123,B MATH 1000,F Summer 2018 2 CSCI 1110,F MATH 1000,A Fall 2018 2 MATH 1010,B CSCI 1110,A

SEMESTER: Transfer Credits GPA: 1.5 CGPA: 3.0 SEMESTER: Summer 2018 GPA: 2.0 CGPA: 3.5 SEMESTER: Fall 2018 GPA: 3.5 CGPA: 3.5

2 SEMESTERS 11 CLASSES Summer 2018 5 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000,A- Fall 2018 6 MATH 1010,B- CSCI 1110,C CSCI 1120,B CSCI 1170,C- CSCI 1108,A PSYC 1201,W

SEMESTER: Summer 2018 GPA: 1.75 CGPA: 3.0 SEMESTER: Fall 2018 GPA: 2.68 CGPA: 2.77

2 SEMESTERS 13 CLASSES Fall 2018 6 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000,A- MATH 2112,B+ Winter 2018 7 MATH 1010,A- CSCI 1110,B+ CSCI 1120,C+ CSCI 1801,A+ CSCI 2110,W CSCI 1170,C- CSCI 1108,A+

SEMESTER: Fall 2018 GPA: 2.06 CGPA: 3.1 SEMESTER: Winter 2018 GPA: 3.27 CGPA: 3.21

[1] In reality, the GPA is updated such that a replaced grade is no longer included for the semester affected, as if it had never happened.

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

Mysql Examples Explanations Explain Examples

Authors: Harry Baker ,Ray Yao

1st Edition

B0CQK9RN2J, 979-8872176237

More Books

Students also viewed these Databases questions

Question

a. (1) What are the major causes of business failure?

Answered: 1 week ago

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago