This lab will explore how to define a new C++ data type and also how to combine multiple C++ files into a single executable program. The lab has the following requirements: Please make sure all your function must have function header documentation, please see PrintMeFirst function as example. student.h file: Write a struct Student and save it in student.h file with the following: o struct Student must have the following data field: • name of data type string • idNum of data type int • creditHours of data type int gpa of data type double student.cpp file: o write a function Student getData ( ) that will do the following: • define a local variable Student studentInfo • this function will ask user to enter "Student name" and save the user input to the data member name of local variable studentInfo • this function will ask user to enter "Student ID" and save the user input to the data member idNum of local variable studentInfo • this function will ask user to enter "Student name" and save the user input to the data member creditHours of local variable studentInfo • this function will ask user to enter "Student name" and save the user input to the data member gpa of local variable studentInfo return studentInfo o write a function void printStudentInfo(Student studentInfo) that will do the following: print out the all the data member of studentInfo printMeFirst.h file: I have provided this file • printMeFirst.cpp file: I have provided this file • Makefile file: I have provide this file studentMain.cpp file: This is a test driver program. I have provided this file, but you need to change the parameters for printMeFirst function to your own name and the name of this lab. • After your compile all these programs, it will link into an executable program studentMain • Run studentMain program, and it should have a similar output below:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I really need help writing this code it's not compiling because of the student.h file

C++

Program written by: Ron Sha
Course Info: cS-102 structure example
Date: Fri Dec 04 22:15:17 2020
Enter the following student data:
Student name: Ron Sha
Student ID Number: 8080
Credit Hours Enrolled: 20
Current GPA: 3.89
Here is the student data you entered:
Name: Ron Sha
ID Number: 8080
Credit Hours: 20
GPA: 3.89
Transcribed Image Text:Program written by: Ron Sha Course Info: cS-102 structure example Date: Fri Dec 04 22:15:17 2020 Enter the following student data: Student name: Ron Sha Student ID Number: 8080 Credit Hours Enrolled: 20 Current GPA: 3.89 Here is the student data you entered: Name: Ron Sha ID Number: 8080 Credit Hours: 20 GPA: 3.89
Lab9: Structure & Makefile
CS-102
2020 Fall Semester
This lab will explore how to define a new C++ data type and also how to combine multiple C++
files into a single executable program.
The lab has the following requirements:
Please make sure all your function must have function header documentation, please
see PrintMeFirst function as example.
student.h file: Write a struct Student and save it in student.h file with the following:
struct Student must have the following data field:
name of data type string
idNum of data type int
creditHours of data type int
gpa of data type double
student.cpp file:
o write a function Student getData ( ) that will do the following:
define a local variable Student studentInfo
this function will ask user to enter "Student name" and save the user input
to the data member name of local variable studentInfo
this function will ask user to enter "Student ID" and save the user input to
the data member idNum of local variable studentInfo
this function will ask user to enter "Student name" and save the user input
to the data member creditHours of local variable studentInfo
this function will ask user to enter "Student name" and save the user input
to the data member gpa of local variable studentInfo
return studentInfo
o write a function void printStudentInfo(Student studentInfo) that will do the
following:
print out the all the data member of studentInfo
printMeFirst.h file: I have provided this file
printMeFirst.cpp file: I have provided this file
Makefile file: I have provide this file
studentMain.cpp file: This is a test driver program. I have provided this file, but you
need to change the parameters for printMeFirst function to your own name and the name
of this lab.
• After your compile all these programs, it will link into an executable program
studentMain
Run studentMain program, and it should have a similar output below:
Transcribed Image Text:Lab9: Structure & Makefile CS-102 2020 Fall Semester This lab will explore how to define a new C++ data type and also how to combine multiple C++ files into a single executable program. The lab has the following requirements: Please make sure all your function must have function header documentation, please see PrintMeFirst function as example. student.h file: Write a struct Student and save it in student.h file with the following: struct Student must have the following data field: name of data type string idNum of data type int creditHours of data type int gpa of data type double student.cpp file: o write a function Student getData ( ) that will do the following: define a local variable Student studentInfo this function will ask user to enter "Student name" and save the user input to the data member name of local variable studentInfo this function will ask user to enter "Student ID" and save the user input to the data member idNum of local variable studentInfo this function will ask user to enter "Student name" and save the user input to the data member creditHours of local variable studentInfo this function will ask user to enter "Student name" and save the user input to the data member gpa of local variable studentInfo return studentInfo o write a function void printStudentInfo(Student studentInfo) that will do the following: print out the all the data member of studentInfo printMeFirst.h file: I have provided this file printMeFirst.cpp file: I have provided this file Makefile file: I have provide this file studentMain.cpp file: This is a test driver program. I have provided this file, but you need to change the parameters for printMeFirst function to your own name and the name of this lab. • After your compile all these programs, it will link into an executable program studentMain Run studentMain program, and it should have a similar output below:
Expert Solution
steps

Step by step

Solved in 6 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY