Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2: Create an array of classes called Student that holds data for a student. The class should hold the following data: . Name of
Problem 2: Create an array of classes called "Student" that holds data for a student. The class should hold the following data: . Name of each student Age of each student . Address of each student The class should have the following functions setdata (sets the all the data for the class) displaydata (prints out all the data for the class) Write a complete c++ program that creates an array of instances of the class "Student". The program should ask the user to enter how many students to create, then ask and store the information for each student in the array of classes. Then the program should printout the data for each student. Use the new" operator to dynamically allocate memory for the array of classes and don't forget to free up the memory
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started