aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab8/Output and Written Work.txt
diff options
context:
space:
mode:
authorJames Lawrance <[email protected]>2021-11-23 21:29:11 -0800
committerJames Lawrance <[email protected]>2021-11-23 21:29:11 -0800
commitea93e6d7dbe2ef6e8bfc58b6feeb07ba3809ec3f (patch)
tree7eba8abd196d77a6387556e7054967298c6e0d09 /CST116F2021-Lab8/Output and Written Work.txt
parentAdd online IDE url (diff)
downloadcst115-lab8-jemersonlawrance-master.tar.xz
cst115-lab8-jemersonlawrance-master.zip
Lab 8 complete 11/23/21HEADmaster
Diffstat (limited to 'CST116F2021-Lab8/Output and Written Work.txt')
-rw-r--r--CST116F2021-Lab8/Output and Written Work.txt131
1 files changed, 131 insertions, 0 deletions
diff --git a/CST116F2021-Lab8/Output and Written Work.txt b/CST116F2021-Lab8/Output and Written Work.txt
new file mode 100644
index 0000000..c3ef8ac
--- /dev/null
+++ b/CST116F2021-Lab8/Output and Written Work.txt
@@ -0,0 +1,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. \ No newline at end of file