Question: In C PLEASE!! Thank you! Write a program that: Has a structure called student which has 3 member variables: int id: Id of student int

In C PLEASE!! Thank you!

In C PLEASE!! Thank you! Write a program that: Has a structure

called student which has 3 member variables: int id: Id of student

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 l 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 l 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 Rubrics 2 point(s): Correct array of structs. 2 point(s): Correct implementation of struct Student. 2 point(s): Correct implementation of initializeStudent(). 2 point(s): Correct implementation of printstudent and correct output. 2 point(s): No syntax errors

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!