Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE DO IN C++ ONLY & NOT SO COMPLEX!!! In C++, the class is the construct pri

ID: 3822900 • Letter: P

Question

PLEASE DO IN C++ ONLY & NOT SO COMPLEX!!!
In C++, the class is the construct primarily used to create objects. The class data type is defined by the programmer, consisting of variables and functions or methods. The general format of a class declaration is as follows:
class ClassName
{
declaration
// ... more declarations
// may follow....
};
Define a class Student that includes the following declarations:
first and last name
student ID
classification
major and if applicable minor
GPA
getStudentName - a function that gets as input the student's first and last name
getClassification - a function that determines the student's classification based upon the number of completed credit hours
getMajor - a function that displays a list of majors and allows the student to select his/her major from the list
calcStudentID - a function that assigns a student ID numbers using some system of numbers and letters (e.g., 900-xxx-xxx)
determineAcademicStanding - function that checks to see if student is in good academic standing (GPA >= 2.75)
Once you define the class Student, be sure to define each corresponding function or method as well. For example, you need to define a function (void getStudentName();) that asks the student to enter his/her first and last name. Each function must be defined correctly, including correct use of parameters as needed.
Define a main function to do the following:
Create an instance of the object Student.
Call the appropriate function to get the student's name and display the student's name on the screen.
Call the appropriate function to get the student's classification and display it on the screen.
Call the appropriate function that allows the student to select his/her major from the list
Call the appropriate function to assign a student ID numbers using some system of numbers and letters
Display student's ID number on the screen
Call the appropriate function to see if student is in good academic standing (GPA >= 2.75) and prints the appropriate message given the circumstance (e.g, "Your GPA is 2.5, so please make an appointment to see your advisor concerning your academic progress.")
Display a record of the student's information, including the student's name, student ID, classification, major, GPA and academic standing on the screen. Make sure the information is displayed in a uniform manner (e.g. use of tabs or in a table format) PLEASE DO IN C++ ONLY & NOT SO COMPLEX!!!
In C++, the class is the construct primarily used to create objects. The class data type is defined by the programmer, consisting of variables and functions or methods. The general format of a class declaration is as follows:
class ClassName
{
declaration
// ... more declarations
// may follow....
};
Define a class Student that includes the following declarations:
first and last name
student ID
classification
major and if applicable minor
GPA
getStudentName - a function that gets as input the student's first and last name
getClassification - a function that determines the student's classification based upon the number of completed credit hours
getMajor - a function that displays a list of majors and allows the student to select his/her major from the list
calcStudentID - a function that assigns a student ID numbers using some system of numbers and letters (e.g., 900-xxx-xxx)
determineAcademicStanding - function that checks to see if student is in good academic standing (GPA >= 2.75)
Once you define the class Student, be sure to define each corresponding function or method as well. For example, you need to define a function (void getStudentName();) that asks the student to enter his/her first and last name. Each function must be defined correctly, including correct use of parameters as needed.
Define a main function to do the following:
Create an instance of the object Student.
Call the appropriate function to get the student's name and display the student's name on the screen.
Call the appropriate function to get the student's classification and display it on the screen.
Call the appropriate function that allows the student to select his/her major from the list
Call the appropriate function to assign a student ID numbers using some system of numbers and letters
Display student's ID number on the screen
Call the appropriate function to see if student is in good academic standing (GPA >= 2.75) and prints the appropriate message given the circumstance (e.g, "Your GPA is 2.5, so please make an appointment to see your advisor concerning your academic progress.")
Display a record of the student's information, including the student's name, student ID, classification, major, GPA and academic standing on the screen. Make sure the information is displayed in a uniform manner (e.g. use of tabs or in a table format) PLEASE DO IN C++ ONLY & NOT SO COMPLEX!!!
In C++, the class is the construct primarily used to create objects. The class data type is defined by the programmer, consisting of variables and functions or methods. The general format of a class declaration is as follows:
class ClassName
{
declaration
// ... more declarations
// may follow....
};
Define a class Student that includes the following declarations:
first and last name
student ID
classification
major and if applicable minor
GPA
getStudentName - a function that gets as input the student's first and last name
getClassification - a function that determines the student's classification based upon the number of completed credit hours
getMajor - a function that displays a list of majors and allows the student to select his/her major from the list
calcStudentID - a function that assigns a student ID numbers using some system of numbers and letters (e.g., 900-xxx-xxx)
determineAcademicStanding - function that checks to see if student is in good academic standing (GPA >= 2.75)
Once you define the class Student, be sure to define each corresponding function or method as well. For example, you need to define a function (void getStudentName();) that asks the student to enter his/her first and last name. Each function must be defined correctly, including correct use of parameters as needed.
Define a main function to do the following:
Create an instance of the object Student.
Call the appropriate function to get the student's name and display the student's name on the screen.
Call the appropriate function to get the student's classification and display it on the screen.
Call the appropriate function that allows the student to select his/her major from the list
Call the appropriate function to assign a student ID numbers using some system of numbers and letters
Display student's ID number on the screen
Call the appropriate function to see if student is in good academic standing (GPA >= 2.75) and prints the appropriate message given the circumstance (e.g, "Your GPA is 2.5, so please make an appointment to see your advisor concerning your academic progress.")
Display a record of the student's information, including the student's name, student ID, classification, major, GPA and academic standing on the screen. Make sure the information is displayed in a uniform manner (e.g. use of tabs or in a table format) PLEASE DO IN C++ ONLY & NOT SO COMPLEX!!!
In C++, the class is the construct primarily used to create objects. The class data type is defined by the programmer, consisting of variables and functions or methods. The general format of a class declaration is as follows:
class ClassName
{
declaration
// ... more declarations
// may follow....
};
Define a class Student that includes the following declarations:
first and last name
student ID
classification
major and if applicable minor
GPA
getStudentName - a function that gets as input the student's first and last name
getClassification - a function that determines the student's classification based upon the number of completed credit hours
getMajor - a function that displays a list of majors and allows the student to select his/her major from the list
calcStudentID - a function that assigns a student ID numbers using some system of numbers and letters (e.g., 900-xxx-xxx)
determineAcademicStanding - function that checks to see if student is in good academic standing (GPA >= 2.75)
Once you define the class Student, be sure to define each corresponding function or method as well. For example, you need to define a function (void getStudentName();) that asks the student to enter his/her first and last name. Each function must be defined correctly, including correct use of parameters as needed.
Define a main function to do the following:
Create an instance of the object Student.
Call the appropriate function to get the student's name and display the student's name on the screen.
Call the appropriate function to get the student's classification and display it on the screen.
Call the appropriate function that allows the student to select his/her major from the list
Call the appropriate function to assign a student ID numbers using some system of numbers and letters
Display student's ID number on the screen
Call the appropriate function to see if student is in good academic standing (GPA >= 2.75) and prints the appropriate message given the circumstance (e.g, "Your GPA is 2.5, so please make an appointment to see your advisor concerning your academic progress.")
Display a record of the student's information, including the student's name, student ID, classification, major, GPA and academic standing on the screen. Make sure the information is displayed in a uniform manner (e.g. use of tabs or in a table format)

