aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab8/Output and Written Work.txt
blob: c3ef8ac63646f45f241dd538a01dcd8e20dc4570 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
13a - 

#5
	a. 
    if (inFile.is_open)
        {
            ...
        }
	b. 
    string nameRecords[100];
    int intRecords[2][100];

    string lname;
    int id;
    int age;

    for (int i = 0; nameRecords[i] != '\0' && intRecords[i] != '\0'; i++)
    {
    getline(inFile, lname, ',');
    getline(inFile, id, ',');
    getline(inFile, age, ',')

    nameRecords[i] = lname;
    
    intRecords[1][i] = id;
    intRecords[2][i] = age;
    }
	c. inFile.close();

 #6
    a.
    False
    b.
    True
    c.
    False
    d.
    True
    e.
    True

13b output - 

output 1 -
                                             --Median finder program--

Enter value #1. Enter 0 to stop input and display median.
6

Enter value #2. Enter 0 to stop input and display median.
7

Enter value #3. Enter 0 to stop input and display median.
7

Enter value #4. Enter 0 to stop input and display median.
1

Enter value #5. Enter 0 to stop input and display median.
2

Enter value #6. Enter 0 to stop input and display median.
9

Enter value #7. Enter 0 to stop input and display median.
3

Enter value #8. Enter 0 to stop input and display median.
7

Enter value #9. Enter 0 to stop input and display median.
6

Enter value #10. Enter 0 to stop input and display median.
0

The median of your input is: 6

output 2 -

                                             --Median finder program--

Enter value #1. Enter 0 to stop input and display median.
100

Enter value #2. Enter 0 to stop input and display median.
200

Enter value #3. Enter 0 to stop input and display median.
300

Enter value #4. Enter 0 to stop input and display median.
400

Enter value #5. Enter 0 to stop input and display median.
0

The median of your input is: 250

13c output -

output 1 -

                                          --Employee Data Organizer--

This program formats each employee's name, SS number, wage, hours worked, straight time pay, overtime pay, whether they work part-time or full-time, and their net pay.

No file detected. A new file has been created. Please input data into the file and restart the program.

output 2 -

                                          --Employee Data Organizer--

This program formats each employee's name, SS number, wage, hours worked, straight time pay, overtime pay, whether they work part-time or full-time, and their net pay.

File detected. Formatting data...

John Smith 123-09-8765 9.00 46 F
Molly Brown 432-89-7654 9.50 40 F
Tim Wheeler 239-34-3458 11.25 83 F
Keil Wader 762-84-6543 6.50 35 P
Trish Dish 798-65-9844 7.52 40 P
Anthony Lei 934-43-9843 4.50 30 F
Kevin Ashes 765-94-7343 4.50 30 P
Cheryl Prince 983-54-9000 4.65 45 F
Kim Cares 343-11-2222 10.00 52 F
Dave Cockroach 356-98-1236 5.75 48 F
Will Kusick 232-45-2332 15.00 45 P


All data has been read. The program will now end.