Question
Write a c++ program that - defines a class Student with the following private data members: - Name - Grade - defines a global function
Write a c++ program that
- defines a class Student with the following private data members:
- Name
- Grade
- defines a global function that prompts for student information and stores it in the array of Student
objects
- defines a global function that displays the information stored in a Student object using the following
format on a single line on the screen
- Name (left,25), Grade (right,5)
- in main()
- define an array of 3 Student objects
- call the global function to populate the 3 objects in the array with data entered by the user
- call the global function to display all the Student information
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