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
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
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.
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;
}
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 with 2 images
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