A student database is to be maintained by the institute for placement. The student record should contain Name (First Name, Last Name), Branch, RollNo., Date of birth, Placement Company name, annual package, and date of joining. There are a total of 500 students. Possible values of the fields are - Name (First Name, Last Name) - {{Arun, kumar), (Venkat, reddy)...etc} Branch-{CSE, ECE, CIV, MIN, EEE, MEC, ...etc) RollNo.- (BT22CSE001, BT22ECE004, ...etc) Date of birth-(06-02-2000, 05-03-1999, ...etc) Company name-(Microsoft, dell, HP, Mahindra, ...etc) annual package (in Rs)- (1500000, 2000000, ...etc) date of joining - (20-07-2020, 30-08-2021, ...etc) Appropriately assume the data type of the variables. Write a C program to - a) Declare the typedef structure for student record.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Programming Language :- C
A student database is to be maintained by the institute for placement. The student record should
contain Name (First Name, Last Name), Branch, RollNo., Date of birth, Placement Company name,
annual package, and date of joining. There are a total of 500 students. Possible values of the fields
are -
Name (First Name, Last Name) - {{Arun, kumar), (Venkat, reddy) ...etc)
Branch (CSE, ECE, CIV, MIN, EEE, MEC, ...etc}
RollNo.(BT22CSE001, BT22ECE004, ...etc)
Date of birth - (06-02-2000, 05-03-1999, ...etc)
Company name - (Microsoft, dell, HP, Mahindra, ...etc)
annual package (in Rs)- (1500000, 2000000, ...etc}
date of joining - (20-07-2020, 30-08-2021, ...etc)
Appropriately assume the data type of the variables. Write a C program to -
a) Declare the typedef structure for student record.
b) Write a user-defined function to read the details of 500 students through user input.
c) Write a user-defined function that takes an array of the structure of student records as input
parameter and prints the records in ascending order according to the annual package. If the
annual package is the same, then break the tie by the alphabetical order (a to z) of the first name.
Transcribed Image Text:A student database is to be maintained by the institute for placement. The student record should contain Name (First Name, Last Name), Branch, RollNo., Date of birth, Placement Company name, annual package, and date of joining. There are a total of 500 students. Possible values of the fields are - Name (First Name, Last Name) - {{Arun, kumar), (Venkat, reddy) ...etc) Branch (CSE, ECE, CIV, MIN, EEE, MEC, ...etc} RollNo.(BT22CSE001, BT22ECE004, ...etc) Date of birth - (06-02-2000, 05-03-1999, ...etc) Company name - (Microsoft, dell, HP, Mahindra, ...etc) annual package (in Rs)- (1500000, 2000000, ...etc} date of joining - (20-07-2020, 30-08-2021, ...etc) Appropriately assume the data type of the variables. Write a C program to - a) Declare the typedef structure for student record. b) Write a user-defined function to read the details of 500 students through user input. c) Write a user-defined function that takes an array of the structure of student records as input parameter and prints the records in ascending order according to the annual package. If the annual package is the same, then break the tie by the alphabetical order (a to z) of the first name.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY