Question
A class allows a group of one or more member objects to have a series of common characteristics and functions. Create a class (student) that
A class allows a group of one or more member objects to have a series of common characteristics and functions.
Create a class (student) that contains the member characteristics:
Student ID (string)
Student Last Name (string)
Student First Name (string)
GPA (float)
Number of enrolled classes (integer)
The class functions are:
setID (string passed to function to set Student ID)
setLastName (string passed to function to set Student Last Name)
setFirstName (string passed to function to set Student First Name)
setGPA (float passed to function to set GPA)
setClasses (integer passed to function to set Number of enrolled classes)
DisplayStudent (display member fields values from within this function)
SetALL (strings, float and integer passed to function setting the appropriate field)
Application will:
Create four class members (student1, student2, student3, student4)
Initialize the class members with the SetALL function
Display each members individual characteristics
Allow user to enter a NEW class member, student5 or student6)
Allow user to run this repeatedly (some sort of menu presentation??)
Output Example - Displaying the students' data:
Student ID: AF101
Smith, Zachery H.
4 Classes Taken This Semester
Current GPA is 3.2
Student ID: HJ389
Jones, Alias T.
2 Classes Taken This Semester
Current GPA is 3.3
Student ID: KL209
Luzer, Emma P.
4 Classes Taken This Semester
Current GPA is 4
Student ID: LL309
Beans, Hill O.
3 Classes Taken This Semester
Current GPA is 2.5
Hit Any Key to continue...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started