Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Visual Studio Code 2017. Use basic/intermediate C++ skills. Write a program to calculate the current semester's grade point average and the cumulative grade

Code in Visual Studio Code 2017. Use basic/intermediate C++ skills.

image text in transcribed

Write a program to calculate the current semester's grade point average and the cumulative grade point average of a student. The program should use an input data file to 1. read the student's six-digit identification number (id ), his/her old grade point average (), and the old number of course credits (occ) 2. read the course credits (cl, c2, c3, c4) and grades (gl, g2, g3, g4) for each of four courses 3. compute: old number of honor points-ohp-occ x ogpa new number of honor points-nhp-clxgl + c2xg2+c3xg3 + c4 x g4 total number of new course creditsncc-cl +c2+ c3 c4 current GPA- cur gpa-nhpcc cumulative GPA -cum gpa-(nhp ohp)/(ncc occ) The input data file should be created such that id, ogpa, and occ are placed on the first line, cl, c2, c3, and c4 are listed on the second line, and gl, g2, g3, and g4 are listed on the third line; as an example, the input file could contain the following data 24 4 213141 3.2 4 4 4 All outputs should be written to an output file which has a format exactly like the following Student ID number 213141 Previous semesters' credit Previous semesters' GPA GPA of current semester Cumulative GPA: Total credits completed 24 3.2 3.7 38

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions