Question: Write a C program cudb that works as a database for students, including their GPA, using the following template: You have to use binary numbers

Write a C program cudb that works as a database for students, including their GPA, using the following template:

Write a C program cudb that works as a database for students,

You have to use binary numbers for compact storage of information in the field 'data' in the structure 'student_t'. Consider the program below:

including their GPA, using the following template: You have to use binary

The field 'data' in the structure 'student_t' should store the information of the students as:

Bit 04: Start year (Starting with 2009, so 1 means 2010). Bit 5: Start semester (0 for autumn and 1 for spring). Bit 613: GPA

Bit 14 and higher should not be used in this excercise and can be set to zero.

There should be room for 1000 students in the database. The Output should be:

numbers for compact storage of information in the field 'data' in the

// cudb.c #include #de fine NAMESIZE 5 typedef struct ( - char name [NAME_SIZE] int data; ) student_t; int main) puts ("Welcome to CUDB - The C University Data Base") Add functions and other code as needed. The structure student_t cannot be changed return 0; // cudb.c #include #de fine NAMESIZE 5 typedef struct ( - char name [NAME_SIZE] int data; ) student_t; int main) puts ("Welcome to CUDB - The C University Data Base") Add functions and other code as needed. The structure student_t cannot be changed return 0

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!