Fill This Form To Receive Instant Help
Homework answers / question archive / Your program will pretty-print the data in the binary file input
Your program will pretty-print the data in the binary file input. bin. The file will begin with a uint32_t indicating the number of records the file contains. Every record contains an an amount of chars, giving the students' name', a float, giving the student's current GPA, and a uint32_t giving their age. The number of bytes that contain a student's name will always be 20 bytes long, the name itself might not be. The bytes that do not contain a part of the name will have the value of 0.
After the records are loaded into memory, they should be sorted alphabetically by name. There will not be duplicates. Your program should print the fields of the records in the format shown below.
if the GPA is 4.0 then the grade letter is an A. if the GPA is between 3.5 <= x < 4.0 are an "BA". if the GPA is between 3.0 <= x < 3.5 are an "13". if the GPA is between 25 <= x < 3.0 are an "Cr. if the GPA is between 20 <= x < 25 are an "C". if the GPA is between 1.5 <= x < 20 are an "Ir. if the GPA is between 1.0 <= x <1.5 are an "D". if the GPA is between 0.0 <= x <1.0 are an "E".