Complete the code for the Student class method called void loadStudent(...) that receives a single string parameter. This string parameter will contain student details in the following format: ’Name’,’Surname’,’Email’,’Age’,’Student Number’ Write the code to separate the string and assign the correct values to the Student class members.   Create an overloaded > (greater than) operator in the Student class. The operator will compare the age of two student objects and return the object with the greater age. In main.cpp create a non member function named isFemale. This function will receive as parameter a pointer to a student object. If the last two numbers of the student number is valid numbers (Must be between 0 and 9) the function will return true. Otherwise the function will return false. Overload the default constructor for Student to receive a single string parameter. This string parameter will contain student details in the following format: ’Name’,’Surname’,’Email’,’Age’,’Student Number’   Write the code to separate the string and assign the correct values to the Student class

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

Complete the code for the Student class method called void loadStudent(...) that receives

a single string parameter. This string parameter will contain student details in

the following format:

’Name’,’Surname’,’Email’,’Age’,’Student Number’

Write the code to separate the string and assign the correct values to the Student class

members.

 

Create an overloaded > (greater than) operator in the Student class. The operator will

compare the age of two student objects and return the object with the greater age.

In main.cpp create a non member function named isFemale. This function will receive

as parameter a pointer to a student object. If the last two numbers of the student number

is valid numbers (Must be between 0 and 9) the function will return true. Otherwise the

function will return false.

Overload the default constructor for Student to receive a single string parameter. This

string parameter will contain student details in the following format:

’Name’,’Surname’,’Email’,’Age’,’Student Number’

 

Write the code to separate the string and assign the correct values to the Student class

members the only exception should be the student number.

The student number should be set to the string value "hidden".

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,