Write a C program that will accept 5 records of students such as Student ID, Name, Course and Year Level. The program will apply the concepts of multi-dimensional array in storing the records. The program will also display the summary of records. NOTE: Your source code must display any of the given sample output below. It means your source code should be flexible enough to meet any of the given sample output. Your source code output must be identical to any of the given sample output. It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output. OUTPUT: Record 1 Student No.: 202100001 Student Name: Naruto Course: CE Year Level: 1 Record 2 Student No.: 202100002 Student Name: Gokou Course: CPE Year Level: 2 Record 3 Student No.: 202100003 Student Name: Luffy Course: COE Year Level: 1 Record 4 Student No.: 202100004 Student Name: Pikachu Course: CS Year Level: 3 Record 5 Student No.: 202100005 Student Name: Recca Course: ME Year Level: 4 RECORD SUMMARY Student No. Name Course Year Level 202100001 Naruto CE 1 202100002 Gokou CPE 2 202100003 Luffy COE 1 202100004 Pikachu CS 3 202100005 Recca ME 4
Write a C program that will accept 5 records of students such as Student ID, Name, Course and Year Level. The program will apply the concepts of multi-dimensional array in storing the records. The program will also display the summary of records. NOTE: Your source code must display any of the given sample output below. It means your source code should be flexible enough to meet any of the given sample output. Your source code output must be identical to any of the given sample output. It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output. OUTPUT: Record 1 Student No.: 202100001 Student Name: Naruto Course: CE Year Level: 1 Record 2 Student No.: 202100002 Student Name: Gokou Course: CPE Year Level: 2 Record 3 Student No.: 202100003 Student Name: Luffy Course: COE Year Level: 1 Record 4 Student No.: 202100004 Student Name: Pikachu Course: CS Year Level: 3 Record 5 Student No.: 202100005 Student Name: Recca Course: ME Year Level: 4 RECORD SUMMARY Student No. Name Course Year Level 202100001 Naruto CE 1 202100002 Gokou CPE 2 202100003 Luffy COE 1 202100004 Pikachu CS 3 202100005 Recca ME 4
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
Please help how my code?
Write a C program that will accept 5 records of students such as Student ID, Name, Course and Year Level. The program will apply the concepts of multi-dimensional array in storing the records. The program will also display the summary of records.
NOTE:
Your source code must display any of the given sample output below.
It means your source code should be flexible enough to meet any of the given sample output.
Your source code output must be identical to any of the given sample output.
It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output.
Your source code must display any of the given sample output below.
It means your source code should be flexible enough to meet any of the given sample output.
Your source code output must be identical to any of the given sample output.
It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output.
OUTPUT: |
---|
Record 1 |
Student No.: 202100001 |
Student Name: Naruto |
Course: CE |
Year Level: 1 |
Record 2 |
Student No.: 202100002 |
Student Name: Gokou |
Course: CPE |
Year Level: 2 |
Record 3 |
Student No.: 202100003 |
Student Name: Luffy |
Course: COE |
Year Level: 1 |
Record 4 |
Student No.: 202100004 |
Student Name: Pikachu |
Course: CS |
Year Level: 3 |
Record 5 |
Student No.: 202100005 |
Student Name: Recca |
Course: ME |
Year Level: 4 |
RECORD SUMMARY |
---|
Student No. | Name | Course | Year Level |
---|---|---|---|
202100001 | Naruto | CE | 1 |
202100002 | Gokou | CPE | 2 |
202100003 | Luffy | COE | 1 |
202100004 | Pikachu | CS | 3 |
202100005 | Recca | ME | 4 |
![#include<stdio.h>
Record 1
2.
Student No: Student name: Course: Year Level: Record 2
3
Student No: Student name: Course: Year Level: Record 3
4
int main()
Student No: Student name: Course: Year Level: Record 4
6
Student No: Student name: Course: Year Level: Record 5
int n=5;
int studentid[5] [30];
char name [5][30];
char course [5] [10];
int year[5];
7
Student No: Student name: Course: Year Level:
Record Summary
8
Student No.
Name
Course
Year Leve1
202100001
Naruto
CE
1
10
11
202100002
Gokou
CPE
12
int i;
Luffy
202100003
COE
1
13
202100004
Pikachu
CS
3
for (i=0;i<n;i++)
14
202100005
Recca
МЕ
{
printf("Record %d\n",i+1);
printf("Student No: ");
scanf ("%s",&studentid [i]);
printf("Student name: ");
scanf ("%s",&name [1]);
printf("Course: ");
scanf ("%s",&course[i]);
printf("Year Level: ");
scanf("%d", &year [i]);
15 -
16
Expected:
17
Record 1
18
Student No.:
19
20
Name:
21
Course:
22
Year Level:
23
Record 2
24
25
}
Student No.:
26
Name:
27
Course:
printf("\t\tRecord Summary\n");
printf("Student No.\tName\tCourse\tYear Level\n");
for (i=0;i<n;i++)
28
29
Year Level:
30
Record 3
31 -
{
Student No. :
32
printf("%5s\t%5s\t%5s\t%5d\n",studentid [i], name [i],course[i],year[i]);
Name:
33
}
34
Course:
35
return 0;
Year Level:
36
Record 4
Student No.:
Name:
Course:
Year Level:
Record 5
Student No.:
Name:
Course:
Year Level:
RECORD SUMMARY
Student No.
Name
Course
Year Level
202100001
Naruto
CE
202100002
Gokou
СРЕ
2
202100003
Luffy
COE
202100004
Pikachu CS
3
0% (1:0)
202100005
Recca
ME](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3d2aa45e-5239-4e8a-a9b8-9b4b92dbceaa%2F0a2b646d-a133-43c8-ae80-9be7de80ddef%2F15iqnju_processed.png&w=3840&q=75)
Transcribed Image Text:#include<stdio.h>
Record 1
2.
Student No: Student name: Course: Year Level: Record 2
3
Student No: Student name: Course: Year Level: Record 3
4
int main()
Student No: Student name: Course: Year Level: Record 4
6
Student No: Student name: Course: Year Level: Record 5
int n=5;
int studentid[5] [30];
char name [5][30];
char course [5] [10];
int year[5];
7
Student No: Student name: Course: Year Level:
Record Summary
8
Student No.
Name
Course
Year Leve1
202100001
Naruto
CE
1
10
11
202100002
Gokou
CPE
12
int i;
Luffy
202100003
COE
1
13
202100004
Pikachu
CS
3
for (i=0;i<n;i++)
14
202100005
Recca
МЕ
{
printf("Record %d\n",i+1);
printf("Student No: ");
scanf ("%s",&studentid [i]);
printf("Student name: ");
scanf ("%s",&name [1]);
printf("Course: ");
scanf ("%s",&course[i]);
printf("Year Level: ");
scanf("%d", &year [i]);
15 -
16
Expected:
17
Record 1
18
Student No.:
19
20
Name:
21
Course:
22
Year Level:
23
Record 2
24
25
}
Student No.:
26
Name:
27
Course:
printf("\t\tRecord Summary\n");
printf("Student No.\tName\tCourse\tYear Level\n");
for (i=0;i<n;i++)
28
29
Year Level:
30
Record 3
31 -
{
Student No. :
32
printf("%5s\t%5s\t%5s\t%5d\n",studentid [i], name [i],course[i],year[i]);
Name:
33
}
34
Course:
35
return 0;
Year Level:
36
Record 4
Student No.:
Name:
Course:
Year Level:
Record 5
Student No.:
Name:
Course:
Year Level:
RECORD SUMMARY
Student No.
Name
Course
Year Level
202100001
Naruto
CE
202100002
Gokou
СРЕ
2
202100003
Luffy
COE
202100004
Pikachu CS
3
0% (1:0)
202100005
Recca
ME
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education