Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

image text in transcribed

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:

image text in transcribed

// 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

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

More Books

Students also viewed these Databases questions

Question

can you cite

Answered: 1 week ago

Question

1. What are the marketing implications of this situation?

Answered: 1 week ago