Student Grade Mini-Database. Develop a program that will define and store a student record. The data will be entered by the user. Afterward, calculate and display the CPA of each student. You will need Template Code e Intl Code Ge How to Calculate GPA Let: Units,-Number of Units for Course i Grade,-Final Grade for Course i Ther GPA- Sample Input Results Sample Inpu John 10912345 degree: ECE JECE Physics 100 Geology 50 Jose 10854321 CPE Physics 80 5 770 Mathematics course 2 grade 70 70 course un 2 course 3 name Ge course 3 grade 50 course 3 grade 50 course 3 total un H 60 2 Geology 90 1 4 John 10912345 ECE Physic 100 70 12 Geology so Mathematics course 2 grade 60 100 o 60 2 Keology 90 o 2 John 10912345 ECE Fine Faith 100 h Expected Console Output Enter number of students to record 2 student name: John O number: 10912345 2e Mathematics course 2 grade 70 p course 1 name: Physics course 1 grade 100 course 1 total unit: 3 Geology 50 course 2 name: Mathematics h 0 student name: Jose Jose pose 1 CPE Physis 3 number: 10854321 degree: CPE depeche course 1 name: Physics course 1 grade 80 course 1 total units: 3 course 2 name: Mathematics 90 1 course 2 total unit: 2 counseren Mathematics course 2 grade: 60 course 3 name: Geology course 3 grade 90 course 3 total units John with ID number 10912345 has a GPA of 81.667 Jose with ID number 10854321 has a GPA of 75.000 Enter number of students to record 1 Enter number of students to record 2 student name: John Onumber: 10912345 degree: ECE course name: Physics 1 usega 100 course 1 total 3 Mathematics O number: 10912345 degree ECE course name: Physics 1 course 1 grade 100 course 1 total units: 3 course 2 name: Mathematics Mathematics course course 2 grade 70 course 2 total units: 2 20 course 3 name: Geology 2 course 2 total unit course 3 name G course 3 grade: 50 course 3 total units: 1 student name: Jose 10 number: 10854321 degree CPE mondon une 1 name: P course 1 grade: 80 course total units:3 1 course 2 name: Mathematics 50 course 3 grade 50 course 3 total units! student name student name: Jose 10 number: 10854321 Jose 10854321 degree CPE CPE course 1 name Physics Physics course 1 grade course 1 total unit 3 course 2 name Mathematics course 2 total units2 course 3 name Geology course 3 grade 90 course 3 total units 1 John with ID number 10912345 has a GPA of 81.667 ose with ID number 10854321 has a GPA of 75.000 Enter number of students to record Enter number of students to record 2 Mathematics course 2 grade 60 60 2 Geology course 3 grade: 90 course 3 total units John with ID number 10912345 has a GPA of 81.667 Jose with ID number 10854321 has a GPA of 75.000 course 2 total units: 2 course 3 name Geology Structure Guideline This subsection indicates the constraints on how you should design your data structures. Structure #1: Course Name Type Description name charStores the name of the course. Max Length of 80 characters unitnt Stores the no. of units on the course. grade float Stores the grade of a student on the course. Structure #2: Student Name Type Ga dint Description Stores the ID number of the student name chart801 Stores the name of the student. Max Length of 80 characters degree chart Stores the degree program of the student course Course TOTAL COURSEUses the Course Data Structure to store course content CPA nost Stores the grade of a student on the course recor Testing Guideline: Make sure to use the TOTAL COURSE MACRO from your code. Please use it to define the number of courses per student Make sure that the user can enter any value of value of N rom 0 to 20.000 Hint: For you to get dynamically allocate the number of arrays of type Student, you can use the malloc function you've seen from your homework as shown below record nello staf where N is the number of students entered by the user
Student Grade Mini-Database. Develop a program that will define and store a student record. The data will be entered by the user. Afterward, calculate and display the CPA of each student. You will need Template Code e Intl Code Ge How to Calculate GPA Let: Units,-Number of Units for Course i Grade,-Final Grade for Course i Ther GPA- Sample Input Results Sample Inpu John 10912345 degree: ECE JECE Physics 100 Geology 50 Jose 10854321 CPE Physics 80 5 770 Mathematics course 2 grade 70 70 course un 2 course 3 name Ge course 3 grade 50 course 3 grade 50 course 3 total un H 60 2 Geology 90 1 4 John 10912345 ECE Physic 100 70 12 Geology so Mathematics course 2 grade 60 100 o 60 2 Keology 90 o 2 John 10912345 ECE Fine Faith 100 h Expected Console Output Enter number of students to record 2 student name: John O number: 10912345 2e Mathematics course 2 grade 70 p course 1 name: Physics course 1 grade 100 course 1 total unit: 3 Geology 50 course 2 name: Mathematics h 0 student name: Jose Jose pose 1 CPE Physis 3 number: 10854321 degree: CPE depeche course 1 name: Physics course 1 grade 80 course 1 total units: 3 course 2 name: Mathematics 90 1 course 2 total unit: 2 counseren Mathematics course 2 grade: 60 course 3 name: Geology course 3 grade 90 course 3 total units John with ID number 10912345 has a GPA of 81.667 Jose with ID number 10854321 has a GPA of 75.000 Enter number of students to record 1 Enter number of students to record 2 student name: John Onumber: 10912345 degree: ECE course name: Physics 1 usega 100 course 1 total 3 Mathematics O number: 10912345 degree ECE course name: Physics 1 course 1 grade 100 course 1 total units: 3 course 2 name: Mathematics Mathematics course course 2 grade 70 course 2 total units: 2 20 course 3 name: Geology 2 course 2 total unit course 3 name G course 3 grade: 50 course 3 total units: 1 student name: Jose 10 number: 10854321 degree CPE mondon une 1 name: P course 1 grade: 80 course total units:3 1 course 2 name: Mathematics 50 course 3 grade 50 course 3 total units! student name student name: Jose 10 number: 10854321 Jose 10854321 degree CPE CPE course 1 name Physics Physics course 1 grade course 1 total unit 3 course 2 name Mathematics course 2 total units2 course 3 name Geology course 3 grade 90 course 3 total units 1 John with ID number 10912345 has a GPA of 81.667 ose with ID number 10854321 has a GPA of 75.000 Enter number of students to record Enter number of students to record 2 Mathematics course 2 grade 60 60 2 Geology course 3 grade: 90 course 3 total units John with ID number 10912345 has a GPA of 81.667 Jose with ID number 10854321 has a GPA of 75.000 course 2 total units: 2 course 3 name Geology Structure Guideline This subsection indicates the constraints on how you should design your data structures. Structure #1: Course Name Type Description name charStores the name of the course. Max Length of 80 characters unitnt Stores the no. of units on the course. grade float Stores the grade of a student on the course. Structure #2: Student Name Type Ga dint Description Stores the ID number of the student name chart801 Stores the name of the student. Max Length of 80 characters degree chart Stores the degree program of the student course Course TOTAL COURSEUses the Course Data Structure to store course content CPA nost Stores the grade of a student on the course recor Testing Guideline: Make sure to use the TOTAL COURSE MACRO from your code. Please use it to define the number of courses per student Make sure that the user can enter any value of value of N rom 0 to 20.000 Hint: For you to get dynamically allocate the number of arrays of type Student, you can use the malloc function you've seen from your homework as shown below record nello staf where N is the number of students entered by the user
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Template Code:
#include
#include
#define TOTAL_COURSE 3
int main(void)
{
printf("Hello World!\n"); // You can delete this line.
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 3 steps with 2 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY