(Solved) : Part Writing Sequential File Write C Program Caled Labsae Prompt User Store 5 Studont Reco Q30501117 . . .
![Part A: Writing into a Sequential File Write a C program caled LabSA.e to prompt the user and store 5 studont records into a Se caled stdInfo.txt. This stdinfo.txt fle wil also be used in the second part of this laboranory exercise The format of the fle would look ike this sample (excluding the first line): ID FIRSTNAME LASTNAME GPA YEAR 10 jack droll 64.5 2018 20 mina alam 92.3 2016 40 abed ae 54.0 2017 30 im smith 78.2 2018 The skeleton code is given below for your convenience. Use the 3 functions specified to pedorm the input, printing and saving the records to the file include <sedio,h struct student char firstnane [40) char lastnan [40] int id float GPA int year typedef struct stodent Stadent Input the student data interaotively from the keyboard void IrputsedRecord (Student Stdtist Display the contents of Student records from the 1ist void PrintstdList(const Student 8tdlist ave the student records fron the list to the newly ereated text file specified by Pilelame void SaveStdtist (const Stodene sedtist, const char Filesane) int main i Student Stdlist(5) PrintstdList(8tdList) GaveStdtist (sdtiat, atdinfo.txt Part B: Reading from a Sequential File Write a diferent C program called LabSB.chat reads the file stdInfo.txt (from Part A above) containing the 5 records created in part A into an aray called Studentlist of type Student, size 5) Then, write and use e wordCap(char ord) function to capitalizo all the letor of each of the frst and last names of the 5 student recoeds. Then save the new records back to the stdInfo.txt file, overwriting the old records The fie now should look like this sample (axdluding the first ine): ID FIRSTNAME LASTNAME GPA YEAR 1D JACK DRELL 64.5 2018 20 MINA ALAM 92 3 2016 40 ABED ALIE 54.0 2017 30 JIM SMITH 78.2 2018](https://media.cheggcdn.com/media%2F0c4%2F0c4b5f9e-1089-4db1-bb64-e2b1474833be%2Fphp4MpvWo.png)
Part A: Writing into a Sequential File Write a C program caled LabSA.e” to prompt the user and store 5 studont records into a Se caled “stdInfo.txt”. This “stdinfo.txt fle wil also be used in the second part of this laboranory exercise The format of the fle would look ike this sample (excluding the first line): ID FIRSTNAME LASTNAME GPA YEAR 10 jack droll 64.5 2018 20 mina alam 92.3 2016 40 abed ae 54.0 2017 30 im smith 78.2 2018 The skeleton code is given below for your convenience. Use the 3 functions specified to pedorm the input, printing and saving the records to the file include <sedio,h struct student char firstnane [40) char lastnan [40] int id float GPA int year typedef struct stodent Stadent Input the student data interaotively from the keyboard void IrputsedRecord (Student Stdtist Display the contents of Student records from the 1ist void PrintstdList(const Student 8tdlist ave the student records fron the list to the newly ereated text file specified by Pilelame void SaveStdtist (const Stodene sedtist, const char Filesane) int main i Student Stdlist(5) PrintstdList(8tdList) GaveStdtist (sdtiat, atdinfo.txt Part B: Reading from a Sequential File Write a diferent C program called LabSB.chat reads the file “stdInfo.txt (from Part A above) containing the 5 records created in part A into an aray called Studentlist of type Student, size 5) Then, write and use e wordCap(char ord) function to capitalizo all the letor of each of the frst and last names of the 5 student recoeds. Then save the new records back to the stdInfo.txt file, overwriting the old records The fie now should look like this sample (axdluding the first ine): ID FIRSTNAME LASTNAME GPA YEAR 1D JACK DRELL 64.5 2018 20 MINA ALAM 92 3 2016 40 ABED ALIE 54.0 2017 30 JIM SMITH 78.2 2018 Show transcribed image text
Expert Answer
Answer to Part Writing Sequential File Write C Program Caled Labsae Prompt User Store 5 Studont Reco Q30501117 . . .
OR