Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can someone tell me how i can fix my text alignment for test scores and grade? i

ID: 3665565 • Letter: C

Question

can someone tell me how i can fix my text alignment for test scores and grade? i want them in a column, but they are all out of line.

Here is my code:

This is how my output text file is aligning:

restscore Grade student Name Donald, Duckey Goofy, Goof Balto, Brave Smitn, Snow wonderful, Alice Akthar, Samina Green, Simba Egger, Donald Deer, Br own Jackson, Johny Gupta, Greg Happy, samuel Arora, Danny June, sleepy chen Mal1K Tomek, Chelsea clodfelter, Angela Nields, A1lisoin Norman, Lance 85 89 93 93 89 85 95 86 95 75 80 80 70 , Amy 83 95 95 Highest Test Score: 95 The students with the highest test score are: Green, Simba Jackson, Johny Malik, Shelly Tomek, Chelsea clodfelter, Angela Nields, Aliison 9 59 89 96587

Explanation / Answer

#include #include #include #include using namespace std; // struct for student struct studentType { string studentFName; string studentLName; int testScore; char grade; }; // global studentType Student[20]; ifstream myFile; ofstream outFile; // function define area void read(); void assignGrade (); int HighestScore(studentType [], int listSize); void print(); int main() { myFile.open("student.txt"); outFile.open("output.txt"); read(); assignGrade(); print(); myFile.close(); outFile.close(); system("pause"); return 0; } // function implementation area void read() { int i; for(i = 0; i < 20; i++) { myFile >> Student[i].studentFName >> Student[i].studentLName >> Student[i].testScore; // cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote