Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do it in 3 files (main.cpp- header.h-imp.cpp) programming 2 (C++) A student has a name and heishe is in a year of study (level).

Please do it in 3 files (main.cpp- header.h-imp.cpp) programming 2 (C++)
image text in transcribed
A student has a name and heishe is in a year of study (level). Each year the student takes a number of courses and score marks for those courses and cnds with a GPA for that year. The CGPA for courses of all years is calculated too. The weight of a mark between 0 and 60 is 0 , the weight of a mark between 60 and 70 is 1 . the weight of a mark between 70 and 80 is 2 , the weight of a mark between 80 and 90 is 3 , and the weight of a mark between 90 and 100 is 4 . Assuming that w stands for the weight of the mark and c stands for the course credit's then the GPA is calculated using the following formula: GPA=cwvi Define a struct called Year with componcnts numberOfCoursos, an array marki[ ], an array credits[ ] all of type int, and GPA of type float. Define a class called Student with private data members name of type string. level of type int, CGPA of type float, an array shudy Year ] of type Year. The class also has the private member functions calculateGPA(int), and calculateCGPAO. The class has the public member functions ser(int). getGPA(int), getCGPAO, primer), a default constructor, and constructor with parameters

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

How many three-digit numbers are divisible by 7?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago