aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch5-Debugging/CST116-Project1.cpp
blob: d45c035cfd9248ec0f9c96671cb98b95da18f024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Name: Musa Ahmed, Course: CST116, Lab # 0, Learn how to debug and how to use an IDE as well as GitHub 

#include <iostream>
#include <iomanip>
#include <string>
#include <list>
#include <bitset>
#include <vector>
using namespace std;
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::to_string;

int main()
{
 
    vector<string> n;
    vector<string> g;
    vector<string> c;
    
    string temp;

   
    for (int i = 0; i < 4; i++) {

        cout << "Enter a name: " << endl;
        cin >> temp;
        n.push_back(temp);

        cout << "Enter a gpa: " << endl;
        cin >> temp;
        g.push_back(temp);

        cout << "Enter an income: " << endl;
        cin >> temp;
        c.push_back(temp);

    }
    for (int i = 0; i < 4; i ++) {
        cout << "Profile #" << i << ' ' << 
            "Name: " << n[i] << ' ' << 
            "GPA: " << g[i] << ' ' << 
            "Income: " << c[i] << endl;
    }

    return 0;

    





}