Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__junit_junit_4_12.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions Pom.xml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.zipcodewilmington</groupId>
<artifactId>justcode</artifactId>
<packaging>packaging>
<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>
<modules>
<module>src</module>
</modules>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>


</project>
15 changes: 15 additions & 0 deletions ProjectStructure Readme
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
JUST CODE README

Create a financial app which interacts with a user at a Point of Sale terminal.
The app scans the user’s purchase total, and gives the option to round up to the next whole dollar (or other specified figure)
The app then provides a menu of options of where to send the extra funds. The funds could be sent to a savings account, a charity, a mutual fund or other investment.
The app would also print a receipt showing the value of the original bill, the rounded up value, and how much was
committed to each account.
The initial development stage would involve creating the UML, the user interface, and the functionality of adding and subtracting dollar amounts.


Future functionality
The app could provide access to a database which stores customer account profile data, balance, fund choices.
It could also track the progress of the chosen fund from real market data, and return the resulting change in value to balance.
The app might also give the option to add a new fund or charity.

15 changes: 15 additions & 0 deletions ProjectTestReadMe
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
JUST CODE TEST README

*Create a test to ensure the console displays customer name,
bill Amount, Fund Name and new Total.


* Create test to ensure the console sends the right query to the user giving options to
complete transaction and print receipt or continue with options:
and test that if done with transaction the correct balance is returned.

*test to ensure that the options chosen match what user picks, and returns the correct amount.

*Ensure each of the methods for manipulating and accessing class fields have
appropriate testing.

16 changes: 16 additions & 0 deletions main.iml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
</component>
</module>
Binary file addedsrc/.DS_Store
Binary file not shown.
Binary file addedsrc/main/.DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions src/main/java/Bank/AccountInfo.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
package Bank;

public final class AccountInfo {
private final int id;
private final String name;
private final String email;
private final float balance;
private final String typeAccount;

AccountInfo(int id, String name, String email, float balance, String typeAccount) {
this.id = id;
this.name = name;
this.email = email;
this.balance = balance;
this.typeAccount = typeAccount;
}

public int getId() {
return id;
}

public String getName() {
return name;
}

public String getEmail() {
return email;
}

public float getBalance() {
return balance;
}

public String getTypeAccount() {
return typeAccount;
}

}

20 changes: 20 additions & 0 deletions src/main/java/Bank/Charity.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
package Bank;

public class Charity implements Deposit
{

public void deposit(double deposit){

double d = 0;
}

public void roundUp(double r)
{

};

public void newBalance(double b)
{

};
}
12 changes: 12 additions & 0 deletions src/main/java/Bank/Deposit.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
package Bank;

public interface Deposit {

public Double Amount = null;

public void deposit(double deposit);

public void roundUp(double r);

public void newBalance(double b);
}
4 changes: 4 additions & 0 deletions src/main/java/Bank/Family.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
package Bank;

public class Family {
}
11 changes: 11 additions & 0 deletions src/main/java/Bank/GlobalCharities.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
package Bank;

public enum GlobalCharities {
UNICEF,
The_Missionaries_of_Charity,
Amoud_Foundation,
Save_the_Children,
Azim_Premji_Foundation,


}
Loading