Question 01
Define a struct to store information about a student, including their name, registration number, and marks in three subjects. You should get the information from the user. Write a program to calculate the average of marks obtained by a student and display the details.
Question 02
Define a struct to represent a ‘Book‘, which includes the title, author, and price of the book. Write a program to store user-input information about 3 books in an array and display the details of the book with the highest price.
Question 03
Define a struct to represent a ‘Company‘, which contains the name of the company, the year of establishment, and an array of ‘Employee‘ structs. Each ‘Employee‘ struct should include the name and salary of the employee. Write a program to store details of a company with 2 employees and calculate the average salary of the employees.
Question 04
Define a struct to represent a ‘Team‘, which contains the team name, captain’s name, and an array of 5 ‘Player‘ structs. Each ‘Player‘ struct should include the player’s name and their score in a match. Write a program to input the details of a team and display the name of the player with the highest score.