Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed Scientific Calculator Project #105

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Binary file added .DS_Store
Binary file not shown.
22 changes: 22 additions & 0 deletions MainApplication.uml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement>com.zipcodewilmington.scientificcalculator.MainApplication</OriginalElement>
<nodes>
<node x="-59.0" y="-267.0">com.zipcodewilmington.scientificcalculator.MainApplication</node>
</nodes>
<notes />
<edges />
<settings layout="Hierarchic Group" zoom="0.5013009540329575" x="99.0" y="299.5" />
<SelectedNodes>
<node>com.zipcodewilmington.scientificcalculator.MainApplication</node>
</SelectedNodes>
<Categories>
<Category>Fields</Category>
<Category>Constructors</Category>
<Category>Methods</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>

22 changes: 22 additions & 0 deletions TestMainApplication.uml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement>com.zipcodewilmington.scientific_calculator.TestMainApplication</OriginalElement>
<nodes>
<node x="0.0" y="0.0">com.zipcodewilmington.scientific_calculator.TestMainApplication</node>
</nodes>
<notes />
<edges />
<settings layout="Hierarchic Group" zoom="0.6666666666666666" x="33.0" y="453.5" />
<SelectedNodes>
<node>com.zipcodewilmington.scientific_calculator.TestMainApplication</node>
</SelectedNodes>
<Categories>
<Category>Fields</Category>
<Category>Constructors</Category>
<Category>Methods</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>

32 changes: 32 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,38 @@
<groupId>com.zipcodewilmington</groupId>
<artifactId>scientific_calculator</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<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.
Binary file added src/main/java/com/.DS_Store
Binary file not shown.
Binary file added src/main/java/com/zipcodewilmington/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,20 @@ public static String getStringInput(String prompt) {
return userInput;
}


public static Integer getIntegerInput(String prompt) {
return null;
Scanner scanner = new Scanner(System.in);
println(prompt);
int userInput = scanner.nextInt();
return userInput;
}

public static Double getDoubleInput(String prompt) {
return null;
Scanner scanner = new Scanner(System.in);
println(prompt);
double userInput = scanner.nextDouble();
return userInput;
}
}


}
Loading