Write a C++ program that interacts with the user to read data for N students, stores them in an array and
then prints them out. You need to create a Student class that can hold the name, id, and date of birth of a
student. The program will essentially be similar to the BankAccount class demo that I will show in
class today. However, for each student you need to compute his/her age given the date of birth
information.
Sample Execution
Enter the number of students to process
2
Enter the name of student #1
Abul
Enter the ID of student #1
2013000000901
Enter the date of birth of student #1 (dd mm yyyy)
05 01 1995
Enter the name of student #2
Babul
Enter the ID of student #2
2013000000912
Enter the date of birth of student #2 (dd mm yyyy)
12 05 1994
The database recorded information about 2 students
Student #1
Name: Abul
ID: 2013000000901
Age: 18 years, 1 months, and 2 days
Student #2
Name: Babul
ID: 2013000000912
Age: 18 years, 8 months, and 25 days
1
Expert's answer
2013-02-15T05:22:54-0500
# include <iostream> # include <string > using namespace std; const int Cday=14,Cmonth=2,Cyear=2013;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment