Sean 80 sean@csi.edu James 100 james@yahoo.com Issac 99 issac@mail.csi.edu Thoma
ID: 3609149 • Letter: S
Question
Sean 80 sean@csi.eduJames 100 james@yahoo.com
Issac 99 issac@mail.csi.edu
Thomas 88 tom@cix.csi.edu
Alice 78 alice@myclass.com
Jone 75 jone@hotmail.com
Zach 89 zach@yahoo.com
Mark 86 mark@gmail.com
Nick 79 nick@bmail.com
Amy 95 amy@hotmail.com
Claire 89 claire@yahoo.com
Eve 97 eve@nytimes.com From the above file i need to output on the screen the lowestscore first to the higest score and put it in an output fileaswell but what i need help in is how can do that as afunction and how would i sort the names and emails to go with thererespected scores from lowest to higest?? please help, will be appericated, thanks Sean 80 sean@csi.edu
James 100 james@yahoo.com
Issac 99 issac@mail.csi.edu
Thomas 88 tom@cix.csi.edu
Alice 78 alice@myclass.com
Jone 75 jone@hotmail.com
Zach 89 zach@yahoo.com
Mark 86 mark@gmail.com
Nick 79 nick@bmail.com
Amy 95 amy@hotmail.com
Claire 89 claire@yahoo.com
Eve 97 eve@nytimes.com From the above file i need to output on the screen the lowestscore first to the higest score and put it in an output fileaswell but what i need help in is how can do that as afunction and how would i sort the names and emails to go with thererespected scores from lowest to higest?? please help, will be appericated, thanks
Explanation / Answer
please rate - thanks #include #include #include using namespace std; void sort(int[],string[],string[],int); int main() { string name[15], email[15]; int i=0,j,score[15]; ifstream input; ofstream output; input.open("emails.txt"); //open file if(input.fail()) //is it ok? { coutscore[i]>>email[i]; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.