Initial Commit
BIN
Submissions/CS1073 As1/IsaacShoebottom_As1_Archive.zip
Normal file
BIN
Submissions/CS1073 As1/IsaacShoebottom_As1_Report.pdf
Normal file
BIN
Submissions/CS1073 As10/CS1073-Assign10-F2020.pdf
Normal file
BIN
Submissions/CS1073 As10/IsaacShoebottom_As10_Archive.zip
Normal file
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* Class containing the methods for conversion
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class Converter {
|
||||
|
||||
/**
|
||||
* Convert hexadecimal to base 10
|
||||
* @param hex String containing the hex digits
|
||||
* @return returns the decimal value
|
||||
*/
|
||||
static long hex2Decimal(String hex) {
|
||||
String hexChars = "0123456789ABCDEF";
|
||||
hex = hex.toUpperCase();
|
||||
long decimal = 0;
|
||||
int intermediaryValue;
|
||||
char index;
|
||||
for (int i = hex.length(), p = 0; i != 0; i--, p++) {
|
||||
index = hex.charAt(i-1);
|
||||
intermediaryValue = hexChars.indexOf(index);
|
||||
if (intermediaryValue == -1)
|
||||
return -1;
|
||||
decimal = decimal + intermediaryValue*(int)(Math.pow(16, p));
|
||||
}
|
||||
return decimal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the english text to the encoded text
|
||||
* @param english String containing standard english
|
||||
* @return Returns encoded text
|
||||
*/
|
||||
static String english2Encrypted(String english) {
|
||||
english = english.toUpperCase();
|
||||
if (english.length() > 1) {
|
||||
english = swapFirstAndLastLettersInString(english);
|
||||
}
|
||||
|
||||
for (int i = 0; i < english.length(); i++) {
|
||||
char index = english.charAt(i);
|
||||
switch (index) {
|
||||
case 'E':
|
||||
english = replaceInString(english, i, "A");
|
||||
break;
|
||||
case 'A':
|
||||
english = replaceInString(english, i, "E");
|
||||
break;
|
||||
case 'O':
|
||||
english = replaceInString(english, i, "I");
|
||||
break;
|
||||
case 'I':
|
||||
english = replaceInString(english, i, "O");
|
||||
break;
|
||||
case 'U':
|
||||
english = replaceInString(english, i, "Y");
|
||||
break;
|
||||
case 'Y':
|
||||
english = replaceInString(english, i, "U");
|
||||
break;
|
||||
}
|
||||
}
|
||||
return english;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace a letter in a string
|
||||
* @param str String to be modified
|
||||
* @param index The character's index to be replaced
|
||||
* @param replace The string that will be replacing the character
|
||||
* @return The string with the string replaced
|
||||
*/
|
||||
private static String replaceInString(String str, int index, String replace){
|
||||
return str.substring(0, index) + replace + str.substring(index+1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Swaps the first and letters in every word in a string
|
||||
* @param str The string to be swapped
|
||||
* @return The string with letters swapped
|
||||
*/
|
||||
private static String swapFirstAndLastLettersInString(String str) {
|
||||
StringBuilder output = new StringBuilder();
|
||||
String[] splitStr = str.trim().split("\\s+");
|
||||
|
||||
for(int i = 0; i < splitStr.length; i++) {
|
||||
if (splitStr[i].length() != 1) {
|
||||
splitStr[i] = swapFirstAndLastLetterFromWord(splitStr[i]);
|
||||
}
|
||||
|
||||
output.append(" ").append(splitStr[i]);
|
||||
if (i == 0) {
|
||||
output = new StringBuilder(splitStr[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return output.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to swap the first and last letters in a word
|
||||
* @param str The string to be swapped
|
||||
* @return The swapped string
|
||||
*/
|
||||
private static String swapFirstAndLastLetterFromWord(String str) {
|
||||
return str.charAt(str.length() - 1) + str.substring(1, str.length() - 1) + str.charAt(0);
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.FlowPane;
|
||||
import javafx.scene.text.Text;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
/**
|
||||
* GUI Class
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class Driver extends Application {
|
||||
FlowPane flowPane = new FlowPane();
|
||||
Text textInstructions = new Text("Enter a hex value or English word or phrase:");
|
||||
TextField textFieldMain = new TextField("");
|
||||
Button buttonH2D= new Button("Hex To Decimal");
|
||||
Button buttonE2E = new Button("English to Encrypted");
|
||||
Text textResult = new Text("Welcome to the Converter App!");
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
primaryStage.setTitle("Package Calculator");
|
||||
flowPane.setPadding(new Insets(10, 10, 10, 10));
|
||||
flowPane.setHgap(10);
|
||||
flowPane.setVgap(15);
|
||||
flowPane.setAlignment(Pos.CENTER);
|
||||
|
||||
buttonH2D.setOnAction(this::calculateHex);
|
||||
buttonE2E.setOnAction(this::calculateEncrypted);
|
||||
|
||||
textFieldMain.setPrefWidth(150);
|
||||
|
||||
flowPane.getChildren().addAll(
|
||||
textInstructions,
|
||||
textFieldMain,
|
||||
buttonH2D, buttonE2E,
|
||||
textResult
|
||||
);
|
||||
|
||||
primaryStage.setScene(new Scene(flowPane, 250, 200));
|
||||
primaryStage.setResizable(false);
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
private void calculateHex(ActionEvent actionEvent) {
|
||||
long input = Converter.hex2Decimal(textFieldMain.getText());
|
||||
if (input == -1) {
|
||||
textResult.setText("Invalid input");
|
||||
}
|
||||
else {
|
||||
textResult.setText(Long.toString(input));
|
||||
}
|
||||
}
|
||||
private void calculateEncrypted(ActionEvent actionEvent) {
|
||||
textResult.setText(Converter.english2Encrypted(textFieldMain.getText()));
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
BIN
Submissions/CS1073 As10/IsaacShoebottom_As10_Report.docx
Normal file
BIN
Submissions/CS1073 As10/IsaacShoebottom_As10_Report.pdf
Normal file
BIN
Submissions/CS1073 As11/CS1073-Assign11-F2020.pdf
Normal file
BIN
Submissions/CS1073 As11/IsaacShoebottom_As11_Archive.zip
Normal file
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 62 KiB |
@ -0,0 +1,54 @@
|
||||
Enter test score: 12
|
||||
Enter test score: 23
|
||||
Enter test score: 34
|
||||
Enter test score: 56
|
||||
Enter test score: 67
|
||||
Enter test score: 89
|
||||
Enter test score: 90
|
||||
Enter test score: 21
|
||||
Enter test score: 43
|
||||
Enter test score: 54
|
||||
Enter test score: 65
|
||||
Enter test score: 76
|
||||
Enter test score: 87
|
||||
Enter test score: 98
|
||||
Enter test score: 09
|
||||
Enter test score: 49
|
||||
Enter test score: 28
|
||||
Enter test score: 48
|
||||
Enter test score: 43
|
||||
Enter test score: 86
|
||||
Enter test score: 23
|
||||
Enter test score: 765
|
||||
Please enter a test score within the range 0-100
|
||||
Enter test score: 54
|
||||
Enter test score: 65
|
||||
Enter test score: 32
|
||||
Enter test score: 73
|
||||
Enter test score: 96
|
||||
Enter test score: 62
|
||||
Enter test score: 74
|
||||
Enter test score: 52
|
||||
Enter test score: 52
|
||||
Enter test score: 74
|
||||
Enter test score: 52
|
||||
Enter test score: 74
|
||||
Enter test score: 52
|
||||
Enter test score: 75
|
||||
Enter test score: 2
|
||||
Enter test score: 74
|
||||
Enter test score: 41
|
||||
Enter test score: 74
|
||||
Enter test score: 41
|
||||
Enter test score: 63
|
||||
Enter test score: 41
|
||||
Enter test score: -1
|
||||
Scores
|
||||
A |******
|
||||
B |********
|
||||
C |******
|
||||
D |********
|
||||
F |**************
|
||||
===============================
|
||||
+ + + +
|
||||
0 10 20 30
|
@ -0,0 +1,70 @@
|
||||
Enter test score: 12
|
||||
Enter test score: 34
|
||||
Enter test score: 56
|
||||
Enter test score: 78
|
||||
Enter test score: 90
|
||||
Enter test score: 09
|
||||
Enter test score: 87
|
||||
Enter test score: 65
|
||||
Enter test score: 43
|
||||
Enter test score: 21
|
||||
Enter test score: 13
|
||||
Enter test score: 35
|
||||
Enter test score: 7
|
||||
Enter test score: 75
|
||||
Enter test score: 42
|
||||
Enter test score: 65
|
||||
Enter test score: 42
|
||||
Enter test score: 86
|
||||
Enter test score: 432
|
||||
Please enter a test score within the range 0-100
|
||||
Enter test score: 73
|
||||
Enter test score: 95
|
||||
Enter test score: 05
|
||||
Enter test score: 15
|
||||
Enter test score: 73
|
||||
Enter test score: 53
|
||||
Enter test score: 86
|
||||
Enter test score: 53
|
||||
Enter test score: 86
|
||||
Enter test score: 52
|
||||
Enter test score: 85
|
||||
Enter test score: 53
|
||||
Enter test score: 86
|
||||
Enter test score: 27
|
||||
Enter test score: 73
|
||||
Enter test score: 52
|
||||
Enter test score: 85
|
||||
Enter test score: -1
|
||||
30+ |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
20+ |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
| *
|
||||
| *
|
||||
| *
|
||||
10+ | *
|
||||
| * *
|
||||
| * *
|
||||
| * *
|
||||
| * *
|
||||
| * * * *
|
||||
| * * * *
|
||||
| * * * * *
|
||||
| * * * * *
|
||||
| * * * * *
|
||||
0+ ===========
|
||||
A B C D F
|
@ -0,0 +1,8 @@
|
||||
These are the original strings
|
||||
[1, 4, 9, 16]
|
||||
[9, 7, 4, 9, 11]
|
||||
[1, 4, 9, 16, 9, 7, 4, 9, 11]
|
||||
These are the modified strings
|
||||
[1, 4, 9, 16, 9, 7, 4, 9, 11]
|
||||
[11, 9, 4, 7, 9, 16, 9, 4, 1]
|
||||
-2
|
After Width: | Height: | Size: 8.8 KiB |
@ -0,0 +1,50 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* Simple test stats
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class ClassGrades {
|
||||
public static void main(String[] args) {
|
||||
Scanner scan = new Scanner(System.in);
|
||||
long testScore;
|
||||
long numberOfA = 0;
|
||||
long numberOfB = 0;
|
||||
long numberOfC = 0;
|
||||
long numberOfD = 0;
|
||||
long numberOfF = 0;
|
||||
do {
|
||||
System.out.print("Enter test score: ");
|
||||
testScore = scan.nextLong();
|
||||
|
||||
if (testScore > 100) {
|
||||
System.out.println("Please enter a test score within the range 0-100");
|
||||
}
|
||||
else {
|
||||
if (testScore >= 85) {
|
||||
numberOfA++;
|
||||
}
|
||||
else if (testScore >= 70) {
|
||||
numberOfB++;
|
||||
}
|
||||
else if (testScore >= 55) {
|
||||
numberOfC++;
|
||||
}
|
||||
else if (testScore >= 45) {
|
||||
numberOfD++;
|
||||
}
|
||||
else if (testScore >= 0) {
|
||||
numberOfF++;
|
||||
}
|
||||
}
|
||||
} while (testScore >= 0);
|
||||
|
||||
System.out.println("Number of A's: " + numberOfA);
|
||||
System.out.println("Number of B's: " + numberOfB);
|
||||
System.out.println("Number of C's: " + numberOfC);
|
||||
System.out.println("Number of D's: " + numberOfD);
|
||||
System.out.println("Number of F's: " + numberOfF);
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* Sideways histogram for tests
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class ClassGradesHistogram {
|
||||
public static void main(String[] args) {
|
||||
Scanner scan = new Scanner(System.in);
|
||||
long testScore;
|
||||
long numberOfA = 0;
|
||||
long numberOfB = 0;
|
||||
long numberOfC = 0;
|
||||
long numberOfD = 0;
|
||||
long numberOfF = 0;
|
||||
do {
|
||||
System.out.print("Enter test score: ");
|
||||
testScore = scan.nextLong();
|
||||
|
||||
if (testScore > 100) {
|
||||
System.out.println("Please enter a test score within the range 0-100");
|
||||
} else {
|
||||
if (testScore >= 85) {
|
||||
numberOfA++;
|
||||
} else if (testScore >= 70) {
|
||||
numberOfB++;
|
||||
} else if (testScore >= 55) {
|
||||
numberOfC++;
|
||||
} else if (testScore >= 45) {
|
||||
numberOfD++;
|
||||
} else if (testScore >= 0) {
|
||||
numberOfF++;
|
||||
}
|
||||
}
|
||||
} while (testScore >= 0);
|
||||
|
||||
System.out.println("Scores");
|
||||
System.out.print("A\t\t|");
|
||||
while (numberOfA > 0) {
|
||||
System.out.print('*');
|
||||
numberOfA--;
|
||||
}
|
||||
System.out.println();
|
||||
System.out.print("B\t\t|");
|
||||
while (numberOfB > 0) {
|
||||
System.out.print('*');
|
||||
numberOfB--;
|
||||
}
|
||||
System.out.println();
|
||||
System.out.print("C\t\t|");
|
||||
while (numberOfC > 0) {
|
||||
System.out.print('*');
|
||||
numberOfC--;
|
||||
}
|
||||
System.out.println();
|
||||
System.out.print("D\t\t|");
|
||||
while (numberOfD > 0) {
|
||||
System.out.print('*');
|
||||
numberOfD--;
|
||||
}
|
||||
System.out.println();
|
||||
System.out.print("F\t\t|");
|
||||
while (numberOfF > 0) {
|
||||
System.out.print('*');
|
||||
numberOfF--;
|
||||
}
|
||||
System.out.println();
|
||||
System.out.println("\t\t" + "===============================");
|
||||
System.out.println("\t\t" + "+ + + +");
|
||||
System.out.println("\t\t" + "0 10 20 30");
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* Vertical histogram for tests
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class ClassGradesHistogramVertical {
|
||||
public static void main(String[] args) {
|
||||
Scanner scan = new Scanner(System.in);
|
||||
long testScore;
|
||||
long numberOfA = 0;
|
||||
long numberOfB = 0;
|
||||
long numberOfC = 0;
|
||||
long numberOfD = 0;
|
||||
long numberOfF = 0;
|
||||
do {
|
||||
System.out.print("Enter test score: ");
|
||||
testScore = scan.nextLong();
|
||||
|
||||
if (testScore > 100) {
|
||||
System.out.println("Please enter a test score within the range 0-100");
|
||||
} else {
|
||||
if (testScore >= 85) {
|
||||
numberOfA++;
|
||||
} else if (testScore >= 70) {
|
||||
numberOfB++;
|
||||
} else if (testScore >= 55) {
|
||||
numberOfC++;
|
||||
} else if (testScore >= 45) {
|
||||
numberOfD++;
|
||||
} else if (testScore >= 0) {
|
||||
numberOfF++;
|
||||
}
|
||||
}
|
||||
} while (testScore >= 0);
|
||||
|
||||
for (int i = 30; i > 0; i--) {
|
||||
if (i == 30 | i == 20 | i == 10)
|
||||
System.out.print(i+ "+");
|
||||
System.out.print("\t| ");
|
||||
if (numberOfA >= i) {
|
||||
System.out.print('*');
|
||||
}
|
||||
else {
|
||||
System.out.print(' ');
|
||||
}
|
||||
System.out.print(' ');
|
||||
if (numberOfB >= i) {
|
||||
System.out.print('*');
|
||||
}
|
||||
else {
|
||||
System.out.print(' ');
|
||||
}
|
||||
System.out.print(' ');
|
||||
if (numberOfC >= i) {
|
||||
System.out.print('*');
|
||||
}
|
||||
else {
|
||||
System.out.print(' ');
|
||||
}
|
||||
System.out.print(' ');
|
||||
if (numberOfD >= i) {
|
||||
System.out.print('*');
|
||||
}
|
||||
else {
|
||||
System.out.print(' ');
|
||||
}
|
||||
System.out.print(' ');
|
||||
if (numberOfF >= i) {
|
||||
System.out.print('*');
|
||||
}
|
||||
else {
|
||||
System.out.print(' ');
|
||||
}
|
||||
System.out.print(' ');
|
||||
System.out.println();
|
||||
}
|
||||
System.out.println("0+\t===========");
|
||||
System.out.println("\t A B C D F");
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* Array utils for ints
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class IntArrayUtil {
|
||||
|
||||
/**
|
||||
* Appends an array to another array
|
||||
* @param arrA First array in append
|
||||
* @param arrB Second array in append
|
||||
* @return Appended array
|
||||
*/
|
||||
public static int[] append (int[] arrA, int[] arrB) {
|
||||
int appendedLength = arrA.length + arrB.length;
|
||||
int[] appended = new int[appendedLength];
|
||||
for(int i = 0; i < arrA.length; i++) {
|
||||
appended[i] = arrA[i];
|
||||
}
|
||||
for(int i = 0; i < arrB.length; i++) {
|
||||
appended[i + arrA.length] = arrB[i];
|
||||
}
|
||||
return appended;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the order of elements in a string
|
||||
* @param arr The array to be reversed
|
||||
* @return The reversed array
|
||||
*/
|
||||
public static int[] reverse (int[] arr) {
|
||||
int[] reversed = new int[arr.length];
|
||||
for(int i =0; i<arr.length; i++ ) {
|
||||
reversed[i] = arr[i];
|
||||
}
|
||||
|
||||
for(int i = 0; i < arr.length/2; i++) {
|
||||
int temp = reversed[i];
|
||||
reversed[i] = arr[(arr.length-1) - i];
|
||||
reversed[(arr.length-1) - i] = temp;
|
||||
}
|
||||
|
||||
return reversed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Subtracts every odd index from a string from every even index
|
||||
* @param arr The array to perform math on
|
||||
* @return The alternating sum of the array
|
||||
*/
|
||||
public static int alternatingSum (int[] arr) {
|
||||
|
||||
int positives = 0;
|
||||
int negatives = 0;
|
||||
boolean isPos = true;
|
||||
for (int j : arr)
|
||||
if (isPos) {
|
||||
positives += j;
|
||||
isPos = false;
|
||||
} else {
|
||||
negatives += j;
|
||||
isPos = true;
|
||||
}
|
||||
|
||||
return positives-negatives;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import java.util.Arrays;
|
||||
|
||||
public class IntArrayUtilDriver {
|
||||
public static void main(String[] args) {
|
||||
int[] array1 = {1, 4 ,9, 16};
|
||||
int[] array2 = {9, 7, 4, 9 ,11};
|
||||
|
||||
int[] array3 = IntArrayUtil.append(array1, array2);
|
||||
|
||||
|
||||
System.out.println("These are the original strings");
|
||||
System.out.println(Arrays.toString(array1));
|
||||
System.out.println(Arrays.toString(array2));
|
||||
System.out.println(Arrays.toString(array3));
|
||||
|
||||
System.out.println("These are the modified strings");
|
||||
System.out.println(Arrays.toString(IntArrayUtil.append(array1, array2)));
|
||||
System.out.println(Arrays.toString(IntArrayUtil.reverse(array3)));
|
||||
System.out.println(IntArrayUtil.alternatingSum(array3));
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Inverted Stairs
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class PatternInverted {
|
||||
|
||||
public static void main(String[] args) {
|
||||
for (int i = 1; i < 10; i++) {
|
||||
for (int a = 9; a > i; a--) {
|
||||
System.out.print(' ');
|
||||
}
|
||||
for (int j = 1; j <= i; j++) {
|
||||
System.out.print('*');
|
||||
}
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
}
|
BIN
Submissions/CS1073 As11/IsaacShoebottom_As11_Report.docx
Normal file
BIN
Submissions/CS1073 As11/IsaacShoebottom_As11_Report.pdf
Normal file
73
Submissions/CS1073 As12/Archive/Q1/Decoder.java
Normal file
@ -0,0 +1,73 @@
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* Decodes encrypted text in a specific format
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class Decoder {
|
||||
public static void main(String[] args) throws FileNotFoundException {
|
||||
|
||||
Scanner scanFile = new Scanner(new File(args[0]));
|
||||
int cycleCount = 0;
|
||||
|
||||
scanFile.useDelimiter("\\A");
|
||||
String in = scanFile.next();
|
||||
|
||||
String[] codes = in.split("\\r?\\n");
|
||||
|
||||
for (String i: codes) {
|
||||
|
||||
if (i.length() > 1) {
|
||||
int columns = Integer.parseInt(codes[cycleCount * 2]);
|
||||
int rows = codes[cycleCount * 2 + 1].length() / columns;
|
||||
|
||||
char[][] decode = new char[rows][columns];
|
||||
|
||||
char[] chars = i.toCharArray();
|
||||
|
||||
int charCounter = 0;
|
||||
for (int k = 0; k < columns; k++) {
|
||||
|
||||
if (k % 2 != 0) {
|
||||
for (int j = 0; j < rows; j++) {
|
||||
decode[j][k] = chars[charCounter];
|
||||
charCounter++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (int j = rows - 1; j > -1; j--) {
|
||||
decode[j][k] = chars[charCounter];
|
||||
charCounter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
charCounter = 0;
|
||||
char[] decodedChar = new char[i.length()];
|
||||
for (int j = 0; j < rows; j++) {
|
||||
|
||||
if (j % 2 == 0) {
|
||||
for (int k = 0; k < columns; k++) {
|
||||
decodedChar[charCounter] = decode[j][k];
|
||||
charCounter++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (int k = columns - 1; k > -1; k--) {
|
||||
decodedChar[charCounter] = decode[j][k];
|
||||
charCounter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
cycleCount++;
|
||||
String output = String.valueOf(decodedChar);
|
||||
System.out.println(output);
|
||||
}
|
||||
else if (i.equals("0")) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
findthesecretdecoderringx
|
||||
watchoutfordrevilheisplanninganattackxy
|
||||
ourcshouseismeetingonteamsatnoontoworkonthepuzzleproblem
|
||||
everyoneyoumeetknowssomethingyoudonotxxx
|
||||
thecompanybidonemillionontheprojectx
|
||||
yourinformantwillbewearingaredcoat
|
After Width: | Height: | Size: 25 KiB |
47
Submissions/CS1073 As12/Archive/Q2/LendingItem.java
Normal file
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* This class holds info for the lent item
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class LendingItem {
|
||||
private final String description;
|
||||
private final double price;
|
||||
private final boolean recommended;
|
||||
|
||||
/**
|
||||
* Constructor for items
|
||||
* @param description Description of item
|
||||
* @param price The price of the item
|
||||
* @param recommended If the item is recommended or not
|
||||
*/
|
||||
public LendingItem(String description, double price, boolean recommended) {
|
||||
this.description = description;
|
||||
this.price = price;
|
||||
this.recommended = recommended;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the description of item
|
||||
* @return The item description
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the price of the item
|
||||
* @return The price of the item
|
||||
*/
|
||||
public double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets if the item is recommended by the book club
|
||||
* @return Boolean of if the item is recommended by the book club
|
||||
*/
|
||||
public boolean isBookClubRecommended() {
|
||||
return recommended;
|
||||
}
|
||||
}
|
||||
|
76
Submissions/CS1073 As12/Archive/Q2/Ouput.TXT
Normal file
@ -0,0 +1,76 @@
|
||||
*** Test case #1: Create a Tenant object & test accessors
|
||||
Name: Maria Melani
|
||||
Appt #: 152
|
||||
Phone: 555-1234
|
||||
Member #: 10000
|
||||
Correct result: Maria has zero lending items.
|
||||
|
||||
*** Test case #2: Create a ShortTermResidentMember object & test accessors
|
||||
Name: Tommy Black
|
||||
Appt #: 302
|
||||
Phone: 555-4321
|
||||
Member #: 10001
|
||||
Departs: Dec. 15, 2020
|
||||
Correct result: Tommy has zero lending items.
|
||||
|
||||
*** Test case #3: Automatically generate a member number
|
||||
Correct result: 10002 is the correct member number.
|
||||
|
||||
*** Test case #4: Create a LendingItem object & test accessors
|
||||
Description: Lean In - Sheryl Sandberg - BOOK
|
||||
Orig. Price: $10.00
|
||||
Book Club Recommended: true
|
||||
|
||||
*** Test case #5: Change phone number for both Resident types
|
||||
Correct result: Maria's phone number successfully changed.
|
||||
Correct result: Tommy's phone number successfully changed.
|
||||
|
||||
*** Test case #6: Sign out one LendingItem
|
||||
Correct result: Maria signed out an item successfully.
|
||||
Correct result: Maria has one lending item.
|
||||
|
||||
*** Test case #7: Sign out multiple LendingItems
|
||||
Correct result: Maria signed out two more items successfully.
|
||||
Correct result: Maria has three lending items.
|
||||
|
||||
*** Test case #8: Intentionally exceed the sign out limit
|
||||
Correct result: Maria was prevented from signing out more than 8 lending items.
|
||||
|
||||
*** Test case #9: A short-term resident tries to sign out a recommended item
|
||||
>> ERROR: Tommy was able to sign out a book club recommended item.
|
||||
>> ERROR: Tommy was prevented from signing out a non recommended item.
|
||||
|
||||
*** Test case #10: Returning the only item that was signed out
|
||||
Correct result: Tommy's item was successfully returned.
|
||||
Correct result: Tommy's list length changed appropriately.
|
||||
|
||||
*** Test case #11: Returning an item that was not signed out
|
||||
Correct result: Unsuccessful attempt to return an item that was not signed out.
|
||||
|
||||
*** Test case #12: Returning the first item that was signed out
|
||||
Correct result: Maria's first item was successfully returned.
|
||||
Correct result: Maria's list length changed appropriately.
|
||||
|
||||
Confirm return: Lean In should be absent from the following list:
|
||||
Yoga Journal - October 2020 - MAGAZINE
|
||||
Maclean's - 23/11/2020 - MAGAZINE
|
||||
Headstrong: 52 Women Who Changed Science and the World - Rachel Swaby - BOOK
|
||||
The Time Machine - H.G. Wells - BOOK
|
||||
The Confidence Code - Katty Kay & Claire Shipman - BOOK
|
||||
The Immortal Life of Henrietta Lacks - Rebecca Skloot - BOOK
|
||||
Grit - Angela Duckworth - BOOK
|
||||
|
||||
*** Test case #13: Returning a mid-list item
|
||||
Correct result: The Time Machine was successfully returned.
|
||||
Correct result: Maria's list length changed appropriately.
|
||||
|
||||
Confirm return: The Time Machine should be absent from the following list:
|
||||
Yoga Journal - October 2020 - MAGAZINE
|
||||
Maclean's - 23/11/2020 - MAGAZINE
|
||||
Headstrong: 52 Women Who Changed Science and the World - Rachel Swaby - BOOK
|
||||
Grit - Angela Duckworth - BOOK
|
||||
The Confidence Code - Katty Kay & Claire Shipman - BOOK
|
||||
The Immortal Life of Henrietta Lacks - Rebecca Skloot - BOOK
|
||||
|
||||
************* End of Test Cases ***************
|
||||
|
113
Submissions/CS1073 As12/Archive/Q2/ResidentMember.java
Normal file
@ -0,0 +1,113 @@
|
||||
/**
|
||||
* This class holds info for members
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
|
||||
public class ResidentMember {
|
||||
private static int membership = 9999;
|
||||
private final String name;
|
||||
private final int room;
|
||||
private final LendingItem[] list;
|
||||
private String phone;
|
||||
private int bookCounter;
|
||||
|
||||
/**
|
||||
* Constructor for members
|
||||
* @param name Name of member
|
||||
* @param room Room of member
|
||||
* @param phone Phone of member
|
||||
*/
|
||||
public ResidentMember(String name, int room, String phone) {
|
||||
this.name = name;
|
||||
this.room = room;
|
||||
this.phone = phone;
|
||||
list = new LendingItem[8];
|
||||
bookCounter = 0;
|
||||
membership++;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the signed out items of a member
|
||||
* @return The updated list item list
|
||||
*/
|
||||
public LendingItem[] getSignedOutItems() {
|
||||
LendingItem[] updatedItemList = new LendingItem[bookCounter];
|
||||
for (int i = 0; i < bookCounter; i++) {
|
||||
updatedItemList[i] = list[i];
|
||||
}
|
||||
return updatedItemList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to sign out items for members
|
||||
* @param input The item to be lent
|
||||
* @return Boolean for if the item was signed out or not
|
||||
*/
|
||||
public boolean signOut(LendingItem input) {
|
||||
if (bookCounter < 8) {
|
||||
list[bookCounter] = input;
|
||||
bookCounter++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns and item for members
|
||||
* @param input The item to be returned
|
||||
* @return Boolean if the item was returned
|
||||
*/
|
||||
public boolean returnItem(LendingItem input) {
|
||||
boolean success = false;
|
||||
for (int i = 0; i < bookCounter; i++) {
|
||||
if (list[i] == input) {
|
||||
list[i] = list[bookCounter - 1];
|
||||
bookCounter--;
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of member
|
||||
* @return The name of member
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the room of member
|
||||
* @return The room of member
|
||||
*/
|
||||
public int getRoomNumber() {
|
||||
return room;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the phone number of member
|
||||
* @return The phone number of member
|
||||
*/
|
||||
public String getPhoneNumber() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the phone of member
|
||||
* @param phone
|
||||
*/
|
||||
public void setPhoneNumber(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the membership number of member
|
||||
* @return The membership number of member
|
||||
*/
|
||||
public int getMembershipNumber() {
|
||||
return membership;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
/**
|
||||
* This class holds info for short term members
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
|
||||
public class ShortTermResidentMember extends ResidentMember {
|
||||
private final String departureDate;
|
||||
|
||||
/**
|
||||
* Constructor for short term members
|
||||
* @param name Name of short term member
|
||||
* @param room Room of short term member
|
||||
* @param phone Phone of short term member
|
||||
* @param departureDate The departure date of short term members
|
||||
*/
|
||||
public ShortTermResidentMember(String name, int room, String phone, String departureDate) {
|
||||
super(name, room, phone);
|
||||
this.departureDate = departureDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to sign out items for short term members
|
||||
* @param input The item to be signed out
|
||||
* @return Boolean for if the item was signed out or not
|
||||
*/
|
||||
public boolean signOut(LendingItem input) {
|
||||
if (input.isBookClubRecommended()) {
|
||||
super.signOut(input);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the departure date for short term members
|
||||
* @return The departure date
|
||||
*/
|
||||
public String getDepartureDate() {
|
||||
return departureDate;
|
||||
}
|
||||
|
||||
}
|
BIN
Submissions/CS1073 As12/INfo/CS1073-As12-Files.zip
Normal file
@ -0,0 +1,298 @@
|
||||
import java.text.NumberFormat;
|
||||
|
||||
/**
|
||||
Test driver class to test the ResidentMember, ShortTermResidentMember
|
||||
and LendingItem classes.
|
||||
*/
|
||||
public class LendingLibraryTestDriver {
|
||||
public static void main(String[] args) {
|
||||
NumberFormat formatter = NumberFormat.getCurrencyInstance();
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #1: Create a Tenant object & test accessors");
|
||||
ResidentMember maria = new ResidentMember("Maria Melani", 152,"555-1234");
|
||||
System.out.println("Name: " + maria.getName()
|
||||
+ "\nAppt #: " + maria.getRoomNumber()
|
||||
+ "\nPhone: " + maria.getPhoneNumber()
|
||||
+ "\nMember #: " + maria.getMembershipNumber());
|
||||
|
||||
LendingItem[] mariasItemList = maria.getSignedOutItems();
|
||||
if (mariasItemList.length == 0) {
|
||||
System.out.println("Correct result: Maria has zero lending items.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria has more than zero lending items.");
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println
|
||||
("\n*** Test case #2: Create a ShortTermResidentMember object & test accessors");
|
||||
ShortTermResidentMember tommy = new ShortTermResidentMember("Tommy Black",
|
||||
302,
|
||||
"555-4321",
|
||||
"Dec. 15, 2020");
|
||||
System.out.println("Name: " + tommy.getName()
|
||||
+ "\nAppt #: " + tommy.getRoomNumber()
|
||||
+ "\nPhone: " + tommy.getPhoneNumber()
|
||||
+ "\nMember #: " + tommy.getMembershipNumber()
|
||||
+ "\nDeparts: " + tommy.getDepartureDate());
|
||||
|
||||
LendingItem[] tommysItemList = tommy.getSignedOutItems();
|
||||
if (tommysItemList.length == 0) {
|
||||
System.out.println("Correct result: Tommy has zero lending items.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Tommy has more than zero lending items.");
|
||||
}
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #3: Automatically generate a member number");
|
||||
ResidentMember testMember = new ResidentMember("Test", 1, "455-1111");
|
||||
if (testMember.getMembershipNumber() == 10002) {
|
||||
System.out.println("Correct result: 10002 is the correct member number.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Invalid member number: " +
|
||||
testMember.getMembershipNumber());
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println
|
||||
("\n*** Test case #4: Create a LendingItem object & test accessors");
|
||||
|
||||
// Create several LendingItem objects and test the first one
|
||||
final int MAXITEMS = 8;
|
||||
LendingItem[] testItemList = new LendingItem[MAXITEMS + 1];
|
||||
String[] testItemDescription = {"Lean In - Sheryl Sandberg - BOOK",
|
||||
"Maclean's - 23/11/2020 - MAGAZINE",
|
||||
"Headstrong: 52 Women Who Changed Science and the World - Rachel Swaby - BOOK",
|
||||
"The Time Machine - H.G. Wells - BOOK",
|
||||
"The Confidence Code - Katty Kay & Claire Shipman - BOOK",
|
||||
"The Immortal Life of Henrietta Lacks - Rebecca Skloot - BOOK",
|
||||
"Grit - Angela Duckworth - BOOK",
|
||||
"Yoga Journal - October 2020 - MAGAZINE",
|
||||
"Wild - Cheryl Strayed - BOOK"};
|
||||
for (int i=0; i<=MAXITEMS; i++) {
|
||||
testItemList[i] = new LendingItem(testItemDescription[i],
|
||||
10.00 + (i * 0.25), // Made-up prices
|
||||
(i%2) == 0); // Every 2nd item is recommended
|
||||
} // end for loop
|
||||
|
||||
System.out.println("Description: " + testItemList[0].getDescription()
|
||||
+ "\nOrig. Price: " + formatter.format(testItemList[0].getPrice())
|
||||
+ "\nBook Club Recommended: " + testItemList[0].isBookClubRecommended());
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #5: Change phone number for both Resident types");
|
||||
String testPhone1 = "555-5566";
|
||||
String testPhone2 = "555-1212";
|
||||
maria.setPhoneNumber(testPhone1);
|
||||
tommy.setPhoneNumber(testPhone2);
|
||||
|
||||
if (maria.getPhoneNumber().equals(testPhone1)) {
|
||||
System.out.println("Correct result: Maria's phone number successfully changed.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria's phone number is incorrect: "
|
||||
+ maria.getPhoneNumber());
|
||||
}
|
||||
|
||||
if (tommy.getPhoneNumber().equals(testPhone2)) {
|
||||
System.out.println("Correct result: Tommy's phone number successfully changed.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Tommy's phone number is incorrect: "
|
||||
+ tommy.getPhoneNumber());
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #6: Sign out one LendingItem");
|
||||
|
||||
if(maria.signOut(testItemList[0])) {
|
||||
System.out.println("Correct result: Maria signed out an item successfully.");
|
||||
mariasItemList = maria.getSignedOutItems();
|
||||
if (mariasItemList.length == 1) {
|
||||
System.out.println("Correct result: Maria has one lending item.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria has other than one lending item.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria was unable to sign out an item.");
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #7: Sign out multiple LendingItems");
|
||||
|
||||
boolean successfulSignOut = true;
|
||||
for(int i=1; i<=2; i++) {
|
||||
successfulSignOut = successfulSignOut && maria.signOut(testItemList[i]);
|
||||
}
|
||||
if (successfulSignOut) {
|
||||
System.out.println("Correct result: Maria signed out two more items successfully.");
|
||||
mariasItemList = maria.getSignedOutItems();
|
||||
if (mariasItemList.length == 3) {
|
||||
System.out.println("Correct result: Maria has three lending items.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria has other than three lending items.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria was unable to sign out two more items.");
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #8: Intentionally exceed the sign out limit");
|
||||
|
||||
for(int i=3; i<MAXITEMS; i++) {
|
||||
maria.signOut(testItemList[i]);
|
||||
}
|
||||
if (!maria.signOut(testItemList[MAXITEMS])) {
|
||||
System.out.println("Correct result: Maria was prevented from signing out more than "
|
||||
+ MAXITEMS + " lending items.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria was able to sign out more than "
|
||||
+ MAXITEMS + " lending items.");
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println
|
||||
("\n*** Test case #9: A short-term resident tries to sign out a recommended item");
|
||||
|
||||
LendingItem tommysItem = null;
|
||||
|
||||
for(int i=0; i<2; i++) {
|
||||
if(tommy.signOut(testItemList[i])) {
|
||||
tommysItem = testItemList[i]; // Remember this for Test case #10
|
||||
if (testItemList[i].isBookClubRecommended()) {
|
||||
System.out.println
|
||||
(">> ERROR: Tommy was able to sign out a book club recommended item.");
|
||||
}
|
||||
else {
|
||||
System.out.println
|
||||
("Correct result: Tommy was able to sign out a non recommended item.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (testItemList[i].isBookClubRecommended()) {
|
||||
System.out.println
|
||||
("Correct result: Tommy was prevented from signing out a recommended item.");
|
||||
}
|
||||
else {
|
||||
System.out.println
|
||||
(">> ERROR: Tommy was prevented from signing out a non recommended item.");
|
||||
}
|
||||
}
|
||||
}//end for
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println
|
||||
("\n*** Test case #10: Returning the only item that was signed out");
|
||||
|
||||
int tommyListLength = tommy.getSignedOutItems().length;
|
||||
|
||||
if(tommy.returnItem(tommysItem)) {
|
||||
System.out.println("Correct result: Tommy's item was successfully returned.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Tommy's item was not successfully returned.");
|
||||
}
|
||||
|
||||
if(tommy.getSignedOutItems().length == tommyListLength - 1) {
|
||||
System.out.println("Correct result: Tommy's list length changed appropriately.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Tommy's list length did not change appropriately.");
|
||||
}
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #11: Returning an item that was not signed out");
|
||||
|
||||
if(tommy.returnItem(testItemList[3])) {
|
||||
System.out.println(">> ERROR: Returned an item that was not signed out.");
|
||||
}
|
||||
else {
|
||||
System.out.println
|
||||
("Correct result: Unsuccessful attempt to return an item that was not signed out.");
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println
|
||||
("\n*** Test case #12: Returning the first item that was signed out");
|
||||
|
||||
int mariaListLength = maria.getSignedOutItems().length;
|
||||
|
||||
if(maria.returnItem(testItemList[0])) {
|
||||
System.out.println("Correct result: Maria's first item was successfully returned.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria's first item was not successfully returned.");
|
||||
}
|
||||
|
||||
if(maria.getSignedOutItems().length == mariaListLength - 1) {
|
||||
System.out.println("Correct result: Maria's list length changed appropriately.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria's list length did not change appropriately.");
|
||||
}
|
||||
|
||||
System.out.println
|
||||
("\nConfirm return: Lean In should be absent from the following list:");
|
||||
mariasItemList = maria.getSignedOutItems();
|
||||
for (int i=0; i < mariasItemList.length; i++) {
|
||||
System.out.println(mariasItemList[i].getDescription());
|
||||
}
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n*** Test case #13: Returning a mid-list item");
|
||||
|
||||
mariaListLength = maria.getSignedOutItems().length;
|
||||
|
||||
if(maria.returnItem(testItemList[3])) {
|
||||
System.out.println("Correct result: The Time Machine was successfully returned.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: The Time Machine was not successfully returned.");
|
||||
}
|
||||
|
||||
if(maria.getSignedOutItems().length == mariaListLength - 1) {
|
||||
System.out.println("Correct result: Maria's list length changed appropriately.");
|
||||
}
|
||||
else {
|
||||
System.out.println(">> ERROR: Maria's list length did not change appropriately.");
|
||||
}
|
||||
|
||||
System.out.println
|
||||
("\nConfirm return: The Time Machine should be absent from the following list:");
|
||||
mariasItemList = maria.getSignedOutItems();
|
||||
for (int i=0; i < mariasItemList.length; i++) {
|
||||
System.out.println(mariasItemList[i].getDescription());
|
||||
}
|
||||
|
||||
//*********************************************************************************
|
||||
|
||||
System.out.println("\n************* End of Test Cases ***************\n");
|
||||
|
||||
} // end main method
|
||||
|
||||
|
||||
} // end LendingTestDriver class
|
13
Submissions/CS1073 As12/INfo/CS1073-As12-Files/cypherText.in
Normal file
@ -0,0 +1,13 @@
|
||||
5
|
||||
rrrcfieeeindtsndedogxceht
|
||||
3
|
||||
kcnanaehrduowahtrelilngaaxyttnipsivofct
|
||||
7
|
||||
mehnteeoumtaotpelunosisrcinmnozbozktageshsoeorlrpeowtnuo
|
||||
4
|
||||
xdutenkyeevnotomhooxxnyioweuoerymessngot
|
||||
6
|
||||
xnodithbonttchonyecneieejplmaompilro
|
||||
2
|
||||
aoerniewlltnroiryounfmawibeargadct
|
||||
0
|
BIN
Submissions/CS1073 As12/INfo/CS1073-Assign12-F2020.pdf
Normal file
BIN
Submissions/CS1073 As12/IsaacShoebottom_As12_Archive.zip
Normal file
BIN
Submissions/CS1073 As12/IsaacShoebottom_As12_Report.docx
Normal file
BIN
Submissions/CS1073 As12/IsaacShoebottom_As12_Report.pdf
Normal file
BIN
Submissions/CS1073 As2/IsaacShoebottom_As2_Archive.zip
Normal file
BIN
Submissions/CS1073 As2/IsaacShoebottom_As2_Report.pdf
Normal file
BIN
Submissions/CS1073 As3/CS1073-As3-F2020-StartingFile.zip
Normal file
BIN
Submissions/CS1073 As3/CS1073-Assign3-F2020.pdf
Normal file
BIN
Submissions/CS1073 As3/IsaacShoebottom_As3_Archive.zip
Normal file
@ -0,0 +1,8 @@
|
||||
car1:
|
||||
Model: 2020 Honda Civic LX Automatic
|
||||
Fuel Efficiency: 7.1 L/100km
|
||||
Gas Left: 34.6312 L
|
||||
car2:
|
||||
Model: 2020 Ford F-150 XLT Automatic
|
||||
Fuel Efficiency: 10.7 L/100km
|
||||
Gas Left: 75.56384 L
|
@ -0,0 +1,94 @@
|
||||
/**
|
||||
This class represents a car.
|
||||
@author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
public class Car {
|
||||
|
||||
/**
|
||||
The model of the car (e.g. "Hyundai Accent").
|
||||
*/
|
||||
private final String model;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
The fuel efficiency of the car (in liters/100 km).
|
||||
*/
|
||||
private final double fuelEfficiency;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
The amount of gas in the tank (in liters).
|
||||
*/
|
||||
private double tankFilledVolume;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method constructs a car with the specified model and fuel efficiency.
|
||||
The gas tank is initially empty.
|
||||
@param modelIn the model of the car.
|
||||
@param fuelEfficiencyIn the fuel efficiency of the car (in liters/100 km).
|
||||
*/
|
||||
public Car(String modelIn, double fuelEfficiencyIn){
|
||||
this.model = modelIn;
|
||||
this.fuelEfficiency = fuelEfficiencyIn;
|
||||
this.tankFilledVolume = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method retrieves the model of the car.
|
||||
@return the model of the car.
|
||||
*/
|
||||
public String getModel(){
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method retrieves the fuel efficiency of the car.
|
||||
@return the fuel efficiency of the car (in liters/100 km).
|
||||
*/
|
||||
public double getFuelEfficiency(){
|
||||
return fuelEfficiency;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method retrieves the amount of gas in the tank.
|
||||
@return the amount of gas in the tank (in litres).
|
||||
*/
|
||||
public double getTankVolume(){
|
||||
return tankFilledVolume;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method drives the car for a certain distance, reducing the gas in the tank.
|
||||
You may assume that the car will never consume more than the available gas
|
||||
(you do NOT need to include a check for this in your solution).
|
||||
@param distance the distance driven (in km).
|
||||
*/
|
||||
public void driveCar(double distance){
|
||||
tankFilledVolume = tankFilledVolume - ((distance/100) * fuelEfficiency);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
This method adds gas to the tank.
|
||||
@param gasAdded the volume of gas added to the tank (in liters).
|
||||
*/
|
||||
public void addGas(double gasAdded){
|
||||
tankFilledVolume =+ gasAdded;
|
||||
}
|
||||
|
||||
|
||||
|
||||
} //end Car
|
@ -0,0 +1,29 @@
|
||||
/**
|
||||
@author Isaac Shoebottom (3429069)
|
||||
**/
|
||||
public class CarDriver {
|
||||
public static void main(String[] args){
|
||||
driveCars();
|
||||
}
|
||||
|
||||
private static void driveCars(){
|
||||
Car car1 = new Car("2020 Honda Civic LX Automatic", 7.1);
|
||||
Car car2 = new Car("2020 Ford F-150 XLT Automatic", 10.7);
|
||||
|
||||
car1.addGas(46.9);
|
||||
car2.addGas(87.0);
|
||||
|
||||
car1.driveCar(172.8);
|
||||
car2.driveCar(106.88);
|
||||
|
||||
System.out.println("car1:" +
|
||||
"\n Model: " + car1.getModel() +
|
||||
"\n Fuel Efficiency: " + car1.getFuelEfficiency() + " L/100km" +
|
||||
"\n Gas Left: " + car1.getTankVolume() + " L");
|
||||
|
||||
System.out.println("car2:" +
|
||||
"\n Model: " + car2.getModel() +
|
||||
"\n Fuel Efficiency: " + car2.getFuelEfficiency() + " L/100km" +
|
||||
"\n Gas Left: " + car2.getTankVolume() + " L");
|
||||
}
|
||||
}
|
@ -0,0 +1,434 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>ActivityTab</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ActivityTab";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?ActivityTab.html" target="_top">Frames</a></li>
|
||||
<li><a href="ActivityTab.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h2 title="Class ActivityTab" class="title">Class ActivityTab</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>ActivityTab</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">ActivityTab</span>
|
||||
extends java.lang.Object</pre>
|
||||
<dl>
|
||||
<dt><span class="simpleTagLabel">Author:</span></dt>
|
||||
<dd>Isaac Shoebottom (3429069)</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>private double</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#amountOwed">amountOwed</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>private java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#name">name</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>private int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#roomNumber">roomNumber</a></span></code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="ActivityTab.html#ActivityTab-java.lang.String-int-double-">ActivityTab</a></span>(java.lang.String nameIn,
|
||||
int roomNumberIn,
|
||||
double amountOwedIn)</code>
|
||||
<div class="block">Make the class to hold the information for the name, room number and amount owed</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#addAmountOwed-double-">addAmountOwed</a></span>(double activityPrice)</code>
|
||||
<div class="block">Accumulator to add the amount that the person owes to their total</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>double</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#getAmountOwed--">getAmountOwed</a></span>()</code>
|
||||
<div class="block">Getter method to get the amount owed</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#getName--">getName</a></span>()</code>
|
||||
<div class="block">Getter method to get the name of person on tab</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#getRoomNumber--">getRoomNumber</a></span>()</code>
|
||||
<div class="block">Getter to get the room number of person on tab</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>double</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="ActivityTab.html#processTip-double-">processTip</a></span>(double percentageAmount)</code>
|
||||
<div class="block">Calculate the tip with the percentage they wish to use</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Detail</h3>
|
||||
<a name="name">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>name</h4>
|
||||
<pre>private final java.lang.String name</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="roomNumber">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>roomNumber</h4>
|
||||
<pre>private final int roomNumber</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="amountOwed">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>amountOwed</h4>
|
||||
<pre>private double amountOwed</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="ActivityTab-java.lang.String-int-double-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>ActivityTab</h4>
|
||||
<pre>public ActivityTab(java.lang.String nameIn,
|
||||
int roomNumberIn,
|
||||
double amountOwedIn)</pre>
|
||||
<div class="block">Make the class to hold the information for the name, room number and amount owed</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>nameIn</code> - The name of the person to be put on file</dd>
|
||||
<dd><code>roomNumberIn</code> - The room number the person on file is to be put in</dd>
|
||||
<dd><code>amountOwedIn</code> - The amount owed when initializing the class (Always 0.00 as of now, can be changed for modularity)</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="getAmountOwed--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getAmountOwed</h4>
|
||||
<pre>public double getAmountOwed()</pre>
|
||||
<div class="block">Getter method to get the amount owed</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>amountOwed The amount of money the person owes at the time called</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getName--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getName</h4>
|
||||
<pre>public java.lang.String getName()</pre>
|
||||
<div class="block">Getter method to get the name of person on tab</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>name The name of the person on file</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getRoomNumber--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getRoomNumber</h4>
|
||||
<pre>public int getRoomNumber()</pre>
|
||||
<div class="block">Getter to get the room number of person on tab</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>roomNumber The room number of the person on file</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addAmountOwed-double-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>addAmountOwed</h4>
|
||||
<pre>public void addAmountOwed(double activityPrice)</pre>
|
||||
<div class="block">Accumulator to add the amount that the person owes to their total</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>activityPrice</code> - The price of the activity</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="processTip-double-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>processTip</h4>
|
||||
<pre>public double processTip(double percentageAmount)</pre>
|
||||
<div class="block">Calculate the tip with the percentage they wish to use</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>percentageAmount</code> - The percentage amount (e.g. 18% = 18)</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>A double representing the tip the person will pay</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?ActivityTab.html" target="_top">Frames</a></li>
|
||||
<li><a href="ActivityTab.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>All Classes</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar">All Classes</h1>
|
||||
<div class="indexContainer">
|
||||
<ul>
|
||||
<li><a href="ActivityTab.html" title="class in <Unnamed>" target="classFrame">ActivityTab</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>All Classes</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar">All Classes</h1>
|
||||
<div class="indexContainer">
|
||||
<ul>
|
||||
<li><a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>Constant Field Values</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Constant Field Values";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
|
||||
<li><a href="constant-values.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Constant Field Values" class="title">Constant Field Values</h1>
|
||||
<h2 title="Contents">Contents</h2>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
|
||||
<li><a href="constant-values.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>Deprecated List</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Deprecated List";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li class="navBarCell1Rev">Deprecated</li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
|
||||
<li><a href="deprecated-list.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Deprecated API" class="title">Deprecated API</h1>
|
||||
<h2 title="Contents">Contents</h2>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li class="navBarCell1Rev">Deprecated</li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
|
||||
<li><a href="deprecated-list.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,217 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>API Help</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="API Help";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li class="navBarCell1Rev">Help</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?help-doc.html" target="_top">Frames</a></li>
|
||||
<li><a href="help-doc.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">How This API Document Is Organized</h1>
|
||||
<div class="subTitle">This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.</div>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h2>Package</h2>
|
||||
<p>Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:</p>
|
||||
<ul>
|
||||
<li>Interfaces (italic)</li>
|
||||
<li>Classes</li>
|
||||
<li>Enums</li>
|
||||
<li>Exceptions</li>
|
||||
<li>Errors</li>
|
||||
<li>Annotation Types</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Class/Interface</h2>
|
||||
<p>Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:</p>
|
||||
<ul>
|
||||
<li>Class inheritance diagram</li>
|
||||
<li>Direct Subclasses</li>
|
||||
<li>All Known Subinterfaces</li>
|
||||
<li>All Known Implementing Classes</li>
|
||||
<li>Class/interface declaration</li>
|
||||
<li>Class/interface description</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>Nested Class Summary</li>
|
||||
<li>Field Summary</li>
|
||||
<li>Constructor Summary</li>
|
||||
<li>Method Summary</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>Field Detail</li>
|
||||
<li>Constructor Detail</li>
|
||||
<li>Method Detail</li>
|
||||
</ul>
|
||||
<p>Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Annotation Type</h2>
|
||||
<p>Each annotation type has its own separate page with the following sections:</p>
|
||||
<ul>
|
||||
<li>Annotation Type declaration</li>
|
||||
<li>Annotation Type description</li>
|
||||
<li>Required Element Summary</li>
|
||||
<li>Optional Element Summary</li>
|
||||
<li>Element Detail</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Enum</h2>
|
||||
<p>Each enum has its own separate page with the following sections:</p>
|
||||
<ul>
|
||||
<li>Enum declaration</li>
|
||||
<li>Enum description</li>
|
||||
<li>Enum Constant Summary</li>
|
||||
<li>Enum Constant Detail</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Tree (Class Hierarchy)</h2>
|
||||
<p>There is a <a href="overview-tree.html">Class Hierarchy</a> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.</p>
|
||||
<ul>
|
||||
<li>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.</li>
|
||||
<li>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Deprecated API</h2>
|
||||
<p>The <a href="deprecated-list.html">Deprecated API</a> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Index</h2>
|
||||
<p>The <a href="index-all.html">Index</a> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Prev/Next</h2>
|
||||
<p>These links take you to the next or previous class, interface, package, or related page.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Frames/No Frames</h2>
|
||||
<p>These links show and hide the HTML frames. All pages are available with or without frames.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>All Classes</h2>
|
||||
<p>The <a href="allclasses-noframe.html">All Classes</a> link shows all classes and interfaces except non-static nested types.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Serialized Form</h2>
|
||||
<p>Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.</p>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<h2>Constant Field Values</h2>
|
||||
<p>The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="emphasizedPhrase">This help file applies to API documentation generated using the standard doclet.</span></div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li class="navBarCell1Rev">Help</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?help-doc.html" target="_top">Frames</a></li>
|
||||
<li><a href="help-doc.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,179 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>Index</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Index";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?index-all.html" target="_top">Frames</a></li>
|
||||
<li><a href="index-all.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="#I:A">A</a> <a href="#I:G">G</a> <a href="#I:N">N</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a name="I:A">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">A</h2>
|
||||
<dl>
|
||||
<dt><a href="ActivityTab.html" title="class in <Unnamed>"><span class="typeNameLink">ActivityTab</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#ActivityTab-java.lang.String-int-double-">ActivityTab(String, int, double)</a></span> - Constructor for class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Make the class to hold the information for the name, room number and amount owed</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#addAmountOwed-double-">addAmountOwed(double)</a></span> - Method in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Accumulator to add the amount that the person owes to their total</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#amountOwed">amountOwed</a></span> - Variable in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a name="I:G">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">G</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#getAmountOwed--">getAmountOwed()</a></span> - Method in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Getter method to get the amount owed</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#getName--">getName()</a></span> - Method in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Getter method to get the name of person on tab</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#getRoomNumber--">getRoomNumber()</a></span> - Method in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Getter to get the room number of person on tab</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:N">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">N</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#name">name</a></span> - Variable in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a name="I:P">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">P</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#processTip-double-">processTip(double)</a></span> - Method in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd>
|
||||
<div class="block">Calculate the tip with the percentage they wish to use</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:R">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">R</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="ActivityTab.html#roomNumber">roomNumber</a></span> - Variable in class <a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="#I:A">A</a> <a href="#I:G">G</a> <a href="#I:N">N</a> <a href="#I:P">P</a> <a href="#I:R">R</a> </div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="overview-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?index-all.html" target="_top">Frames</a></li>
|
||||
<li><a href="index-all.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,72 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>Generated Documentation (Untitled)</title>
|
||||
<script type="text/javascript">
|
||||
tmpTargetPage = "" + window.location.search;
|
||||
if (tmpTargetPage != "" && tmpTargetPage != "undefined")
|
||||
tmpTargetPage = tmpTargetPage.substring(1);
|
||||
if (tmpTargetPage.indexOf(":") != -1 || (tmpTargetPage != "" && !validURL(tmpTargetPage)))
|
||||
tmpTargetPage = "undefined";
|
||||
targetPage = tmpTargetPage;
|
||||
function validURL(url) {
|
||||
try {
|
||||
url = decodeURIComponent(url);
|
||||
}
|
||||
catch (error) {
|
||||
return false;
|
||||
}
|
||||
var pos = url.indexOf(".html");
|
||||
if (pos == -1 || pos != url.length - 5)
|
||||
return false;
|
||||
var allowNumber = false;
|
||||
var allowSep = false;
|
||||
var seenDot = false;
|
||||
for (var i = 0; i < url.length - 5; i++) {
|
||||
var ch = url.charAt(i);
|
||||
if ('a' <= ch && ch <= 'z' ||
|
||||
'A' <= ch && ch <= 'Z' ||
|
||||
ch == '$' ||
|
||||
ch == '_' ||
|
||||
ch.charCodeAt(0) > 127) {
|
||||
allowNumber = true;
|
||||
allowSep = true;
|
||||
} else if ('0' <= ch && ch <= '9'
|
||||
|| ch == '-') {
|
||||
if (!allowNumber)
|
||||
return false;
|
||||
} else if (ch == '/' || ch == '.') {
|
||||
if (!allowSep)
|
||||
return false;
|
||||
allowNumber = false;
|
||||
allowSep = false;
|
||||
if (ch == '.')
|
||||
seenDot = true;
|
||||
if (ch == '/' && seenDot)
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function loadFrames() {
|
||||
if (targetPage != "" && targetPage != "undefined")
|
||||
top.classFrame.location = top.targetPage;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<frameset cols="20%,80%" title="Documentation frame" onload="top.loadFrames()">
|
||||
<frame src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
|
||||
<frame src="ActivityTab.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
|
||||
<noframes>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<h2>Frame Alert</h2>
|
||||
<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="ActivityTab.html">Non-frame version</a>.</p>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title>Class Hierarchy</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Class Hierarchy";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="overview-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For All Packages</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle"><a href="ActivityTab.html" title="class in <Unnamed>"><span class="typeNameLink">ActivityTab</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="overview-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title><Unnamed></title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar"><a href="package-summary.html" target="classFrame"><Unnamed></a></h1>
|
||||
<div class="indexContainer">
|
||||
<h2 title="Classes">Classes</h2>
|
||||
<ul title="Classes">
|
||||
<li><a href="ActivityTab.html" title="class in <Unnamed>" target="classFrame">ActivityTab</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,127 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Package</li>
|
||||
<li>Next Package</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Package" class="title">Package <Unnamed></h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||||
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Class</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="ActivityTab.html" title="class in <Unnamed>">ActivityTab</a></td>
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Package</li>
|
||||
<li>Next Package</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_265) on Fri Oct 02 08:51:18 ADT 2020 -->
|
||||
<title> Class Hierarchy</title>
|
||||
<meta name="date" content="2020-10-02">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title=" Class Hierarchy";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package <Unnamed></h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle"><a href="ActivityTab.html" title="class in <Unnamed>"><span class="typeNameLink">ActivityTab</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="index-all.html">Index</a></li>
|
||||
<li><a href="help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev</li>
|
||||
<li>Next</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="index.html?package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,30 @@
|
||||
function show(type)
|
||||
{
|
||||
count = 0;
|
||||
for (var key in methods) {
|
||||
var row = document.getElementById(key);
|
||||
if ((methods[key] & type) != 0) {
|
||||
row.style.display = '';
|
||||
row.className = (count++ % 2) ? rowColor : altColor;
|
||||
}
|
||||
else
|
||||
row.style.display = 'none';
|
||||
}
|
||||
updateTabs(type);
|
||||
}
|
||||
|
||||
function updateTabs(type)
|
||||
{
|
||||
for (var value in tabs) {
|
||||
var sNode = document.getElementById(tabs[value][0]);
|
||||
var spanNode = sNode.firstChild;
|
||||
if (value == type) {
|
||||
sNode.className = activeTableTab;
|
||||
spanNode.innerHTML = tabs[value][1];
|
||||
}
|
||||
else {
|
||||
sNode.className = tableTab;
|
||||
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,574 @@
|
||||
/* Javadoc style sheet */
|
||||
/*
|
||||
Overall document style
|
||||
*/
|
||||
|
||||
@import url('resources/fonts/dejavu.css');
|
||||
|
||||
body {
|
||||
background-color:#ffffff;
|
||||
color:#353833;
|
||||
font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
|
||||
font-size:14px;
|
||||
margin:0;
|
||||
}
|
||||
a:link, a:visited {
|
||||
text-decoration:none;
|
||||
color:#4A6782;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
text-decoration:none;
|
||||
color:#bb7a2a;
|
||||
}
|
||||
a:active {
|
||||
text-decoration:none;
|
||||
color:#4A6782;
|
||||
}
|
||||
a[name] {
|
||||
color:#353833;
|
||||
}
|
||||
a[name]:hover {
|
||||
text-decoration:none;
|
||||
color:#353833;
|
||||
}
|
||||
pre {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
}
|
||||
h1 {
|
||||
font-size:20px;
|
||||
}
|
||||
h2 {
|
||||
font-size:18px;
|
||||
}
|
||||
h3 {
|
||||
font-size:16px;
|
||||
font-style:italic;
|
||||
}
|
||||
h4 {
|
||||
font-size:13px;
|
||||
}
|
||||
h5 {
|
||||
font-size:12px;
|
||||
}
|
||||
h6 {
|
||||
font-size:11px;
|
||||
}
|
||||
ul {
|
||||
list-style-type:disc;
|
||||
}
|
||||
code, tt {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
padding-top:4px;
|
||||
margin-top:8px;
|
||||
line-height:1.4em;
|
||||
}
|
||||
dt code {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
padding-top:4px;
|
||||
}
|
||||
table tr td dt code {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
vertical-align:top;
|
||||
padding-top:4px;
|
||||
}
|
||||
sup {
|
||||
font-size:8px;
|
||||
}
|
||||
/*
|
||||
Document title and Copyright styles
|
||||
*/
|
||||
.clear {
|
||||
clear:both;
|
||||
height:0px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.aboutLanguage {
|
||||
float:right;
|
||||
padding:0px 21px;
|
||||
font-size:11px;
|
||||
z-index:200;
|
||||
margin-top:-9px;
|
||||
}
|
||||
.legalCopy {
|
||||
margin-left:.5em;
|
||||
}
|
||||
.bar a, .bar a:link, .bar a:visited, .bar a:active {
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
.bar a:hover, .bar a:focus {
|
||||
color:#bb7a2a;
|
||||
}
|
||||
.tab {
|
||||
background-color:#0066FF;
|
||||
color:#ffffff;
|
||||
padding:8px;
|
||||
width:5em;
|
||||
font-weight:bold;
|
||||
}
|
||||
/*
|
||||
Navigation bar styles
|
||||
*/
|
||||
.bar {
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
padding:.8em .5em .4em .8em;
|
||||
height:auto;/*height:1.8em;*/
|
||||
font-size:11px;
|
||||
margin:0;
|
||||
}
|
||||
.topNav {
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
float:left;
|
||||
padding:0;
|
||||
width:100%;
|
||||
clear:right;
|
||||
height:2.8em;
|
||||
padding-top:10px;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.bottomNav {
|
||||
margin-top:10px;
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
float:left;
|
||||
padding:0;
|
||||
width:100%;
|
||||
clear:right;
|
||||
height:2.8em;
|
||||
padding-top:10px;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.subNav {
|
||||
background-color:#dee3e9;
|
||||
float:left;
|
||||
width:100%;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.subNav div {
|
||||
clear:left;
|
||||
float:left;
|
||||
padding:0 0 5px 6px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
ul.navList, ul.subNavList {
|
||||
float:left;
|
||||
margin:0 25px 0 0;
|
||||
padding:0;
|
||||
}
|
||||
ul.navList li{
|
||||
list-style:none;
|
||||
float:left;
|
||||
padding: 5px 6px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
ul.subNavList li{
|
||||
list-style:none;
|
||||
float:left;
|
||||
}
|
||||
.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.topNav a:hover, .bottomNav a:hover {
|
||||
text-decoration:none;
|
||||
color:#bb7a2a;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.navBarCell1Rev {
|
||||
background-color:#F8981D;
|
||||
color:#253441;
|
||||
margin: auto 5px;
|
||||
}
|
||||
.skipNav {
|
||||
position:absolute;
|
||||
top:auto;
|
||||
left:-9999px;
|
||||
overflow:hidden;
|
||||
}
|
||||
/*
|
||||
Page header and footer styles
|
||||
*/
|
||||
.header, .footer {
|
||||
clear:both;
|
||||
margin:0 20px;
|
||||
padding:5px 0 0 0;
|
||||
}
|
||||
.indexHeader {
|
||||
margin:10px;
|
||||
position:relative;
|
||||
}
|
||||
.indexHeader span{
|
||||
margin-right:15px;
|
||||
}
|
||||
.indexHeader h1 {
|
||||
font-size:13px;
|
||||
}
|
||||
.title {
|
||||
color:#2c4557;
|
||||
margin:10px 0;
|
||||
}
|
||||
.subTitle {
|
||||
margin:5px 0 0 0;
|
||||
}
|
||||
.header ul {
|
||||
margin:0 0 15px 0;
|
||||
padding:0;
|
||||
}
|
||||
.footer ul {
|
||||
margin:20px 0 5px 0;
|
||||
}
|
||||
.header ul li, .footer ul li {
|
||||
list-style:none;
|
||||
font-size:13px;
|
||||
}
|
||||
/*
|
||||
Heading styles
|
||||
*/
|
||||
div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
|
||||
background-color:#dee3e9;
|
||||
border:1px solid #d0d9e0;
|
||||
margin:0 0 6px -8px;
|
||||
padding:7px 5px;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||
background-color:#dee3e9;
|
||||
border:1px solid #d0d9e0;
|
||||
margin:0 0 6px -8px;
|
||||
padding:7px 5px;
|
||||
}
|
||||
ul.blockList ul.blockList li.blockList h3 {
|
||||
padding:0;
|
||||
margin:15px 0;
|
||||
}
|
||||
ul.blockList li.blockList h2 {
|
||||
padding:0px 0 20px 0;
|
||||
}
|
||||
/*
|
||||
Page layout container styles
|
||||
*/
|
||||
.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
|
||||
clear:both;
|
||||
padding:10px 20px;
|
||||
position:relative;
|
||||
}
|
||||
.indexContainer {
|
||||
margin:10px;
|
||||
position:relative;
|
||||
font-size:12px;
|
||||
}
|
||||
.indexContainer h2 {
|
||||
font-size:13px;
|
||||
padding:0 0 3px 0;
|
||||
}
|
||||
.indexContainer ul {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
.indexContainer ul li {
|
||||
list-style:none;
|
||||
padding-top:2px;
|
||||
}
|
||||
.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
margin:10px 0 0 0;
|
||||
color:#4E4E4E;
|
||||
}
|
||||
.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
|
||||
margin:5px 0 10px 0px;
|
||||
font-size:14px;
|
||||
font-family:'DejaVu Sans Mono',monospace;
|
||||
}
|
||||
.serializedFormContainer dl.nameValue dt {
|
||||
margin-left:1px;
|
||||
font-size:1.1em;
|
||||
display:inline;
|
||||
font-weight:bold;
|
||||
}
|
||||
.serializedFormContainer dl.nameValue dd {
|
||||
margin:0 0 0 1px;
|
||||
font-size:1.1em;
|
||||
display:inline;
|
||||
}
|
||||
/*
|
||||
List styles
|
||||
*/
|
||||
ul.horizontal li {
|
||||
display:inline;
|
||||
font-size:0.9em;
|
||||
}
|
||||
ul.inheritance {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
ul.inheritance li {
|
||||
display:inline;
|
||||
list-style:none;
|
||||
}
|
||||
ul.inheritance li ul.inheritance {
|
||||
margin-left:15px;
|
||||
padding-left:15px;
|
||||
padding-top:1px;
|
||||
}
|
||||
ul.blockList, ul.blockListLast {
|
||||
margin:10px 0 10px 0;
|
||||
padding:0;
|
||||
}
|
||||
ul.blockList li.blockList, ul.blockListLast li.blockList {
|
||||
list-style:none;
|
||||
margin-bottom:15px;
|
||||
line-height:1.4;
|
||||
}
|
||||
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
|
||||
padding:0px 20px 5px 10px;
|
||||
border:1px solid #ededed;
|
||||
background-color:#f8f8f8;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
|
||||
padding:0 0 5px 8px;
|
||||
background-color:#ffffff;
|
||||
border:none;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
|
||||
margin-left:0;
|
||||
padding-left:0;
|
||||
padding-bottom:15px;
|
||||
border:none;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
|
||||
list-style:none;
|
||||
border-bottom:none;
|
||||
padding-bottom:0;
|
||||
}
|
||||
table tr td dl, table tr td dl dt, table tr td dl dd {
|
||||
margin-top:0;
|
||||
margin-bottom:1px;
|
||||
}
|
||||
/*
|
||||
Table styles
|
||||
*/
|
||||
.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
|
||||
width:100%;
|
||||
border-left:1px solid #EEE;
|
||||
border-right:1px solid #EEE;
|
||||
border-bottom:1px solid #EEE;
|
||||
}
|
||||
.overviewSummary, .memberSummary {
|
||||
padding:0px;
|
||||
}
|
||||
.overviewSummary caption, .memberSummary caption, .typeSummary caption,
|
||||
.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
|
||||
position:relative;
|
||||
text-align:left;
|
||||
background-repeat:no-repeat;
|
||||
color:#253441;
|
||||
font-weight:bold;
|
||||
clear:none;
|
||||
overflow:hidden;
|
||||
padding:0px;
|
||||
padding-top:10px;
|
||||
padding-left:1px;
|
||||
margin:0px;
|
||||
white-space:pre;
|
||||
}
|
||||
.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link,
|
||||
.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link,
|
||||
.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover,
|
||||
.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover,
|
||||
.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active,
|
||||
.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active,
|
||||
.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited,
|
||||
.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited {
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,
|
||||
.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
padding-bottom:7px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
border: none;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.activeTableTab span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
margin-right:3px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.tableTab span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
margin-right:3px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#4D7A97;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {
|
||||
padding-top:0px;
|
||||
padding-left:0px;
|
||||
padding-right:0px;
|
||||
background-image:none;
|
||||
float:none;
|
||||
display:inline;
|
||||
}
|
||||
.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
|
||||
.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
position:relative;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
}
|
||||
.memberSummary .activeTableTab .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
margin-right:3px;
|
||||
position:relative;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
}
|
||||
.memberSummary .tableTab .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
margin-right:3px;
|
||||
position:relative;
|
||||
background-color:#4D7A97;
|
||||
float:left;
|
||||
|
||||
}
|
||||
.overviewSummary td, .memberSummary td, .typeSummary td,
|
||||
.useSummary td, .constantsSummary td, .deprecatedSummary td {
|
||||
text-align:left;
|
||||
padding:0px 0px 12px 10px;
|
||||
}
|
||||
th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
|
||||
td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
|
||||
vertical-align:top;
|
||||
padding-right:0px;
|
||||
padding-top:8px;
|
||||
padding-bottom:3px;
|
||||
}
|
||||
th.colFirst, th.colLast, th.colOne, .constantsSummary th {
|
||||
background:#dee3e9;
|
||||
text-align:left;
|
||||
padding:8px 3px 3px 7px;
|
||||
}
|
||||
td.colFirst, th.colFirst {
|
||||
white-space:nowrap;
|
||||
font-size:13px;
|
||||
}
|
||||
td.colLast, th.colLast {
|
||||
font-size:13px;
|
||||
}
|
||||
td.colOne, th.colOne {
|
||||
font-size:13px;
|
||||
}
|
||||
.overviewSummary td.colFirst, .overviewSummary th.colFirst,
|
||||
.useSummary td.colFirst, .useSummary th.colFirst,
|
||||
.overviewSummary td.colOne, .overviewSummary th.colOne,
|
||||
.memberSummary td.colFirst, .memberSummary th.colFirst,
|
||||
.memberSummary td.colOne, .memberSummary th.colOne,
|
||||
.typeSummary td.colFirst{
|
||||
width:25%;
|
||||
vertical-align:top;
|
||||
}
|
||||
td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
|
||||
font-weight:bold;
|
||||
}
|
||||
.tableSubHeadingColor {
|
||||
background-color:#EEEEFF;
|
||||
}
|
||||
.altColor {
|
||||
background-color:#FFFFFF;
|
||||
}
|
||||
.rowColor {
|
||||
background-color:#EEEEEF;
|
||||
}
|
||||
/*
|
||||
Content styles
|
||||
*/
|
||||
.description pre {
|
||||
margin-top:0;
|
||||
}
|
||||
.deprecatedContent {
|
||||
margin:0;
|
||||
padding:10px 0;
|
||||
}
|
||||
.docSummary {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
div.block {
|
||||
font-size:14px;
|
||||
font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
td.colLast div {
|
||||
padding-top:0px;
|
||||
}
|
||||
|
||||
|
||||
td.colLast a {
|
||||
padding-bottom:3px;
|
||||
}
|
||||
/*
|
||||
Formatting effect styles
|
||||
*/
|
||||
.sourceLineNo {
|
||||
color:green;
|
||||
padding:0 30px 0 0;
|
||||
}
|
||||
h1.hidden {
|
||||
visibility:hidden;
|
||||
overflow:hidden;
|
||||
font-size:10px;
|
||||
}
|
||||
.block {
|
||||
display:block;
|
||||
margin:3px 10px 2px 0px;
|
||||
color:#474747;
|
||||
}
|
||||
.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
|
||||
.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
|
||||
.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
|
||||
font-weight:bold;
|
||||
}
|
||||
.deprecationComment, .emphasizedPhrase, .interfaceName {
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase,
|
||||
div.block div.block span.interfaceName {
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
div.contentContainer ul.blockList li.blockList h2{
|
||||
padding-bottom:0px;
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
/**
|
||||
@author Isaac Shoebottom (3429069)
|
||||
**/
|
||||
public class ActivityTab {
|
||||
|
||||
//Initialize name in class
|
||||
private final String name;
|
||||
|
||||
//Initialize room number in class
|
||||
private final int roomNumber;
|
||||
|
||||
//Initialize amount owed
|
||||
private double amountOwed;
|
||||
|
||||
/**Make the class to hold the information for the name, room number and amount owed
|
||||
* @param nameIn The name of the person to be put on file
|
||||
* @param roomNumberIn The room number the person on file is to be put in
|
||||
* @param amountOwedIn The amount owed when initializing the class (Always 0.00 as of now, can be changed for modularity)
|
||||
*/
|
||||
public ActivityTab(String nameIn, int roomNumberIn, double amountOwedIn){
|
||||
this.name = nameIn;
|
||||
this.roomNumber = roomNumberIn;
|
||||
this.amountOwed = amountOwedIn;
|
||||
}
|
||||
|
||||
/**Getter method to get the amount owed
|
||||
* @return amountOwed The amount of money the person owes at the time called
|
||||
*/
|
||||
public double getAmountOwed() {
|
||||
return this.amountOwed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter method to get the name of person on tab
|
||||
* @return name The name of the person on file
|
||||
*/
|
||||
public String getName(){
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**Getter to get the room number of person on tab
|
||||
* @return roomNumber The room number of the person on file
|
||||
*/
|
||||
public int getRoomNumber(){
|
||||
return this.roomNumber;
|
||||
}
|
||||
|
||||
/**Accumulator to add the amount that the person owes to their total
|
||||
* @param activityPrice The price of the activity
|
||||
*/
|
||||
public void addAmountOwed(double activityPrice){
|
||||
this.amountOwed = this.amountOwed + activityPrice;
|
||||
}
|
||||
|
||||
/**Calculate the tip with the percentage they wish to use
|
||||
* @param percentageAmount The percentage amount (e.g. 18% = 18)
|
||||
* @return A double representing the tip the person will pay
|
||||
*/
|
||||
public double processTip(double percentageAmount){
|
||||
return (this.amountOwed * (percentageAmount/100));
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
dawnsTab:
|
||||
Name: Dawn MacIsaac
|
||||
Room Number: 42
|
||||
Amount Owed: $5.85
|
||||
luigisTab:
|
||||
Name: Luigi Benedicenti
|
||||
Room Number: 112
|
||||
Amount Owed: $20.25
|
||||
nataliesTab:
|
||||
Name: Natalie Webber
|
||||
Room Number: 214
|
||||
Amount Owed: $15.25
|
||||
leahsTab:
|
||||
Name: Leah Bidlake
|
||||
Room Number: 78
|
||||
Amount Owed: $13.0
|
||||
|
||||
Leah Bidlake leaves a $2.34 tip
|
||||
Natalie Webber leaves a $1.95 tip
|
||||
Dawn MacIsaac leaves a $1.17 tip
|
||||
Luigi Benedicenti leaves a $4.05 tip
|
@ -0,0 +1,56 @@
|
||||
/**
|
||||
@author Isaac Shoebottom (3429069)
|
||||
**/
|
||||
public class ComputerScienceRetreat {
|
||||
public static void main(String[] args){
|
||||
runRetreat();
|
||||
}
|
||||
|
||||
private static void runRetreat(){
|
||||
ActivityTab dawnsTab = new ActivityTab("Dawn MacIsaac", 42, 0.00);
|
||||
dawnsTab.addAmountOwed(3.25);
|
||||
|
||||
ActivityTab luigisTab = new ActivityTab("Luigi Benedicenti", 112, 0.00);
|
||||
luigisTab.addAmountOwed(8.50);
|
||||
|
||||
ActivityTab nataliesTab = new ActivityTab("Natalie Webber", 214, 0.00);
|
||||
nataliesTab.addAmountOwed(4.00);
|
||||
nataliesTab.addAmountOwed(6.00);
|
||||
|
||||
ActivityTab leahsTab = new ActivityTab("Leah Bidlake", 78, 0.00);
|
||||
leahsTab.addAmountOwed(7.75);
|
||||
|
||||
nataliesTab.addAmountOwed(5.25);
|
||||
leahsTab.addAmountOwed(5.25);
|
||||
|
||||
luigisTab.addAmountOwed(11.75);
|
||||
|
||||
dawnsTab.addAmountOwed(2.60);
|
||||
|
||||
System.out.println("dawnsTab:" +
|
||||
"\n Name: " + dawnsTab.getName() +
|
||||
"\n Room Number: " + dawnsTab.getRoomNumber() +
|
||||
"\n Amount Owed: $" + dawnsTab.getAmountOwed());
|
||||
|
||||
System.out.println("luigisTab:" +
|
||||
"\n Name: " + luigisTab.getName() +
|
||||
"\n Room Number: " + luigisTab.getRoomNumber() +
|
||||
"\n Amount Owed: $" + luigisTab.getAmountOwed());
|
||||
|
||||
System.out.println("nataliesTab:" +
|
||||
"\n Name: " + nataliesTab.getName() +
|
||||
"\n Room Number: " + nataliesTab.getRoomNumber() +
|
||||
"\n Amount Owed: $" + nataliesTab.getAmountOwed());
|
||||
|
||||
System.out.println("leahsTab:" +
|
||||
"\n Name: " + leahsTab.getName() +
|
||||
"\n Room Number: " + leahsTab.getRoomNumber() +
|
||||
"\n Amount Owed: $" + leahsTab.getAmountOwed());
|
||||
|
||||
System.out.print("\n");
|
||||
System.out.println(leahsTab.getName() +" leaves a $" + leahsTab.processTip(18) + " tip");
|
||||
System.out.println(nataliesTab.getName() + " leaves a $" + leahsTab.processTip(15) + " tip");
|
||||
System.out.println(dawnsTab.getName() + " leaves a $" + dawnsTab.processTip(20) + " tip");
|
||||
System.out.println(luigisTab.getName() + " leaves a $" + luigisTab.processTip(20) + " tip");
|
||||
}
|
||||
}
|
BIN
Submissions/CS1073 As3/IsaacShoebottom_As3_Report.docx
Normal file
BIN
Submissions/CS1073 As3/IsaacShoebottom_As3_Report.pdf
Normal file
BIN
Submissions/CS1073 As4/CS1073-Assign4-F2020.pdf
Normal file
BIN
Submissions/CS1073 As5/1.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Submissions/CS1073 As5/2.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Submissions/CS1073 As5/3.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
Submissions/CS1073 As5/4.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
Submissions/CS1073 As5/Archive/Output/Question 1/1.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Submissions/CS1073 As5/Archive/Output/Question 1/2.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Submissions/CS1073 As5/Archive/Output/Question 1/3.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
Submissions/CS1073 As5/Archive/Output/Question 2/4.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
@ -0,0 +1,68 @@
|
||||
/**
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
|
||||
boolean gotPaid;
|
||||
boolean boughtGroceries;
|
||||
boolean leftoversAtHome;
|
||||
boolean enoughLeftoversForMeal;
|
||||
String scannerIn;
|
||||
|
||||
System.out.println("Did you get paid this week?");
|
||||
scannerIn = scanner.nextLine();
|
||||
scannerIn = scannerIn.toLowerCase();
|
||||
scannerIn = (scannerIn.equals("yes")) ? "true" : (scannerIn.equals("no")) ? "false" : "not yes or no";
|
||||
gotPaid = Boolean.parseBoolean(scannerIn);
|
||||
|
||||
if (gotPaid) {
|
||||
|
||||
System.out.println("Did you buy groceries this week?");
|
||||
scannerIn = scanner.nextLine();
|
||||
scannerIn = scannerIn.toLowerCase();
|
||||
scannerIn = (scannerIn.equals("yes")) ? "true" : (scannerIn.equals("no")) ? "no" : "not yes or no";
|
||||
boughtGroceries = Boolean.parseBoolean(scannerIn);
|
||||
|
||||
if (!boughtGroceries) {
|
||||
|
||||
System.out.println("Do you have leftovers at home?");
|
||||
scannerIn = scanner.nextLine();
|
||||
scannerIn = scannerIn.toLowerCase();
|
||||
scannerIn = (scannerIn.equals("yes")) ? "true" : (scannerIn.equals("no")) ? "no" : "not yes or no";
|
||||
leftoversAtHome = Boolean.parseBoolean(scannerIn);
|
||||
|
||||
if (leftoversAtHome) {
|
||||
|
||||
System.out.println("Are there enough leftovers for a meal?");
|
||||
scannerIn = scanner.nextLine();
|
||||
scannerIn = scannerIn.toLowerCase();
|
||||
scannerIn = (scannerIn.equals("yes")) ? "true" : (scannerIn.equals("no")) ? "no" : "not yes or no";
|
||||
enoughLeftoversForMeal = Boolean.parseBoolean(scannerIn);
|
||||
|
||||
if (!enoughLeftoversForMeal) {
|
||||
System.out.println("You should eat at a restaurant.");
|
||||
}
|
||||
else {
|
||||
System.out.println("You should eat at home.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("You should eat at a restaurant.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("You should eat at home.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("You should eat at home.");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
/**
|
||||
This class represents a 2D line segment using 2 points.
|
||||
@author Natalie Webber
|
||||
@author Scott Bateman
|
||||
@author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
public class LineSegment {
|
||||
|
||||
private CartesianPoint pointA;
|
||||
private CartesianPoint pointB;
|
||||
|
||||
|
||||
public LineSegment (double x1, double y1, double x2, double y2) {
|
||||
pointA = new CartesianPoint (x1, y1);
|
||||
pointB = new CartesianPoint (x2, y2);
|
||||
}
|
||||
|
||||
public LineSegment (CartesianPoint p1, CartesianPoint p2) {
|
||||
pointA = p1;
|
||||
pointB = p2;
|
||||
}
|
||||
|
||||
public double getLength () {
|
||||
return pointA.distance(pointB);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method checks the cross product and dot products of the line and the given point to check if the point p is on the segment
|
||||
* @param p The point that is being tested to be on the segment
|
||||
* @return Value of if the returned point is on the segment
|
||||
*/
|
||||
public Boolean containsPoint (CartesianPoint p) {
|
||||
double crossProduct;
|
||||
crossProduct = ((p.getY() - pointA.getY()) * (pointB.getX() - pointA.getX())) - ((p.getX() - pointA.getX()) * (pointB.getY() - pointA.getY()));
|
||||
if (Math.abs(crossProduct) > Math.ulp(1.0)) {
|
||||
return false;
|
||||
}
|
||||
double dotProduct;
|
||||
dotProduct = ((p.getX() - pointA.getX()) * (pointB.getX() - pointA.getX())) + ((p.getY() - pointA.getY()) * (pointB.getY() - pointA.getY()));
|
||||
if (dotProduct < 0 ) {
|
||||
return false;
|
||||
}
|
||||
double squaredLength;
|
||||
squaredLength = ((pointB.getX() - pointA.getX()) * (pointB.getX() - pointA.getX())) + ((pointB.getY() - pointA.getY()) * (pointB.getY() - pointA.getY()));
|
||||
if (dotProduct > squaredLength) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to check if the line is vertical (only on one point in the x axis)
|
||||
* @return The value of is the line is vertical or not
|
||||
*/
|
||||
public boolean isVertical() {
|
||||
if (pointA.getX() == pointB.getX()) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
public class TestLine {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
LineSegment segment1 = new LineSegment(1.0, 1.0, 5.0, 5.0);
|
||||
CartesianPoint point1s1 = new CartesianPoint(3.0, 3.0);
|
||||
CartesianPoint point2s1 = new CartesianPoint(2.0, 3.0);
|
||||
|
||||
|
||||
LineSegment segment2 = new LineSegment(2.0, 2.0, 2.0, 6.0);
|
||||
CartesianPoint point1s2 = new CartesianPoint(2.0, 4.0);
|
||||
CartesianPoint point2s2 = new CartesianPoint(1.0, 5.0);
|
||||
|
||||
if (segment1.isVertical()) {
|
||||
System.out.println("Segment 1 is vertical");
|
||||
}
|
||||
else {
|
||||
System.out.println("Segment 1 is not vertical");
|
||||
}
|
||||
|
||||
if (segment1.containsPoint(point1s1)){
|
||||
System.out.println("Point 1 is on the line segment");
|
||||
}
|
||||
else {
|
||||
System.out.println("Point 1 is not on the line segment");
|
||||
}
|
||||
|
||||
if (segment1.containsPoint(point2s1)){
|
||||
System.out.println("Point 2 is on the line segment");
|
||||
}
|
||||
else {
|
||||
System.out.println("Point 2 is not on the line segment");
|
||||
}
|
||||
|
||||
if (segment2.isVertical()) {
|
||||
System.out.println("Segment 2 is vertical");
|
||||
}
|
||||
else {
|
||||
System.out.println("Segment 2 is not vertical");
|
||||
}
|
||||
|
||||
if (segment2.containsPoint(point1s2)){
|
||||
System.out.println("Point 1 is on the line segment");
|
||||
}
|
||||
else {
|
||||
System.out.println("Point 1 is not on the line segment");
|
||||
}
|
||||
|
||||
if (segment2.containsPoint(point2s2)){
|
||||
System.out.println("Point 2 is on the line segment");
|
||||
}
|
||||
else {
|
||||
System.out.println("Point 2 is not on the line segment");
|
||||
}
|
||||
}
|
||||
}
|
BIN
Submissions/CS1073 As5/CS1073-Assign5-F2020.pdf
Normal file
BIN
Submissions/CS1073 As5/IsaacShoebottom_As5_Archive.zip
Normal file
BIN
Submissions/CS1073 As5/IsaacShoebottom_As5_Report.docx
Normal file
BIN
Submissions/CS1073 As5/IsaacShoebottom_As5_Report.pdf
Normal file
BIN
Submissions/CS1073 As5/Part2.zip
Normal file
BIN
Submissions/CS1073 As6/Archive/Sample Output/q1 ex1.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Submissions/CS1073 As6/Archive/Sample Output/q1 ex2.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Submissions/CS1073 As6/Archive/Sample Output/q2 ex1.png
Normal file
After Width: | Height: | Size: 50 KiB |
@ -0,0 +1,27 @@
|
||||
/**
|
||||
*This class takes a given date and tells the user if it is a leap year
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
public class LeapYearCheck {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
java.util.Scanner scanner = new java.util.Scanner(System.in);
|
||||
long year;
|
||||
do {
|
||||
System.out.print("Please enter a year: ");
|
||||
year = scanner.nextLong();
|
||||
if (year < 1582) {
|
||||
System.out.println("Invalid Year, you cannot enter a year prior to 1582");
|
||||
}
|
||||
}
|
||||
while (year < 1582);
|
||||
|
||||
if ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0)) {
|
||||
System.out.println("This is a leap year");
|
||||
}
|
||||
else {
|
||||
System.out.println("This is not a leap year.");
|
||||
}
|
||||
}
|
||||
}
|
71
Submissions/CS1073 As6/Archive/Source Code/MakingChange.java
Normal file
@ -0,0 +1,71 @@
|
||||
/**
|
||||
* This class returns the amount of change the user would be given provided they give the amount they paid and the price of their items
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class MakingChange {
|
||||
public static void main(String[] args){
|
||||
java.util.Scanner scanner = new java.util.Scanner(System.in);
|
||||
double totalPrice;
|
||||
double amountPaid;
|
||||
long changeTotal;
|
||||
|
||||
do {
|
||||
do {
|
||||
System.out.print("Please enter the total price: ");
|
||||
totalPrice = scanner.nextDouble();
|
||||
if (totalPrice <= 0) {
|
||||
System.out.println("Invalid input. Please enter a positive number");
|
||||
}
|
||||
}
|
||||
while (totalPrice <= 0);
|
||||
|
||||
do {
|
||||
System.out.print("Please enter the amount paid: ");
|
||||
amountPaid = scanner.nextDouble();
|
||||
if (amountPaid <= 0) {
|
||||
System.out.println("Invalid input. Please enter a positive number");
|
||||
}
|
||||
}
|
||||
while (amountPaid < 0);
|
||||
changeTotal = (long)(amountPaid*100) - (long)(totalPrice*100);
|
||||
if (changeTotal< 0) {
|
||||
System.out.println("Invalid inputs. The amount of change given must be at least zero \n");
|
||||
}
|
||||
}
|
||||
while (changeTotal < 0);
|
||||
|
||||
|
||||
long twenties = (changeTotal/2000);
|
||||
changeTotal -= (twenties * 2000);
|
||||
long tens = (changeTotal/1000);
|
||||
changeTotal -= (tens * 1000);
|
||||
long fives = (changeTotal/500);
|
||||
changeTotal -= (fives * 500);
|
||||
long toonies = (changeTotal/200);
|
||||
changeTotal -= (toonies * 200);
|
||||
long loonies = (changeTotal/100);
|
||||
changeTotal -= (loonies * 100);
|
||||
long quarters = (changeTotal/25);
|
||||
changeTotal -= (quarters * 25);
|
||||
long dimes = (changeTotal/10);
|
||||
changeTotal -= (dimes * 10);
|
||||
long nickels = (changeTotal/5);
|
||||
changeTotal -= (nickels * 5);
|
||||
long pennies = changeTotal;
|
||||
|
||||
System.out.println(
|
||||
"\n" +
|
||||
"Here is the change that they are due:\n" +
|
||||
"20$ bills: " + twenties + "\n" +
|
||||
"10$ bills: " + tens + "\n" +
|
||||
"5$ bills: " + fives + "\n" +
|
||||
"Toonies: " + toonies + "\n" +
|
||||
"Loonies: " + loonies + "\n" +
|
||||
"Quarters: " + quarters + "\n" +
|
||||
"Dimes: " + dimes + "\n" +
|
||||
"Nickels: " + nickels + "\n" +
|
||||
"Pennies: " + pennies
|
||||
);
|
||||
}
|
||||
}
|
BIN
Submissions/CS1073 As6/CS1073-Assign6-F2020.pdf
Normal file
BIN
Submissions/CS1073 As6/IsaacShoebottom_As6_Archive.zip
Normal file
BIN
Submissions/CS1073 As6/IsaacShoebottom_As6_Report.docx
Normal file
BIN
Submissions/CS1073 As6/IsaacShoebottom_As6_Report.pdf
Normal file
57
Submissions/CS1073 As7/Archive/Q1/Main.java
Normal file
@ -0,0 +1,57 @@
|
||||
/**
|
||||
* This class drives the program, it controls the console input/output and passes arguments given to the classes
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
byte userChoice;
|
||||
double biggestCorralArea = 0;
|
||||
String biggestCorralType = "not applicable";
|
||||
java.util.Scanner scan = new java.util.Scanner(System.in);
|
||||
|
||||
do {
|
||||
System.out.print(
|
||||
"What would you like to do?\n" +
|
||||
"1 - Get info for rectangular enclosure\n" +
|
||||
"2 - Get info for polygon enclosure\n" +
|
||||
"3 - Quit\n" +
|
||||
"Enter your choice: ");
|
||||
userChoice = scan.nextByte();
|
||||
|
||||
if (userChoice == 1) {
|
||||
System.out.print("Width in meters: ");
|
||||
double tempWidth = scan.nextDouble();
|
||||
System.out.print("Length in meters: ");
|
||||
double tempLength = scan.nextDouble();
|
||||
RectangularCorral corral = new RectangularCorral(tempWidth, tempLength);
|
||||
System.out.print("The area is: "); System.out.printf("%.3f", corral.getArea()); System.out.print(" square meters\n");
|
||||
System.out.print("The cost is: "); System.out.printf("%.2f", corral.getTotalFenceCost()); System.out.print("$\n");
|
||||
|
||||
if (biggestCorralArea < corral.getArea()) {
|
||||
biggestCorralArea = corral.getArea();
|
||||
biggestCorralType = "rectangle";
|
||||
}
|
||||
}
|
||||
|
||||
if (userChoice == 2) {
|
||||
System.out.print("Length of sides: ");
|
||||
double tempLength = scan.nextDouble();
|
||||
System.out.print("Number of sides: ");
|
||||
long tempSides = scan.nextLong();
|
||||
PolygonalCorral corral = new PolygonalCorral(tempLength, tempSides);
|
||||
System.out.print("The area is: "); System.out.printf("%.3f", corral.getArea()); System.out.print(" square meters\n");
|
||||
System.out.print("The cost is: "); System.out.printf("%.2f", corral.getTotalFenceCost()); System.out.print("$\n");
|
||||
|
||||
if (biggestCorralArea < corral.getArea()) {
|
||||
biggestCorralArea = corral.getArea();
|
||||
biggestCorralType = "polygon";
|
||||
}
|
||||
}
|
||||
} while (userChoice != 3);
|
||||
|
||||
System.out.println("The corral with the largest area is a " + biggestCorralType);
|
||||
System.out.print("It's area is : "); System.out.printf("%.3f", biggestCorralArea); System.out.print(" square meters");
|
||||
}
|
||||
}
|
72
Submissions/CS1073 As7/Archive/Q1/PolygonalCorral.java
Normal file
@ -0,0 +1,72 @@
|
||||
/**
|
||||
* This class describes a polygonal corral with each side of equal length. It takes a length and a number of sides.
|
||||
* @author Isaac Shoebottom (3429069)
|
||||
*/
|
||||
|
||||
public class PolygonalCorral {
|
||||
/**
|
||||
* The unit price is how much the fence costs per meter
|
||||
*/
|
||||
final double unitPrice = 9.50;
|
||||
/**
|
||||
* The length is how long each side of the polygonal corral is in meters
|
||||
*/
|
||||
double length;
|
||||
/**
|
||||
* The number of sides in the polygonal corral
|
||||
*/
|
||||
long numberOfSides;
|
||||
|
||||
/**
|
||||
* The polygonal corral method contains the length and number of sides
|
||||
* @param length The length of the sides of the polygonal corral in meters
|
||||
* @param numberOfSides The number of sides of the polygonal corral
|
||||
*/
|
||||
PolygonalCorral (double length, long numberOfSides) {
|
||||
this.length = length;
|
||||
this.numberOfSides = numberOfSides;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the length of the polygonal corrals sides
|
||||
* @return The length of the corrals sides in meters
|
||||
*/
|
||||
public double getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the number of sides of the polygonal corral
|
||||
* @return The number of sides of the polygonal corral
|
||||
*/
|
||||
public long getNumberOfSides() {
|
||||
return numberOfSides;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the unit price of a meter of fence
|
||||
* @return The price of a meter of fence
|
||||
*/
|
||||
public double getUnitPrice() {
|
||||
return unitPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the total cost of the polygonal fence
|
||||
* @return The cost of the polygonal fence
|
||||
*/
|
||||
public double getTotalFenceCost() {
|
||||
return (length*numberOfSides*unitPrice);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the area of the polygonal corral
|
||||
* @return The area of the polygonal corral in meters squared
|
||||
*/
|
||||
public double getArea() {
|
||||
double radians = (180/(double)numberOfSides)*(Math.PI/180);
|
||||
double apothem = length/(2*Math.tan(radians));
|
||||
return (0.5*(length*numberOfSides)*apothem);
|
||||
}
|
||||
|
||||
}
|