Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please assist This lab will exercise your understanding of some of the concepts covered in Chapter 12: dynamic data, arrays, pointer addresses The 1. Create

please assist image text in transcribed
image text in transcribed
This lab will exercise your understanding of some of the concepts covered in Chapter 12: dynamic data, arrays, pointer addresses The 1. Create a structure called students. structure should contain: firstname, lastname, gpa. 2. Create a pointer to the student structure and dynamically create an array of the student structure, enough for 4 students. Hint: Store the address of the beginning of the array 3. Create a file that contains four rows of data with last name, first name and gpa value or use the inFile.txt file attached. 4. Using pointer notation only (not array notation (), read the data from the file and store the data into the structure. After all the data is read and stored, using pointer notation only, output to the console (cout) each student's first name, last name and gpa. Use information messages and ensure the data is displayed properly. 5. Before exiting, delete the dynamically allocated structure array. Complete as much as you can before you leave ensuring what you've completed compiles. These labs are entirely for your practice. The program may be named any name of our choice, must have a .cpp extention; variables may be any name of your choice. Harper Smith 4.0 Tsia Smith 3.9 Holy Cow 2.8 Gee Whiz 3.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago