Question: no use of pointers Write a program in C following below instructions: Make a structure containing four members: 1. Level (BS for Bachelor degree level
Write a program in C following below instructions: Make a structure containing four members: 1. Level (BS for Bachelor degree level and MS for Master degree level), 2. Name, 3. Last Name, and 4. GPA. The MS student information will be initialized inside the program with these values: 1. MS, Peter Miner, 3.98 2. MS, Robert Downey, 3.23 3. MS, Scarlett Johansson, 3.58 4. MS, Elizabeth Olsen, 3.06 5. MS, Christopher Hemsworth, 3.74 Then the screen will prompt the user to enter the five BS student information like this: Enter the name of the BS student 1: Enter the Last name of the BS Student 1: Enter the GPA of the BS Student 1: Enter the name of the BS student 2: And so on... Remember that you will need to save the BS level as default for each one of the five BS students due to that you will not be requesting this level value from the user. All this BS information will be saved in the structure variable you defined for your program. Make sure to use an array type for each variable; one variable for MS level info and another for BS level info. You will have TWO functions: - One function that prints out to screen all this MS and BS information. - One function that calculates which of all these GPAs values is the best one (biggest value). You will be returning this best GPA value to main() and printing this out to screen from main() function as well. Do not forget to comment all your work. Write a program in C following below instructions: Make a structure containing four members: 1. Level (BS for Bachelor degree level and MS for Master degree level), 2. Name, 3. Last Name, and 4. GPA. The MS student information will be initialized inside the program with these values: 1. MS, Peter Miner, 3.98 2. MS, Robert Downey, 3.23 3. MS, Scarlett Johansson, 3.58 4. MS, Elizabeth Olsen, 3.06 5. MS, Christopher Hemsworth, 3.74 Then the screen will prompt the user to enter the five BS student information like this: Enter the name of the BS student 1: Enter the Last name of the BS Student 1: Enter the GPA of the BS Student 1: Enter the name of the BS student 2: And so on... Remember that you will need to save the BS level as default for each one of the five BS students due to that you will not be requesting this level value from the user. All this BS information will be saved in the structure variable you defined for your program. Make sure to use an array type for each variable; one variable for MS level info and another for BS level info. You will have TWO functions: - One function that prints out to screen all this MS and BS information. - One function that calculates which of all these GPAs values is the best one (biggest value). You will be returning this best GPA value to main() and printing this out to screen from main() function as well. Do not forget to comment all your work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
