Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SOLVE IN C. EXERCISE: 1. Create a struct called Student (see below) and read the records of two students using it. Then print the name
SOLVE IN C.
EXERCISE: 1. Create a struct called Student (see below) and read the records of two students using it. Then print the name and id of the student who has higher CGPA than the other. struct Student{ char name [50]; int id; float CGPA;| }; 2. Create a struct called Birth Certificate (see below) and read the info of two persons using it. Then print the name of the person who is older than the other. Also print his/her parents' names. struct Birthcertificate { int day, month, year; //to represent birthdate char name [100], fatherName [100], motherName [100]; }; 3. Create a struct called Employee with the following members: a) Name b) Date of Birth (D.O.B., in short) c) Starting Date d) Salary Create an array of 4 employee variables; then read user input to fill up this array. Then display the info of the employee who gets the highest salary. Sample input/output: Name: Bob Marley D.O.B: 1/4/1993 Starting date: 12/6/2016 Salary: 20000 EXERCISE: 1. Create a struct called Student (see below) and read the records of two students using it. Then print the name and id of the student who has higher CGPA than the other. struct Student{ char name [50]; int id; float CGPA;| }; 2. Create a struct called Birth Certificate (see below) and read the info of two persons using it. Then print the name of the person who is older than the other. Also print his/her parents' names. struct Birthcertificate { int day, month, year; //to represent birthdate char name [100], fatherName [100], motherName [100]; }; 3. Create a struct called Employee with the following members: a) Name b) Date of Birth (D.O.B., in short) c) Starting Date d) Salary Create an array of 4 employee variables; then read user input to fill up this array. Then display the info of the employee who gets the highest salary. Sample input/output: Name: Bob Marley D.O.B: 1/4/1993 Starting date: 12/6/2016 Salary: 20000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started