Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
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 errorsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started