Explanation / Answer

#include <iostream>
#include <sstream>
#include <string>
using namespace std;

class Student {
      
    public:
        static int idCounter;

        double GPA;
        string major;
        string lastName;
        string firstName;
        string studentID;
        string classification;

        void getGPA();
        void getMajor();
        void calcStudentID();
        void getStudentName();
        void getClassification();
        void determineAcademicStanding();
};

int Student::idCounter = 1000;

void Student::getMajor() {
    cout << " Please choose from the list of following majors : " <<endl;
    cout << "1. Computer Science Engineering" << endl;
    cout << "2. Electronics Engineering" << endl;
    cout << "3. Mechanical Engineering" << endl;
    cout << "4. Chemical Engineering" << endl;
    cout << "5. Civil Engineering" << endl;
    cout << "Enter you chocie : ";
  
    int choice;
    string major;
    cin >> choice;

    switch(choice) {
        case 1 :
            major = "Computer Science Engineering";
            break;
        case 2 :
            major = "Electronics Engineering";
            break;
        case 3 :
            major = "Mechanical Engineering";
            break;
        case 4 :
            major = "Chemical Engineering";
            break;      
        case 5 :
            major = "Civil Engineering";
            break;      
        default :
            cout << "Wrong input !!! " << endl;
            return;
    }
    this->major = major;
}

void Student::calcStudentID() {
    int i = idCounter;
    stringstream out;
    out << i;
    studentID = out.str();
  
    idCounter++;
}

void Student::getStudentName() {
    cout << "Enter your first name : ";
    cin >> firstName;
    cout << "Enter your second name : ";
    cin >> lastName;
}

void Student::getClassification() {
    int creditHours;
    cout << " Enter number of credit hours : ";
    cin >> creditHours;
    if (creditHours >= 0 && creditHours <= 30) {
        classification = "Freshman";
    }
    else if (creditHours > 30 && creditHours <= 60) {
        classification = "Sophomore";
    }
    else if (creditHours > 60 && creditHours <= 90) {
        classification = "Junior";
    }
    else if (creditHours > 90) {
        classification = "Senior";
    }
    else {
        classification = "NA";
    }
}

void Student::getGPA() {
    double gpa;
    cout << " Enter GPA : ";
    cin >> gpa;
    GPA = gpa;
}

void Student::determineAcademicStanding() {
    if (GPA < 2.5) {
        cout << "Your GPA is < 2.5, so please make an appointment to see your advisor" << endl;
    }
    else {
        cout << "you are doing great !! " << endl;
    }
}

int main( ) {

    Student student;
    student.getStudentName();
    student.calcStudentID();
    student.getMajor();
    student.getClassification();
    student.getGPA();

    cout << "ID    : " << student.studentID <<endl;
    cout << "FName : " << student.firstName <<endl;
    cout << "LName : " << student.lastName <<endl;
    cout << "Major : " << student.major << endl;

    cout << "Classification : " << student.classification <<endl;
    cout << "Academic Stand : ";
    student.determineAcademicStanding();

   return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote