You have been provided with a QTCreator project called Project7_Student. Open the project inQTCreator and make the necessary changes to the main.cpp and student.cpp/h files.   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".    I've been given this question, I have no idea how to do it, any help would be appreciated.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

You have been provided with a QTCreator project called Project7_Student. Open the

project inQTCreator and make the necessary changes to the main.cpp and student.cpp/h

files.

 

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". 

 

I've been given this question, I have no idea how to do it, any help would be appreciated.

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,