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
icon
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.
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education