Answered step by step
Verified Expert Solution
Question
1 Approved Answer
studentNames.txt look like this: Jerry Seinfeld ZZT090 Jack Black ABC123 Eddy Murphy AAB000 Bruce Wayne QED111 Meryl Streep DDC123 Ellen DeGeneres DOZ003 testScores.txt look like
studentNames.txt look like this:
Jerry Seinfeld ZZT090 Jack Black ABC123 Eddy Murphy AAB000 Bruce Wayne QED111 Meryl Streep DDC123 Ellen DeGeneres DOZ003
testScores.txt look like this:
TFTFTFTTTTFTFTFFTTFT
ABC123 TFTFTFTTTTFTFTFFTTF_
AAB000 TFTTTFTTTT_TFTFFT_FT
ZZT090 TTTFFFTTTFFFTTTFFF__
DOZ003 TFTFTFTTTTFFFFFFFFFF
DDC123 _FTFTFTTTTFTFTFFTTFT
program need to use struct and student's name need to sort in alphabet order
Lab #9 (extra credit) MATH ANYONE records CS 1A 30 pts | Lab #9: MATH ANYONE Submit the following in Canvas: ScreenlO.txt created in Eclipse) printHeader.cpp, printHeader.h source files) records Extra Credit 1-Output (your console output cut-and-pasted into a text file called 2 Source Code (your main.cpp, functions.cpp, functions.h, You must demonstrate your program to the instructor in the lab to get any credit for Lab 9. The instructor will run your program with different input files on a flash drive. Correct output with his/her input files will account for 20 points (all or nothing) and documentation & use of structs the remaining 10 points. You cannot get credit for documentation & use of structs unless your output is demonstrated to be correct (i.e. if your output is not correct with the instructor's files, then you will not get any points for this part of the lab). You cannot get credit for this part of the lab unless you use structs(e.g. if your output is correct and your source well documented but you don't use structs, then you will not get any points for this part of the lab). Copy then modify Lab 8 Part (b) to use structs instead of parallel arrays and to read arn additional file named studentNames.txt consisting of lines with first name, last name, and student id. The struct must contain the student's first name, last name, student id, test answers, test score, and test grade. Modify the output table format from Lab 8 Part (b) so that two additional columns are added before the Student ID to list the student's last name under the heading Last Name then first name under the heading First Name, and sort the entire table to be listed alphabetically by last name. Screen INPUT/OUTPUT-should be formatted as follows (example using the provided testScores.txt and studentNames.txt files)-(Class heading should be also displayed) First Name Jack Ellen Eddy Jerry Meryl StudentID Answers ABC123 DOZ003 AAB000 Z2T090 DDC123 % Score Grade Last Name Black DeGeneres Murphy Seinfeld Streep 95.0 62.5 82.5 30.0 95.0 Min score is 30.08 for Student ID ZZTO90 Max score is 95.0% for Student ID ABC123 Average is 73.0% Lab #9 (extra credit) MATH ANYONE records CS 1A 30 pts | Lab #9: MATH ANYONE Submit the following in Canvas: ScreenlO.txt created in Eclipse) printHeader.cpp, printHeader.h source files) records Extra Credit 1-Output (your console output cut-and-pasted into a text file called 2 Source Code (your main.cpp, functions.cpp, functions.h, You must demonstrate your program to the instructor in the lab to get any credit for Lab 9. The instructor will run your program with different input files on a flash drive. Correct output with his/her input files will account for 20 points (all or nothing) and documentation & use of structs the remaining 10 points. You cannot get credit for documentation & use of structs unless your output is demonstrated to be correct (i.e. if your output is not correct with the instructor's files, then you will not get any points for this part of the lab). You cannot get credit for this part of the lab unless you use structs(e.g. if your output is correct and your source well documented but you don't use structs, then you will not get any points for this part of the lab). Copy then modify Lab 8 Part (b) to use structs instead of parallel arrays and to read arn additional file named studentNames.txt consisting of lines with first name, last name, and student id. The struct must contain the student's first name, last name, student id, test answers, test score, and test grade. Modify the output table format from Lab 8 Part (b) so that two additional columns are added before the Student ID to list the student's last name under the heading Last Name then first name under the heading First Name, and sort the entire table to be listed alphabetically by last name. Screen INPUT/OUTPUT-should be formatted as follows (example using the provided testScores.txt and studentNames.txt files)-(Class heading should be also displayed) First Name Jack Ellen Eddy Jerry Meryl StudentID Answers ABC123 DOZ003 AAB000 Z2T090 DDC123 % Score Grade Last Name Black DeGeneres Murphy Seinfeld Streep 95.0 62.5 82.5 30.0 95.0 Min score is 30.08 for Student ID ZZTO90 Max score is 95.0% for Student ID ABC123 Average is 73.0%
Step 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