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
c230b19
POM
apphow Mar 12, 2020
192cd7a
create Pom
Mar 12, 2020
7c2eda4
ProjectTestReadMe
Mar 12, 2020
9171869
test readme start
Mar 12, 2020
9fb7b30
added project proposal readme
zanettanorris Mar 12, 2020
bb5a23d
practising pull request
zanettanorris Mar 12, 2020
67eb164
Merge pull request #1 from apphow/zanettabranch
apphow Mar 12, 2020
2081438
saving:merge branch 'dev' into feature/April
Mar 12, 2020
de96ae9
chages to read me
aartikansal Mar 12, 2020
69e8f5e
added project structure
zanettanorris Mar 16, 2020
0c3c454
new changes
aartikansal Mar 16, 2020
6ff06fc
Merge pull request #2 from apphow/zanettabranch
apphow Mar 16, 2020
fcf10f8
saving before pull
Mar 16, 2020
5b01fbf
create projectTestReadMe
Mar 16, 2020
28686f9
Merge pull request #3 from apphow/feature/April
aartikansal Mar 16, 2020
ec7b45c
new changes
aartikansal Mar 16, 2020
67e60e0
AcoountInfo added
aartikansal Mar 18, 2020
1670c85
Merge pull request #4 from apphow/featureAARTI
zanettanorris Mar 18, 2020
63ff077
saving
Mar 19, 2020
63cfd1d
saving
Mar 19, 2020
b395eaa
add local charities class
Mar 19, 2020
3a5fc3c
Merge pull request #6 from apphow/feature/April
aartikansal Mar 19, 2020
ef4d7c7
global charities added
aartikansal Mar 19, 2020
c03ab20
Merge pull request #7 from apphow/featureAARTI
apphow Mar 19, 2020
6949ff8
test classes stubbed and tests added
aartikansal Mar 19, 2020
955ba3b
changes to test classes
aartikansal Mar 20, 2020
b202a2b
Merge pull request #9 from apphow/featureAARTI
zanettanorris Mar 20, 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
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 number Diff line number Diff 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 number Diff line number Diff 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 number Diff line number Diff 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 number Diff line number Diff 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 added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions src/main/java/Bank/AccountInfo.java
Original file line number Diff line number Diff 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 number Diff line number Diff 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 number Diff line number Diff 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 number Diff line number Diff 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 number Diff line number Diff 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