Define a structure datatype for the student use character


Question :

A student has a first name (fname), a last name (lname), an identification number (id), a gender (male/female), a course name (cname) and the number of lectures (lcount) attended by the student.

a. Define gender as an enum

b. Define a structure datatype for the student. (Use character array of 30 characters for the members fname, lname , cname and enum for gender)

c. From the provided input file (students.txt) read the number of students, create an array of students to hold all information and fill it with the data in the file (one student per line).

d. Print all students to the user.

e. Print all female students to the user.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Define a structure datatype for the student use character
Reference No:- TGS02931489

Expected delivery within 24 Hours