Friday Lab 1 - GPA by Noah Jones.pdf - Noah Jones COP3014C-...

This preview shows page 1 - 2 out of 2 pages.

Noah JonesCOP3014C- Fundamentals of ProgrammingProf. Allen10 Sept,2021Friday Lab 1 - GPAMy code:#include <iostream>using namespace std;int main (){string name1;string name2;string name3;string name4;double gpa1;double gpa2;double gpa3;double gpa4;cout << "Please enter the names and GPA of your 4 students." << endl;cout << "Enter a name: ";cin >> name1;cout << "Enter a GPA: ";cin >> gpa1;cout << "Enter a name: ";cin >> name2;cout << "Enter a GPA: ";cin >> gpa2;cout << "Enter a name: ";cin >> name3;
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
NoProfessor
Tags
Carriage return, include, Prof Allen, Noah Jones

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture