Assignment2.txt - Assignment 2 Author Kyle Nesmith Date...

This preview shows 1 out of 2 pages.

Assignment 2: Author: Kyle Nesmith Date: 2/3/2019 Assignment 2: Structured Data Console Output/Testing Results: 1. Name: Amy Adams Avg: 22 2. Name: Bob Barr Avg: 22.75 3. Name: Carla Carr Avg: 23.5 4. Name: Dan Dobbs Avg: 17.25 C++ Source Code: #include <iostream> #include <string> using namespace std; const int NG = 4; string names[] = { "Amy Adams", "Bob Barr", "Carla Carr", "Dan Dobbs", "Elena Evans" }; int exams[][NG] = { { 98, 87, 93, 88 }, { 78, 86, 82, 91 }, { 66, 71, 85, 94 }, { 72, 63, 77, 69 }, { 91, 83, 76, 60 } }; struct student { string name; int exams[NG]; float avg; }; float findavg(int exams[]) ;
Image of page 1

Subscribe to view the full document.

Image of page 2
You've reached the end of this preview.
  • Summer '15
  • WilliamSlater
  • Amy Adams, Bob Barr, Carla Carr, Dan Dobbs

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern