Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
de09613
adding branches
Feb 7, 2020
eb68778
Test
Feb 7, 2020
098e0d7
added comment
KhalilCrumpler Feb 7, 2020
7bdc7df
add misc
KhalilCrumpler Feb 7, 2020
ba4de8d
updated misc
KhalilCrumpler Feb 7, 2020
82dfd07
updating
Feb 7, 2020
a7d0e85
Merge pull request #1 from Gbrad1/CoreFeatures
Gbrad1 Feb 7, 2020
fab6b7b
Added backspace
KhalilCrumpler Feb 7, 2020
49368cd
added empty methods
Feb 7, 2020
e676d24
Merge pull request #2 from Gbrad1/CoreFeatures
Gbrad1 Feb 7, 2020
ba9ee36
added scientific functions
KhalilCrumpler Feb 7, 2020
536f2ce
erging fromDev
KhalilCrumpler Feb 7, 2020
4cf0b75
Added empty constructor
Feb 7, 2020
fbe4b66
Merge branch 'Dev' of https://github.com/Gbrad1/ScientificCalculator.…
Feb 7, 2020
0ddeebc
working on a test
Feb 7, 2020
5173157
Added some adder tests
Feb 8, 2020
64a2797
added scientific functions
KhalilCrumpler Feb 8, 2020
b82baad
Core Function updated. Compiling but still WIP
Feb 8, 2020
966ca8a
resolved merge conflict
Feb 8, 2020
1744e1a
adding code for the night
Feb 8, 2020
e0425f9
finish merge
KhalilCrumpler Feb 8, 2020
979c858
added all fucntions under scientific
KhalilCrumpler Feb 8, 2020
51b1b72
added a a handful of working tests
Feb 8, 2020
5011f42
added/updated functions
KhalilCrumpler Feb 8, 2020
df46321
added constructor
KhalilCrumpler Feb 8, 2020
b2c4e87
added factorial
KhalilCrumpler Feb 8, 2020
a7fe826
Adding revisions to console and main file
Feb 8, 2020
9a2def5
Merge pull request #3 from Gbrad1/CoreFeatures
Gbrad1 Feb 8, 2020
0acf8f0
tests1252
Feb 8, 2020
e907eaa
fixed merge conflict
KhalilCrumpler Feb 8, 2020
fd356d4
Merge pull request #4 from Gbrad1/ScientificFeatures
Gbrad1 Feb 8, 2020
0a91e6c
Merge branch 'Dev' into Tests
Gbrad1 Feb 8, 2020
b8810c0
Merge pull request #5 from Gbrad1/Tests
Gbrad1 Feb 8, 2020
4720d9d
asdasdasd
Feb 8, 2020
ee90439
updating my code to update Tests.
Feb 8, 2020
dab68dd
added more tests 149
Feb 8, 2020
b1df9c2
added more tests 149
Feb 8, 2020
06a3e8b
adding menus
Feb 8, 2020
d36cce5
moved everything to the correct test class
Feb 8, 2020
4361abe
Merge pull request #6 from Gbrad1/CoreFeatures
Gbrad1 Feb 8, 2020
4316f68
moved everything to the correct test class
Feb 8, 2020
57efba7
Merge pull request #7 from Gbrad1/Tests
Gbrad1 Feb 8, 2020
9e3c803
added a bunch of tests and went to eat
Feb 8, 2020
37b930a
Adding a working calculator that literally only does math.
Feb 9, 2020
a0d3c8b
Merge pull request #8 from Gbrad1/CoreFeatures
Gbrad1 Feb 9, 2020
6c126e5
Merge pull request #9 from Gbrad1/Tests
Gbrad1 Feb 9, 2020
999474d
Commiting what works
Feb 9, 2020
b11869d
Merge pull request #10 from Gbrad1/CoreFeatures
Gbrad1 Feb 9, 2020
7f7e97e
updating to most recent version.
Feb 9, 2020
7e89f48
Merge pull request #11 from Gbrad1/CoreFeatures
Gbrad1 Feb 9, 2020
0574a95
making me commit before it pullzzzzzz
Feb 9, 2020
3849531
pushing after pulling to see if this is wokring correctly
Feb 9, 2020
b201c04
fixed a few bugs but work still needs to be done to fix the memory an…
Feb 10, 2020
f8698e0
Merge pull request #12 from Gbrad1/Tests
Gbrad1 Feb 10, 2020
c7c2df0
final commit
Feb 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ fabric.properties
.project
.classpath
.settings
.DS_Store


#maven build target
Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
<groupId>com.zipcodewilmington</groupId>
<artifactId>scientific_calculator</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>


</project>
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
Binary file added src/main/java/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package com.zipcodewilmington.scientificcalculator;
import java.util.Scanner;

public class Calculator {

public Double operator;
public Double firstOption;
public Double secondOption;
public Double ans;
public Double history;
public Double calcChoice;

public Calculator() {

}

public Double setCalcChoice(Double choice) {
this.calcChoice = choice;
return choice;
}

public Double getCalcChoice() {
return this.calcChoice;
}


public Double setAns(Double ans) {
this.ans = ans;
return ans;
}

public Double getAns() {
return this.ans;
}

public Double getCurrentValue(Double currentValue) {
return this.history;
}

public Double getInputFromUser() {
Scanner scanner = new Scanner(System.in);
Double userInput = scanner.nextDouble();
return userInput;
}

public void setFirstInput(Double input){
firstOption = input;
}

public void setSecondOptionInput(Double input){
secondOption = input;
}

public void setOperator(Double input){
operator = input;
}

public Double chooseCalc() {
return null;
}

public Double getFirstNumber() {
return firstOption;
}

public Double getSecondNumber() {
return secondOption;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public static String getStringInput(String prompt) {
return userInput;
}

public static Integer getIntegerInput(String prompt) {
/*public static Integer getIntegerInput(String prompt) {
return null;
}

public static Double getDoubleInput(String prompt) {
return null;
}
}
}*/
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package com.zipcodewilmington.scientificcalculator;

import java.lang.*;
import com.sun.tools.javac.util.StringUtils;

public class CoreFunctions {

Double display;

//This is a constructor for CLass
public CoreFunctions() {

}

/*public double displayScreen() {
display = 0.0;
return display;
}*/

public boolean IsANumber(Double input) {
return true;
}

/*public class convertToDouble {
private String number1;
double convertedNumber = Double.parseDouble(number1);
}*/
public Double Add(Double a, Double b) {
Double sum = a + b;
return sum;
}

public Double Subtract(Double a, Double b) {
Double sum = a - b;
return sum;
}

public Double Multiply(Double a, Double b) {
Double sum = a * b;
return sum;
}

public Double Divide(Double a, Double b) {
Double sum = a / b;
return sum;
}

public Double SquareRoot(Double a) {
Double sum = Math.sqrt(a);
return sum;
}

public Double Square(Double a, Double b) {
Double sum = a - b;
return sum;
}

public Double Inverse() {
return null;
}
}
Loading