make me a script of explanation on how this function and the code itself.
make me a script of explanation on how this function and the code itself.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
on this photos, it is my source code program in Dev C ++. Just please make me a script of explanation on how this function and the code itself.
thankyou
![1 #include<iostream>
2 using namespace std;
3 struct senior citizen
4-{
5
6
7
8
9
10
11
12} s[3];
13 int main()
14- 0
15
16
17
18
19-
222497298mmmmm
20
21
23
25
26
30
31
32
33
34
35
36
37
38
int number;
char firstname [50];
char middlename [50];
char lastname [50];
string address;
int age;
string healthstatus;
39
40
cout << "Enter information of senior citizens: "
// storing information
for (int i = 0; i < 3; ++i)
{
s[i].number = 1+1;
cout << " Sno: <<
s[i].number<< endl;
cout << "Enter first name:
cin >>s[i].firstname;
cout << "Enter Middle Name:
cin >> s[i].middlename;
cout << "Enter Last name:
cins[i].lastname;
cout << "Enter address:
cin >>s[i].address;
cout<<"Enter age:";
cin>> s[i].age;
cout <<"Enter health status:
cin>> s[i].healthstatus;
<< endl;](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5ed463dd-b1c6-4017-8f25-2cce71bab3c0%2F43b45cc0-7196-4696-bb96-47e98ddabbed%2Fle10jj_processed.png&w=3840&q=75)
Transcribed Image Text:1 #include<iostream>
2 using namespace std;
3 struct senior citizen
4-{
5
6
7
8
9
10
11
12} s[3];
13 int main()
14- 0
15
16
17
18
19-
222497298mmmmm
20
21
23
25
26
30
31
32
33
34
35
36
37
38
int number;
char firstname [50];
char middlename [50];
char lastname [50];
string address;
int age;
string healthstatus;
39
40
cout << "Enter information of senior citizens: "
// storing information
for (int i = 0; i < 3; ++i)
{
s[i].number = 1+1;
cout << " Sno: <<
s[i].number<< endl;
cout << "Enter first name:
cin >>s[i].firstname;
cout << "Enter Middle Name:
cin >> s[i].middlename;
cout << "Enter Last name:
cins[i].lastname;
cout << "Enter address:
cin >>s[i].address;
cout<<"Enter age:";
cin>> s[i].age;
cout <<"Enter health status:
cin>> s[i].healthstatus;
<< endl;
![36
37
38
39
40
41
42
43
44
45
46
47-
48
49
50
51
52
53
54
55
56
57
58}
cout<<"Enter age:";
cin>> s[i].age;
}
cout<<"Enter health status:
cin>> s[i].healthstatus;
cout << endl;
}
cout << "Displaying Information: << endl;
// Displaying information
for (int i = 0; i < 3; ++i)
{
cout << "\nSno: << 1+1 << endl;
cout << "First Name:
cout << "Middle Name:
cout << "last Name:
cout << "Address:
cout << Age: <<s[i].age <<endl;
cout << " Health status: <<s[i].healthstatus <<endl;
return 0;
<<s[i].firstname << endl;
<< s[i].middlename << endl;
<<s[i].lastname << endl;
<<s[i].address << endl;
"1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5ed463dd-b1c6-4017-8f25-2cce71bab3c0%2F43b45cc0-7196-4696-bb96-47e98ddabbed%2Fobwuyq_processed.png&w=3840&q=75)
Transcribed Image Text:36
37
38
39
40
41
42
43
44
45
46
47-
48
49
50
51
52
53
54
55
56
57
58}
cout<<"Enter age:";
cin>> s[i].age;
}
cout<<"Enter health status:
cin>> s[i].healthstatus;
cout << endl;
}
cout << "Displaying Information: << endl;
// Displaying information
for (int i = 0; i < 3; ++i)
{
cout << "\nSno: << 1+1 << endl;
cout << "First Name:
cout << "Middle Name:
cout << "last Name:
cout << "Address:
cout << Age: <<s[i].age <<endl;
cout << " Health status: <<s[i].healthstatus <<endl;
return 0;
<<s[i].firstname << endl;
<< s[i].middlename << endl;
<<s[i].lastname << endl;
<<s[i].address << endl;
"1
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education