• Announcements

    • Piers

      Registration turned off   07/28/18

      ots spam our site everyday and we're too lazy to clean it up so we're just closing registrations. If you've lost access to your account contact pretty much anybody on ts: mm-rs.org. 

Kush

Forum Guest
  • Content count

    2907
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kush

  • Rank
    I'll hit you harder then your first period
  • Birthday 05/18/93

Profile Information

  • Gender Male
  • Location Pittsburgh PA

Previous Fields

  • RS Name Itz Comrade
  • IRC Nick Comrade
  • Country Russia
  1. Cars

    sti sti sti sti, sti.
  2. thinking about playing wow again seeing as 07 is a shell of its former glory
  3. Gynecomastia A Serious Issue

    hit the gym suckas
  4. How Do I Go About This

    if someone got a perfect yes it would be 100 but you cant count on that for(x=0; x < 10; x++){ pupil[x].FinalGradeTotal = grade_addition(pupil[x].Grade); pupil[x].FinalGradePerc = pupil[x].FinalGradeTotal /4; if (pupil[x].FinalGradeTotal > highest_grade) { highest_grade = pupil[x].FinalGradeTotal; smartest_student = x; } } you have to loop through them all and set the > one equal to a variable
  5. How Do I Go About This

    got another one for you folks, I need to find the highest value for pupil[x].FinalGradePerc #include <iostream> #include <string> using namespace std; struct Student { string FirstName; string LastName; int StudentID; int Grade[4]; char FinalLetterGrade; int FinalGradePerc; int FinalGradeTotal; bool Pass; bool winner; }; Student pupil[2]; int main() { int x; for(x=0; x < 2; x++){ cout << "Please enter student " << x << "'s first name." << endl; cin >> pupil[x].FirstName; cout << "Please enter student " << x << "'s last name." << endl; cin >> pupil[x].LastName; cout << "Please enter student " << x << "'s Student ID." << endl; cin >> pupil[x].StudentID; cout << "Please enter student " << x << "'s first of four grades" << endl; cin >> pupil[x].Grade[1]; cout << "Please enter student " << x << "'s second of four grades" << endl; cin >> pupil[x].Grade[2]; cout << "Please enter student " << x << "'s third of four grades" << endl; cin >> pupil[x].Grade[3]; cout << "Please enter student " << x << "'s fourth of four grades" << endl; cin >> pupil[x].Grade[4]; } for(x=0; x < 2; x++){ pupil[x].FinalGradeTotal = pupil[x].Grade[1] + pupil[x].Grade[2] + pupil[x].Grade[3] + pupil[x].Grade[4]; pupil[x].FinalGradePerc = pupil[x].FinalGradeTotal /4; } for(x=0; x < 2; x++){ if (pupil[x].FinalGradePerc > 90) pupil[x].FinalLetterGrade = 'A'; else if (pupil[x].FinalGradePerc > 80) pupil[x].FinalLetterGrade = 'B'; else if (pupil[x].FinalGradePerc > 70) pupil[x].FinalLetterGrade = 'C'; else if (pupil[x].FinalGradePerc > 60) pupil[x].FinalLetterGrade = 'D'; else pupil[x].FinalLetterGrade = 'F'; } for(x=0; x < 2; x++){ if (pupil[x].FinalGradePerc > 70) pupil[x].Pass = true; else pupil[x].Pass = false; } for(x=0; x < 2; x++){ try{ pupil[x].Pass; if (pupil[x].Pass == true) throw 0; } catch(int p){ cout << "PASS!" << endl; cout << "------" << endl; cout << pupil[x].LastName << ", " << pupil[x].FirstName << " " << pupil[x].FinalLetterGrade << endl; } } for(x=0; x < 2; x++){ try{ pupil[x].Pass; if (pupil[x].Pass == false) throw 1; } catch(int f){ cout <<"------" << endl; cout << "FAIL." << endl; cout <<"------" << endl; cout << pupil[x].LastName << ", " << pupil[x].FirstName << " " << pupil[x].FinalLetterGrade << endl; } } cin.get(); cin.get(); return 0; }
  6. How Do I Go About This

    im f*****g r******d wow never mind i figured it out... I guess this is what i needed to do, im a terrible programmer if you have'nt put that together yet. struct Student { char FirstName; char LastName; int StudentID; int Grade[4]; char FinalLetterGrade; int FinalGradePerc; }; Student student[10]; int main() { return 0; } void input(int x){ for(int x=0; x > 10; x++) cout << "Please enter student " << x << "'s first name." << endl; cin >> student[x].FirstName; cout << "Please enter student " << x << "'s last name." << endl; cin >> student[x].LastName; cout << "Please enter student " << x << "'s Student ID." << endl; cin >> student[x].StudentID; cout << "Please enter student " << x << "'s first of four grades" << endl; cin >> student[x].Grade[1]; cout << "Please enter student " << x << "second of four grades" << endl; cin >> student[x].Grade[2]; cout << "Please enter student " << x << "third of four grades" << endl; cin >> student[x].Grade[3]; cout << "Please enter student " << x << "fourth of four grades" << endl; cin >> student[x].Grade[4]; cout << "Please enter student " << x << "final letter grade" << endl; cin >> student[x].FinalLetterGrade; }
  7. How Do I Go About This

    yes, i need the user to enter the info, have the program do some calculations and cout info i havent got around to that bit yet. i just need to know how to store the struct values for each student
  8. How Do I Go About This

    I dont know how to store the struct for every student struct StudentInfo { char FirstName; char LastName; int StudentID; int Grade1; int Grade2; int Grade3; int Grade4; char FinalLetterGrade; int FinalGradePerc; }; int main() { return 0; } int input(int x){ for(x=0; x < 10; x++) cout << "Please enter student" << x << "first name" << endl; cout << "Please enter student" << x << "last name" << endl; cout << "Please enter student" << x << "Student ID" << endl; cout << "Please enter student" << x << "four grades" << endl; cout << "Please enter student" << x << "final letter grade" << endl; }
  9. Why Are You Closed!?

    I know they closed cause the game is cancer
  10. All the potential rugby athletes in america are too busy playing football b3cause it pays the mortgage
  11. I Like Dolphins

    left me with blue balls :(
  12. I Like Dolphins

    I watched till the end cause I wanted to see the cum shot. I feel like this post should be a confession bear...
  13. Mm's Official Stock Market Game

    don't worry ill be back on top, that’s the way i like it. Actually i probably wont but i enjoy trash talking...