-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Peer programmed progress for Lab 12 - Jake and Elijah
- Loading branch information
jakedcolbert
committed
Apr 14, 2022
1 parent
b78b2c7
commit a834494
Showing
20 changed files
with
574 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Author: Elijah Opoku-Nyarko and Jake Colbert | ||
|
||
# default target | ||
all: project4 | ||
|
||
# compile the code into an executable called 'project1' using C++ 2011 | ||
project4: project4.cc | ||
g++ -std=c++11 -o project4 project4.cc | ||
|
||
# test the code against an expected output file | ||
# this test should grow into a spaceship and end with blinkers | ||
test-nowhere: | ||
./project4 < test-files/t01-nowhere.in > tests/project4.out | ||
diff test-files/project4.out test-files/t01-nowhere.out > test.diff | ||
wc -l test.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @file project5.cc | ||
* @author Elijah Opoku-Nyarko and Jake Colbert | ||
* @brief | ||
* @version 0.1 | ||
* @date 2022-04-14 | ||
* | ||
* @copyright Copyright (c) 2022 | ||
* | ||
* Project 5 main file | ||
*/ | ||
|
||
#include <iostream> | ||
#include <string> | ||
#include <fstream> | ||
|
||
#include "province.h" | ||
|
||
using namespace std; | ||
|
||
|
||
int main() { | ||
while(!cin.eof()) { | ||
Province province(cin); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Mac files | ||
.DS_Store | ||
|
||
# Mac + Google Drive files | ||
Icon? | ||
|
||
# Emacs backup and temp files | ||
*~ | ||
\#*\# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# cps222p5-test-data | ||
|
||
This repo provides sample input and output files for testing your | ||
Project 5 code. Much more test data is needed to ensure your | ||
code works. Remember: **if you haven't tested it, it doesn't work.** | ||
|
||
* .in: sample input | ||
* .out: expected output for matching input. Please match the format of each line exactly, by comparing your output to this with the "diff" command. Try to make the output line order match, too. But if you are confident your code is producing correct output in a different valid order, that is acceptable. | ||
|
||
There is also a .jpg image of a diagram of some input. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1 0 | ||
NOWHERESVILLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The input data is: | ||
|
||
NOWHERESVILLE | ||
|
||
The shortest paths from NOWHERESVILLE are: | ||
|
||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
|
||
Connected components in event of a major storm are: | ||
If all bridges fail, the following towns would form an isolated group: | ||
NOWHERESVILLE | ||
|
||
Destruction of any of the following would result in the province becoming | ||
disconnected: | ||
(None) | ||
|
||
|
||
------------------------------------------------------------------ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
2 1 | ||
Wenham | ||
Hamilton | ||
Wenham Hamilton N 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
The input data is: | ||
|
||
Wenham | ||
Hamilton 1 mi | ||
Hamilton | ||
Wenham 1 mi | ||
|
||
The shortest paths from Wenham are: | ||
|
||
The shortest path from Wenham to Hamilton is 1 mi: | ||
Wenham | ||
Hamilton | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
Hamilton to Wenham | ||
|
||
Connected components in event of a major storm are: | ||
If all bridges fail, the following towns would form an isolated group: | ||
Wenham | ||
Hamilton | ||
|
||
Destruction of any of the following would result in the province becoming | ||
disconnected: | ||
(None) | ||
|
||
|
||
------------------------------------------------------------------ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
3 2 | ||
A | ||
B | ||
C | ||
A B B 1 | ||
B C B 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
The input data is: | ||
|
||
A | ||
B 1 mi via bridge | ||
B | ||
A 1 mi via bridge | ||
C 1 mi via bridge | ||
C | ||
B 1 mi via bridge | ||
|
||
The shortest paths from A are: | ||
|
||
The shortest path from A to B is 1 mi: | ||
A | ||
B | ||
The shortest path from A to C is 2 mi: | ||
A | ||
B | ||
C | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
B to A | ||
C to B | ||
|
||
Connected components in event of a major storm are: | ||
If all bridges fail, the following towns would form an isolated group: | ||
A | ||
|
||
If all bridges fail, the following towns would form an isolated group: | ||
B | ||
|
||
If all bridges fail, the following towns would form an isolated group: | ||
C | ||
|
||
Destruction of any of the following would result in the province becoming | ||
disconnected: | ||
B | ||
|
||
|
||
------------------------------------------------------------------ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
5 6 | ||
Salem | ||
Wenham | ||
Beverly | ||
Danvers | ||
Lynn | ||
Beverly Danvers N 2.9 | ||
Beverly Salem B 2.4 | ||
Beverly Wenham N 5.2 | ||
Danvers Wenham N 4.2 | ||
Danvers Salem B 3.7 | ||
Lynn Salem N 4.9 |
Oops, something went wrong.