Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 1. Define a class name Student according to the given UML in student.h Student - points[4) : double creditHour (4) : int name :

C++ image text in transcribed
1. Define a class name Student according to the given UML in student.h Student - points[4) : double creditHour (4) : int name : string + Student (nama: string) + Get Pointers) Display ( ) CalculateGPA) : double 2. Create another file name student.cpp to store the definitions of all the function prototypes in student.h Definition of each function Student (string nama) to store a string entered by user in data member name GetPointers() to use repetition structure in order to capture points and credit hour enterod by user repeatedly in both data members: points) and creditHour 1 you can declare a local integer variable as a loop counter Display) to display the name stored earlier by constructor Student () to display GPA value returned by a utility function name CalculateGPA) CalculateGPA) a utility function that calculates the current GPA based on values stored in pointe () and creditHour () declare 2 local variables to assist you in summing up the values in both points() and creditHour (1 use a repetition structure with an extra local integer variable as counter the formula for GPA calculation is given below (points[0]

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago