Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Based on the data structure defined in Q1. (a), write a C program that has the following functions: a. Write a function called createStudent that

Based on the data structure defined in Q1.

(a), write a C program that has the following functions:

a. Write a function called createStudent that takes the student identification number, credits completed and GPA, and returns a student record.

b. Assume that a student can graduate if their total credits is 100. Write a function called checkGraduation that takes a student record and returns TRUE if the student can graduate and FALSE if the student cannot graduate.

c. Write a function called fillStudents that takes an array of five students and gets the student details from the user and fills that array with the values.

d. Write a function called resetCredits that takes a student record and resets his (her) total credits to zero.

e. Write a function called avgGPA that takes an array of students, and returns the average GPA for that array of students.

f. Write a function called avgGPACredits that takes an array of students, and returns the average GPA and average total credits for that array of students.

with stdio.h and stdlib.h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago