Question: StudentData Write a program in C++ that uses a structure named StudentData to store the following information about a student: name year enrolled in school

StudentData

Write a program in C++ that uses a structure named StudentData to store the following information about a student:

name

year enrolled in school

The program should create two StudentData variables, store values in their members, and pass each one, in turn, to a function that displays the information about the student in a clearly formatted manner. The function should use const reference parameter that allows read-only access to reference parameter without wasting space, speed

Here is the information of two students (variables)

student1

student2

ID

12345678

11223456

name

John Smith

David White

major

Computer

Biology

year enrolled in school

2013

2015

GPA

3.8

4.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!