I need help how to fix my Code? I'm using C Language! Codio Here's the 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

I need help how to fix my Code? I'm using C Language! Codio

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

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Unary Predicate
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
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