PLEASE HELP HOW TO FIX THIS??  This is the OUTPUT!  rite 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 MY CODE #include int main() { int n=5; int studentid[5][30]; char name[5][30]; char course[5][10]; int year[5]; int i; for(i=0;i

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 TO FIX THIS?? 

This is the OUTPUT! 

rite 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

MY CODE

#include<stdio.h>


int main()
{

int n=5;
int studentid[5][30];
char name[5][30];
char course[5][10];
int year[5];
int i;

for(i=0;i<n;i++)
{
printf("\n Record %d",i+1);
printf("\nStudent No:");
scanf("%s",&studentid[i]);
printf("\nName:");
scanf("%s",&name[i]);
printf("\nCourse:");
scanf("%s",&course[i]);
printf("\nYear Level:");
scanf("%d",&year[i]);
}


printf("\nRecord Summary:");
printf("Student No.\tName\tCourse\tYear Level\n");
for(i=0;i<n;i++)
{
printf("%5s\t%5s\t%5s\t%5d\n",studentid[i],name[i],course[i],year[i]);
}

return 0;

}

#include<stdio.h>
2
LAST RUN on 3/22/2021, 10:23:08 PM
Check 1 failed
int main()
Output:
6
int n=5;
Record 1
int studentid[5] [30];
char name [5][30];
char course[5] [10];
int year [5];
int i;
8
Student No:
9
Name:
10
11
Course:
12
Year Level:
13
Record 2
for (i=0;i<n;i++)
14
Student No:
{
printf("\n Record %d",i+1);
printf("\nStudent No:");
scanf ("%s",&studentid[i]);
printf ("\nName:");
scanf ("%s", &name [i]);
printf("\nCourse:");
scanf ("%s", &course[1]);
printf("\nYear Level:");
scanf("%d", &year [i]);
}
15 -
16
Name:
17
Course:
18
Year Level:
19
20
Record 3
21
Student No:
22
Name:
23
Course:
24
25
Year Level:
26
Record 4
27
Student No:
printf("\nRecord Summary:");
printf("Student No.\tName\tCourse\tYear Level\n");
for (i=0;i<n;i++)
28
29
Name:
30
Course:
31 -
{
Year Level:
printf("%5s\t%5s\t%5s\t%5d\n",studentid[i],name [i],course[i],year[i]);
32
Record 5
33
}
34
Student No:
35
return 0;
Name:
36
Course:
37
}
Year Level:
Record Summary:Student No.
Name
Course Year Level
202100001
Naruto
CE
1
202100002
Gokou
CPE
Luffy
COE
202100003
202100004
Pikachu
CS
3
202100005
Recca
МЕ
Expected:
Record 1
Student No. :
Name:
Course:
Year Level:
Record 2
Student No.:
73% (27:2)
Name:
Transcribed Image Text:#include<stdio.h> 2 LAST RUN on 3/22/2021, 10:23:08 PM Check 1 failed int main() Output: 6 int n=5; Record 1 int studentid[5] [30]; char name [5][30]; char course[5] [10]; int year [5]; int i; 8 Student No: 9 Name: 10 11 Course: 12 Year Level: 13 Record 2 for (i=0;i<n;i++) 14 Student No: { printf("\n Record %d",i+1); printf("\nStudent No:"); scanf ("%s",&studentid[i]); printf ("\nName:"); scanf ("%s", &name [i]); printf("\nCourse:"); scanf ("%s", &course[1]); printf("\nYear Level:"); scanf("%d", &year [i]); } 15 - 16 Name: 17 Course: 18 Year Level: 19 20 Record 3 21 Student No: 22 Name: 23 Course: 24 25 Year Level: 26 Record 4 27 Student No: printf("\nRecord Summary:"); printf("Student No.\tName\tCourse\tYear Level\n"); for (i=0;i<n;i++) 28 29 Name: 30 Course: 31 - { Year Level: printf("%5s\t%5s\t%5s\t%5d\n",studentid[i],name [i],course[i],year[i]); 32 Record 5 33 } 34 Student No: 35 return 0; Name: 36 Course: 37 } Year Level: Record Summary:Student No. Name Course Year Level 202100001 Naruto CE 1 202100002 Gokou CPE Luffy COE 202100003 202100004 Pikachu CS 3 202100005 Recca МЕ Expected: Record 1 Student No. : Name: Course: Year Level: Record 2 Student No.: 73% (27:2) Name:
#include<stdio.h>
Name:
Course:
3
Year Level:
4
int main()
{
Record Summary:Student No.
Name
Course Year Level
6
202100001
Naruto
CE
1
7
int n=5;
202100002
Gokou
СРЕ
int studentid[5] [30];
char name [5][30];
char course [5][10];
int year[5];
8
202100003
Luffy
COE
1
10
202100004
Pikachu
CS
3
11
202100005
Recca
МЕ
12
int i;
Expected:
13
for (i=0;i<n;i++)
14
Record 1
{
printf("\n Record %d",i+1);
printf("\nStudent No:");
scanf ("%s",&studentid[i]);
printf("\nName:");
scanf ("%s", &name [i]);
printf ("\nCourse:");
scanf ("%s", &course[1]);
printf("\nYear Level:");
scanf("%d", &year [i]);
}
15 -
Student No.:
16
Name:
17
Course:
18
19
Year Level:
20
Record 2
21
Student No.:
22
Name:
23
24
Course:
25
Year Level:
26
Record 3
27
Student No.:
printf("\nRecord Summary:");
printf("Student No.\tName\tCourse\tYear Level\n");
for (i=0;i<n;i++)
28
29
Name:
30
Course:
31 -
{
printf("%5s\t%5s\t%5s\t%5d\n",studentid [i], name [i],course[i],year[i]);
Year Level:
32
33
}
Record 4
34
Student No.:
35
return 0;
Name:
36
37
Course:
Year Level:
Record 5
Student No.:
Name:
Course:
Year Level:
RECORD SUMMARY
Student No.
Name
Course
Year Level
202100001
Naruto
CE
1
202100002
Gokou
СРЕ
202100003
Luffy
COE
202100004
Pikachu CS
3
202100005
Recca
МЕ
4
Show diff
73% (27:2)
Transcribed Image Text:#include<stdio.h> Name: Course: 3 Year Level: 4 int main() { Record Summary:Student No. Name Course Year Level 6 202100001 Naruto CE 1 7 int n=5; 202100002 Gokou СРЕ int studentid[5] [30]; char name [5][30]; char course [5][10]; int year[5]; 8 202100003 Luffy COE 1 10 202100004 Pikachu CS 3 11 202100005 Recca МЕ 12 int i; Expected: 13 for (i=0;i<n;i++) 14 Record 1 { printf("\n Record %d",i+1); printf("\nStudent No:"); scanf ("%s",&studentid[i]); printf("\nName:"); scanf ("%s", &name [i]); printf ("\nCourse:"); scanf ("%s", &course[1]); printf("\nYear Level:"); scanf("%d", &year [i]); } 15 - Student No.: 16 Name: 17 Course: 18 19 Year Level: 20 Record 2 21 Student No.: 22 Name: 23 24 Course: 25 Year Level: 26 Record 3 27 Student No.: printf("\nRecord Summary:"); printf("Student No.\tName\tCourse\tYear Level\n"); for (i=0;i<n;i++) 28 29 Name: 30 Course: 31 - { printf("%5s\t%5s\t%5s\t%5d\n",studentid [i], name [i],course[i],year[i]); Year Level: 32 33 } Record 4 34 Student No.: 35 return 0; Name: 36 37 Course: Year Level: Record 5 Student No.: Name: Course: Year Level: RECORD SUMMARY Student No. Name Course Year Level 202100001 Naruto CE 1 202100002 Gokou СРЕ 202100003 Luffy COE 202100004 Pikachu CS 3 202100005 Recca МЕ 4 Show diff 73% (27:2)
Expert Solution
steps

Step by step

Solved in 2 steps with 2 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