Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I JUST NEED HELP WITH DISPLAY PART! please help! thanks in advance // This function saves the array of structures to file. It is already

I JUST NEED HELP WITH DISPLAY PART!

please help!

thanks in advance

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

// This function saves the array of structures to file. It is already implemented for you. // You should understand how this code works so that you know how to use it for future assignments. void save(char* fileName) { FILE* file; int i; file = fopen(fileName, "wb"); fwrite(&count, sizeof(count), 1, file); for (i = 0; i  

image text in transcribed

#include #include #include #include #pragma warning(disable: 4996) // for Visual Studio Only typedef enum male , female gender /I enumeration type gender struct student f char name [30]; gender genderValue; char class_standing[10]; int roll number; float tuition_fee; 3: int count = 0; // the number of students currently stored in the list (initialized at 0) struct student list[30]; // initialize list of students // forward declaration of functions void flush); void branching(char); void registration(char); int add(char*, char*, char, int, float, struct student*); // 20 points char search (char*, int, struct student*) // 10 points void display;// 10 points void save (char fileName); void load (char* fileName); 1/ 10 points int main() load( "Sudent_List.txt"); // load 1ist of students from file (if it exists) char ch 'i' ; printf("Please enter your selection: In"); printf("ta: add a new student to the listln"); printf("ts:search for a student on the listln") printf("td: display list of students ") printf("tq: quit "); ch = tolower(getchar()); flush) branching(ch); (ch } while != 'q'); save( "Student List.txt"); // save list of students to file (overwrite if it exists) return 0

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

Progress Monitoring Data Tracking Organizer

Authors: Teacher'S Aid Publications

1st Edition

B0B7QCNRJ1

Students also viewed these Databases questions