Question: In C Prog please Write a program that: Has a structure called student which has 3 member variables: int id: Id of student int quizzes[3]

 In C Prog please Write a program that: Has a structurecalled student which has 3 member variables: int id: Id of student

In C Prog please

Write a program that: Has a structure called student which has 3 member variables: int id: Id of student int quizzes[3] : Stores 3 quiz scores int exams [2] : Stores 2 exam scores Create a function called initalizeStudent() that creates (declares & initializes) a new struct of type struct Student for you and returns it back. The function takes no parameters. The member variable's values should all be user input. In main(), create an array of 2 students of type struct Student and call the initializeStudent() function to initialize each of them. Finally, create a function called printStudent() that takes one parameter (mentioned below). The function will print the student's ID, quiz scores, and exam scores. struct Student student: Struct containing the student info Example Enter student id: 1 Enter quiz 1 score: 10 Enter quiz 2 score: 10 Enter quiz 3 score: 9 Enter exam 1 score: 25 Enter exam 2 score: 24 Enter student id: 2 Enter quiz 1 score: 8 Enter quiz 2 score: 7 Enter quiz 3 score: 9 Enter exam 1 score: 30 Enter exam 2 score: 29 ID: 1 Quiz 1: 10 Quiz 2: 10 Quiz 3: 9 Exam 1: 25 Exam 2: 24 ID: 2 Quiz 1: 8 Quiz 2: 7 Quiz 3: 9 Exam 1: 30 Exam 2: 29

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!