SlideShare a Scribd company logo
Lab 1/Banking System/build.xml
Builds, tests, and runs the project Banking System.
Lab 1/Banking System/build/classes/.netbeans_automatic_build
Lab 1/Banking
System/build/classes/.netbeans_update_resources
Lab 1/Banking
System/build/classes/banking/BankingSystem.classpackage
banking;
publicsynchronizedclass BankingSystem {
public void BankingSystem();
publicstatic void main(String[]);
}
Lab 1/Banking
System/build/classes/banking/database/AccountDA.classpackag
e banking.database;
publicsynchronizedclass AccountDA {
publicstatic java.util.ArrayList accounts;
public void AccountDA();
publicstatic void add(banking.domain.Account);
publicstatic java.util.ArrayList getCustomerAccounts(int);
publicstatic void initialize();
static void <clinit>();
}
Lab 1/Banking
System/build/classes/banking/database/CustomerDA.classpacka
ge banking.database;
publicsynchronizedclass CustomerDA {
privatestatic java.util.ArrayList customers;
public void CustomerDA();
publicstatic void add(banking.domain.Customer);
publicstatic java.util.ArrayList getCustomers();
publicstatic void inititialize();
static void <clinit>();
}
Lab 1/Banking
System/build/classes/banking/database/TransactionDA.classpac
kage banking.database;
publicsynchronizedclass TransactionDA {
privatestatic java.util.ArrayList transactions;
public void TransactionDA();
publicstatic void add(banking.domain.Transaction);
publicstatic java.util.ArrayList getAccountTransactions(int);
publicstatic void initialize();
static void <clinit>();
}
Lab 1/Banking
System/build/classes/banking/domain/Account.classpackage
banking.domain;
publicabstractsynchronizedclass Account {
private int accountNumber;
private int customerID;
private String accountName;
private java.util.Date dateOpened;
public void Account();
public void add();
public String getAccountName();
public int getAccountNumber();
publicstatic java.util.ArrayList getCustomerAccounts(int);
public int getCustomerID();
public java.util.Date getDateOpened();
public java.util.ArrayList getTransactions();
publicstatic void initialize();
public void setAccountName(String);
public void setAccountNumber(int);
public void setCustomerID(int);
public void setDateOpened(java.util.Date);
public String toString();
}
Lab 1/Banking
System/build/classes/banking/domain/Asset.classpackage
banking.domain;
publicsynchronizedclass Asset extends Account {
public void Asset();
}
Lab 1/Banking
System/build/classes/banking/domain/Customer.classpackage
banking.domain;
publicsynchronizedclass Customer {
private int customerID;
private String name;
private long phoneNumber;
public void Customer();
public void add();
publicstatic void add(Customer);
public java.util.ArrayList getAccounts();
public int getCustomerID();
publicstatic java.util.ArrayList getCustomers();
public String getName();
public long getPhoneNumber();
public void setCustomerID(int);
public void setName(String);
public void setPhoneNumber(long);
publicstatic void initialize();
public String toString();
}
Lab 1/Banking
System/build/classes/banking/domain/Liability.classpackage
banking.domain;
publicsynchronizedclass Liability extends Account {
public void Liability();
}
Lab 1/Banking
System/build/classes/banking/domain/Transaction.classpackage
banking.domain;
publicsynchronizedclass Transaction {
private double amount;
private int transactionID;
private java.util.Date transactionDate;
private int accountNumber;
private String description;
public void Transaction();
public void add();
public int getAccountNumber();
public double getAmount();
publicstatic java.util.ArrayList getAccountTransactions(int);
public String getDescription();
public java.util.Date getTransactionDate();
public int getTransactionID();
publicstatic void initialize();
public void setAccountNumber(int);
public void setAmount(double);
public void setDescription(String);
public void setTransactionDate(java.util.Date);
public void setTransactionID(int);
public String toString();
}
Lab 1/Banking System/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Lab 1/Banking System/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Must set javac.includes
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
No tests executed.
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in
profiler.info.jvmargs.agent
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx
Lab 1/Banking System/nbproject/genfiles.properties
build.xml.data.CRC32=db319861
build.xml.script.CRC32=538a4852
[email protected]
# This file is used by a NetBeans-based IDE to track changes in
generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will
never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=db319861
nbproject/build-impl.xml.script.CRC32=ae7b57ca
nbproject/[email protected]
Lab 1/Banking System/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:UsersdstrongAppDataRoamingNet
Beans8.2build.properties
Lab 1/Banking System/nbproject/private/private.xml
file:/C:/Users/dstrong/Documents/Yogi/Courses/CIS640/Project
s/Labs/Banking%20System/Banking%20System/src/banking/do
main/Transaction.java
file:/C:/Users/dstrong/Documents/Yogi/Courses/CIS640/Project
s/Labs/Banking%20System/Banking%20System/src/banking/dat
abase/TransactionDA.java
Lab 1/Banking System/nbproject/project.properties
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processor.options=
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.
dir}/ap-source-output
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection
transport:
#debug.transport=dt_socket
debug.classpath=
${run.classpath}
debug.test.classpath=
${run.test.classpath}
# Files in build.classes.dir which should be excluded from
distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/Banking_System.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
includes=**
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.processorpath=
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=
${javac.classpath}:
${build.classes.dir}
javac.test.processorpath=
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=banking.BankingSystem
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=
${javac.classpath}:
${build.classes.dir}
# Space-separated list of JVM arguments used when running the
project.
# You may also define separate properties like run-sys-
prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-
prop.name=value:
run.jvmargs=
run.test.classpath=
${javac.test.classpath}:
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
Lab 1/Banking System/nbproject/project.xml
org.netbeans.modules.java.j2seproject
Banking System
Lab 1/Banking System/src/banking/BankingSystem.javaLab
1/Banking
System/src/banking/BankingSystem.javapackage banking;
import banking.domain.Customer;
import banking.domain.Account;
import banking.domain.Transaction;
import java.util.ArrayList;
publicclassBankingSystem{
publicstaticvoid main(String[] args){
Customer.initialize();
Account.initialize();
Transaction.initialize();
ArrayList<Customer> customers =Customer.getCustomers();
for(int i =0; i < customers.size(); i++){
System.out.println(customers.get(i));
}
}
}
Lab 1/Banking
System/src/banking/database/AccountDA.javaLab 1/Banking
System/src/banking/database/AccountDA.javapackage banking.d
atabase;
import banking.domain.Account;
import banking.domain.Asset;
import banking.domain.Liability;
import java.util.ArrayList;
import java.util.Date;
publicclassAccountDA{
publicstaticArrayList<Account> accounts =newArrayList<Acco
unt>(5);
publicstaticvoid add(Account acc){
accounts.add(acc);
}
publicstaticArrayList<Account> getCustomerAccounts(int custI
D){
Account acc;
ArrayList<Account> customerAccounts =newArrayList<Accoun
t>(5);
for(int i =0; i < accounts.size(); i++){
acc = accounts.get(i);
if(acc.getCustomerID()== custID)
customerAccounts.add(acc);
}
return customerAccounts;
}
publicstaticvoid initialize(){
Account a;
Date today =newDate();
a =newAsset();
a.setAccountNumber(10101);
a.setCustomerID(101);
a.setAccountName("Customer One Checking Account");
a.setDateOpened(today);
a.add();
a =newAsset();
a.setAccountNumber(10102);
a.setCustomerID(101);
a.setAccountName("Customer One Savings Account");
a.setDateOpened(today);
a.add();
a =newAsset();
a.setAccountNumber(10201);
a.setCustomerID(102);
a.setAccountName("Savings Account");
a.setDateOpened(today);
a.add();
a =newLiability();
a.setAccountNumber(10202);
a.setCustomerID(102);
a.setAccountName("Customer Two Credit Card");
a.setDateOpened(today);
a.add();
}
}
Lab 1/Banking
System/src/banking/database/CustomerDA.javaLab 1/Banking
System/src/banking/database/CustomerDA.javapackage banking.
database;
import banking.domain.Customer;
import java.util.ArrayList;
publicclassCustomerDA{
privatestaticArrayList<Customer> customers =newArrayList<C
ustomer>(5);
publicstaticvoid add(Customer c){
customers.add(c);
}
publicstaticArrayList<Customer> getCustomers(){
return customers;
}
publicstaticvoid inititialize(){
Customer c;
c =newCustomer();
c.setCustomerID(101);
c.setName("Customer One");
c.setPhoneNumber(5551212);
c.add();
c =newCustomer();
c.setCustomerID(102);
c.setName("Customer Two");
c.setPhoneNumber(4442323);
c.add();
}
}
Lab 1/Banking
System/src/banking/database/TransactionDA.javaLab 1/Banking
System/src/banking/database/TransactionDA.javapackage banki
ng.database;
import banking.domain.Transaction;
import java.util.ArrayList;
import java.util.Date;
publicclassTransactionDA{
privatestaticArrayList<Transaction> transactions =newArrayLis
t<Transaction>(5);
publicstaticvoid add(Transaction trans){
trans.setTransactionID(transactions.size()+1);
transactions.add(trans);
}
publicstaticArrayList<Transaction> getAccountTransactions(int
accNo){
ArrayList<Transaction> accountTransactions =newArrayList<Tr
ansaction>(5);
Transaction trans;
for(int i =0; i < transactions.size(); i++){
trans = transactions.get(i);
if(accNo == trans.getAccountNumber())
accountTransactions.add(trans);
}
return accountTransactions;
}
publicstaticvoid initialize(){
Transaction t;
Date today =newDate();
t =newTransaction();
t.setAccountNumber(10101);
t.setTransactionDate(today);
t.setDescription("Transaction 1");
t.setAmount(100);
t.add();
t =newTransaction();
t.setAccountNumber(10101);
t.setTransactionDate(today);
t.setDescription("Transaction 2");
t.setAmount(-21.95);
t.add();
t =newTransaction();
t.setAccountNumber(10101);
t.setTransactionDate(today);
t.setDescription("Transaction 3");
t.setAmount(16.25);
t.add();
t =newTransaction();
t.setAccountNumber(10102);
t.setTransactionDate(today);
t.setDescription("Transaction 1");
t.setAmount(50.00);
t.add();
t =newTransaction();
t.setAccountNumber(10102);
t.setTransactionDate(today);
t.setDescription("Transaction 2");
t.setAmount(250.00);
t.add();
t =newTransaction();
t.setAccountNumber(10102);
t.setTransactionDate(today);
t.setDescription("Transaction 3");
t.setAmount(-10.00);
t.add();
t =newTransaction();
t.setAccountNumber(10202);
t.setTransactionDate(today);
t.setDescription("Transaction 1");
t.setAmount(500.00);
t.add();
t =newTransaction();
t.setAccountNumber(10202);
t.setTransactionDate(today);
t.setDescription("Transaction 2");
t.setAmount(-50.00);
t.add();
t =newTransaction();
t.setAccountNumber(10202);
t.setTransactionDate(today);
t.setDescription("Transaction 3");
t.setAmount(25.00);
t.add();
t =newTransaction();
t.setAccountNumber(10201);
t.setTransactionDate(today);
t.setDescription("Transaction 1");
t.setAmount(49.75);
t.add();
t =newTransaction();
t.setAccountNumber(10201);
t.setTransactionDate(today);
t.setDescription("Transaction 2");
t.setAmount(16.25);
t.add();
t =newTransaction();
t.setAccountNumber(10201);
t.setTransactionDate(today);
t.setDescription("Transaction 3");
t.setAmount(-25.0);
t.add();
}
}
Lab 1/Banking System/src/banking/domain/Account.javaLab
1/Banking
System/src/banking/domain/Account.javapackage banking.doma
in;
import banking.database.AccountDA;
import java.util.Date;
import java.util.ArrayList;
publicabstractclassAccount{
privateint accountNumber;
privateint customerID;
privateString accountName;
privateDate dateOpened;
publicvoid add(){
AccountDA.add(this);
}
publicString getAccountName(){
return accountName;
}
publicint getAccountNumber(){
return accountNumber;
}
publicstaticArrayList<Account> getCustomerAccounts(int custI
D){
returnAccountDA.getCustomerAccounts(custID);
}
publicint getCustomerID(){
return customerID;
}
publicDate getDateOpened(){
return dateOpened;
}
publicArrayList<Transaction> getTransactions(){
returnTransaction.getAccountTransactions(accountNumber);
}
publicstaticvoid initialize(){
AccountDA.initialize();
}
publicvoid setAccountName(String accountName){
this.accountName = accountName;
}
publicvoid setAccountNumber(int accountNumber){
this.accountNumber = accountNumber;
}
publicvoid setCustomerID(int customerID){
this.customerID = customerID;
}
publicvoid setDateOpened(Date dateOpened){
this.dateOpened = dateOpened;
}
publicString toString(){
ArrayList<Transaction> transactions = getTransactions();
double sum =0.0;
String returnString ="Account: "+ accountNumber +" "+ accoun
tName +" "+ dateOpened;
for(int i =0; i < transactions.size(); i++){
sum = sum+= transactions.get(i).getAmount();
returnString = returnString +"n "+ transactions.g
et(i)+" "+ sum;
}
return returnString;
}
}
Lab 1/Banking System/src/banking/domain/Asset.javaLab
1/Banking
System/src/banking/domain/Asset.javapackage banking.domain;
publicclassAssetextendsAccount{
}
Lab 1/Banking System/src/banking/domain/Customer.javaLab
1/Banking
System/src/banking/domain/Customer.javapackage banking.dom
ain;
import banking.database.CustomerDA;
import banking.domain.Account;
import java.util.ArrayList;
publicclassCustomer{
privateint customerID;
privateString name;
privatelong phoneNumber;
publicvoid add(){
CustomerDA.add(this);
}
publicstaticvoid add(Customer c){
CustomerDA.add(c);
}
publicArrayList<Account> getAccounts(){
returnAccount.getCustomerAccounts(customerID);
}
publicint getCustomerID(){
return customerID;
}
publicstaticArrayList<Customer> getCustomers(){
returnCustomerDA.getCustomers();
}
publicString getName(){
return name;
}
publiclong getPhoneNumber(){
return phoneNumber;
}
publicvoid setCustomerID(int customerID){
this.customerID = customerID;
}
publicvoid setName(String name){
this.name = name;
}
publicvoid setPhoneNumber(long phoneNumber){
this.phoneNumber = phoneNumber;
}
publicstaticvoid initialize(){
CustomerDA.inititialize();
}
publicString toString(){
String returnString ="nCustomer "+ customerID +" "+ name;
ArrayList<Account> accounts = getAccounts();
for(int i =0; i < accounts.size(); i++){
returnString = returnString +"n "+ accounts.get(i);
}
return returnString;
}
}
Lab 1/Banking System/src/banking/domain/Liability.javaLab
1/Banking
System/src/banking/domain/Liability.javapackage banking.doma
in;
publicclassLiabilityextendsAccount{
}
Lab 1/Banking System/src/banking/domain/Transaction.javaLab
1/Banking
System/src/banking/domain/Transaction.javapackage banking.do
main;
import banking.database.TransactionDA;
import java.util.ArrayList;
import java.util.Date;
publicclassTransaction{
privatedouble amount;
privateint transactionID;
privateDate transactionDate;
privateint accountNumber;
privateString description;
publicvoid add(){
TransactionDA.add(this);
}
publicint getAccountNumber(){
return accountNumber;
}
publicdouble getAmount(){
return amount;
}
publicstaticArrayList<Transaction> getAccountTransactions(int
accNo){
returnTransactionDA.getAccountTransactions(accNo);
}
publicString getDescription(){
return description;
}
publicDate getTransactionDate(){
return transactionDate;
}
publicint getTransactionID(){
return transactionID;
}
publicstaticvoid initialize(){
TransactionDA.initialize();
}
publicvoid setAccountNumber(int accountNumber){
this.accountNumber = accountNumber;
}
publicvoid setAmount(double amount){
this.amount = amount;
}
publicvoid setDescription(StringDescription){
this.description =Description;
}
publicvoid setTransactionDate(Date transactionDate){
this.transactionDate = transactionDate;
}
publicvoid setTransactionID(int transactionID){
this.transactionID = transactionID;
}
publicString toString(){
return""+ transactionID +" "+ transactionDate +" "+ description
+" "+ amount;
}
}

More Related Content

DOCX
JobTestbuild.xml Builds, tests, and runs the project J.docx
DOCX
Project3build.xml Builds, tests, and runs the project .docx
DOCX
stateDatabuild.xml Builds, tests, and runs the project.docx
DOCX
PRG 420 Week 3 Individual Assignment Netbeans Project (annual co.docx
PDF
Javascript ui for rest services
DOCX
Question IYou are going to use the semaphores for process sy.docx
PPTX
Java Unit Testing with Unitils
DOCX
Generated by CamScanner from intsig.comR416build.xml.docx
JobTestbuild.xml Builds, tests, and runs the project J.docx
Project3build.xml Builds, tests, and runs the project .docx
stateDatabuild.xml Builds, tests, and runs the project.docx
PRG 420 Week 3 Individual Assignment Netbeans Project (annual co.docx
Javascript ui for rest services
Question IYou are going to use the semaphores for process sy.docx
Java Unit Testing with Unitils
Generated by CamScanner from intsig.comR416build.xml.docx

Similar to Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx (20)

PPTX
In Memory Unit Testing with Apache DbUnit
PPT
Unit Testing DFC
PDF
Unit Testing on Android - Droidcon Berlin 2015
PPT
Unit Testing Documentum Foundation Classes Code
PPTX
Dusan Lukic Magento 2 Integration Tests Meet Magento Serbia 2016
DOCX
Total Compensationbuild.xml Builds, tests, and runs th.docx
ODP
AD208 - End to End Quality Processes for Top Notch XPages Apps
DOCX
HW_6-1build.xml Builds, tests, and runs the project HW.docx
DOCX
AlarmClockAlarmClockAlarmClock.Designer.vbGlobal.Microsoft..docx
PDF
Intro To JavaScript Unit Testing - Ran Mizrahi
PPTX
struts unit best pdf for struts java.pptx
PPTX
struts unit best pdf for struts java.pptx
PDF
Improving your Gradle builds
PDF
JavaOne 2016: Life after Modularity
PPT
Grails Connecting to MySQL
PDF
Presto Testing Tools: Benchto & Tempto (Presto Boston Meetup 10062015)
DOCX
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
PPTX
Browser testing with nightwatch.js
PDF
Chapter6 database connectivity
KEY
Javascript unit testing, yes we can e big
In Memory Unit Testing with Apache DbUnit
Unit Testing DFC
Unit Testing on Android - Droidcon Berlin 2015
Unit Testing Documentum Foundation Classes Code
Dusan Lukic Magento 2 Integration Tests Meet Magento Serbia 2016
Total Compensationbuild.xml Builds, tests, and runs th.docx
AD208 - End to End Quality Processes for Top Notch XPages Apps
HW_6-1build.xml Builds, tests, and runs the project HW.docx
AlarmClockAlarmClockAlarmClock.Designer.vbGlobal.Microsoft..docx
Intro To JavaScript Unit Testing - Ran Mizrahi
struts unit best pdf for struts java.pptx
struts unit best pdf for struts java.pptx
Improving your Gradle builds
JavaOne 2016: Life after Modularity
Grails Connecting to MySQL
Presto Testing Tools: Benchto & Tempto (Presto Boston Meetup 10062015)
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
Browser testing with nightwatch.js
Chapter6 database connectivity
Javascript unit testing, yes we can e big
Ad

More from croysierkathey (20)

DOCX
1.  Discuss the organization and the family role in every one of the.docx
DOCX
1.  Compare and contrast DEmilios Capitalism and Gay Identity .docx
DOCX
1.Purpose the purpose of this essay is to spread awareness .docx
DOCX
1.  Tell us why it is your favorite film.2.  Talk about the .docx
DOCX
1.What are the main issues facing Fargo and Town Manager Susan.docx
DOCX
1.Writing Practice in Reading a PhotographAttached Files.docx
DOCX
1.Some say that analytics in general dehumanize managerial activitie.docx
DOCX
1.What is the psychological term for the symptoms James experiences .docx
DOCX
1.Write at least 500 words discussing the benefits of using R with H.docx
DOCX
1.What is Starbucks’ ROA for 2012, 2011, and 2010 Why might focusin.docx
DOCX
1.  Discuss the cultural development of the Japanese and the Jewis.docx
DOCX
1.  Discuss at least 2  contextual factors(family, peers,  school,.docx
DOCX
1.Write at least 500 words in APA format discussing how to use senti.docx
DOCX
1.The following clause was added to the Food and Drug Actthe S.docx
DOCX
1.What are social determinants of health  Explain how social determ.docx
DOCX
1.This week, we’ve been introduced to the humanities and have ta.docx
DOCX
1.What are barriers to listening2.Communicators identif.docx
DOCX
1.Timeline description and details There are multiple way.docx
DOCX
1.The PresidentArticle II of the Constitution establishe.docx
DOCX
1.What other potential root causes might influence patient fal.docx
1.  Discuss the organization and the family role in every one of the.docx
1.  Compare and contrast DEmilios Capitalism and Gay Identity .docx
1.Purpose the purpose of this essay is to spread awareness .docx
1.  Tell us why it is your favorite film.2.  Talk about the .docx
1.What are the main issues facing Fargo and Town Manager Susan.docx
1.Writing Practice in Reading a PhotographAttached Files.docx
1.Some say that analytics in general dehumanize managerial activitie.docx
1.What is the psychological term for the symptoms James experiences .docx
1.Write at least 500 words discussing the benefits of using R with H.docx
1.What is Starbucks’ ROA for 2012, 2011, and 2010 Why might focusin.docx
1.  Discuss the cultural development of the Japanese and the Jewis.docx
1.  Discuss at least 2  contextual factors(family, peers,  school,.docx
1.Write at least 500 words in APA format discussing how to use senti.docx
1.The following clause was added to the Food and Drug Actthe S.docx
1.What are social determinants of health  Explain how social determ.docx
1.This week, we’ve been introduced to the humanities and have ta.docx
1.What are barriers to listening2.Communicators identif.docx
1.Timeline description and details There are multiple way.docx
1.The PresidentArticle II of the Constitution establishe.docx
1.What other potential root causes might influence patient fal.docx
Ad

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Presentation on HIE in infants and its manifestations
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Institutional Correction lecture only . . .
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Lesson notes of climatology university.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
O5-L3 Freight Transport Ops (International) V1.pdf
01-Introduction-to-Information-Management.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Presentation on HIE in infants and its manifestations
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Institutional Correction lecture only . . .
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Lesson notes of climatology university.
2.FourierTransform-ShortQuestionswithAnswers.pdf
GDM (1) (1).pptx small presentation for students
Module 4: Burden of Disease Tutorial Slides S2 2025
Computing-Curriculum for Schools in Ghana
Pharma ospi slides which help in ospi learning
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf

Lab 1Banking Systembuild.xmlBuilds, tests, and runs the proj.docx

  • 1. Lab 1/Banking System/build.xml Builds, tests, and runs the project Banking System. Lab 1/Banking System/build/classes/.netbeans_automatic_build Lab 1/Banking System/build/classes/.netbeans_update_resources Lab 1/Banking System/build/classes/banking/BankingSystem.classpackage banking; publicsynchronizedclass BankingSystem { public void BankingSystem(); publicstatic void main(String[]); } Lab 1/Banking System/build/classes/banking/database/AccountDA.classpackag e banking.database; publicsynchronizedclass AccountDA { publicstatic java.util.ArrayList accounts; public void AccountDA(); publicstatic void add(banking.domain.Account); publicstatic java.util.ArrayList getCustomerAccounts(int); publicstatic void initialize(); static void <clinit>(); }
  • 2. Lab 1/Banking System/build/classes/banking/database/CustomerDA.classpacka ge banking.database; publicsynchronizedclass CustomerDA { privatestatic java.util.ArrayList customers; public void CustomerDA(); publicstatic void add(banking.domain.Customer); publicstatic java.util.ArrayList getCustomers(); publicstatic void inititialize(); static void <clinit>(); } Lab 1/Banking System/build/classes/banking/database/TransactionDA.classpac kage banking.database; publicsynchronizedclass TransactionDA { privatestatic java.util.ArrayList transactions; public void TransactionDA(); publicstatic void add(banking.domain.Transaction); publicstatic java.util.ArrayList getAccountTransactions(int); publicstatic void initialize(); static void <clinit>(); } Lab 1/Banking System/build/classes/banking/domain/Account.classpackage banking.domain; publicabstractsynchronizedclass Account { private int accountNumber; private int customerID; private String accountName; private java.util.Date dateOpened; public void Account();
  • 3. public void add(); public String getAccountName(); public int getAccountNumber(); publicstatic java.util.ArrayList getCustomerAccounts(int); public int getCustomerID(); public java.util.Date getDateOpened(); public java.util.ArrayList getTransactions(); publicstatic void initialize(); public void setAccountName(String); public void setAccountNumber(int); public void setCustomerID(int); public void setDateOpened(java.util.Date); public String toString(); } Lab 1/Banking System/build/classes/banking/domain/Asset.classpackage banking.domain; publicsynchronizedclass Asset extends Account { public void Asset(); } Lab 1/Banking System/build/classes/banking/domain/Customer.classpackage banking.domain; publicsynchronizedclass Customer { private int customerID; private String name; private long phoneNumber; public void Customer(); public void add(); publicstatic void add(Customer); public java.util.ArrayList getAccounts(); public int getCustomerID();
  • 4. publicstatic java.util.ArrayList getCustomers(); public String getName(); public long getPhoneNumber(); public void setCustomerID(int); public void setName(String); public void setPhoneNumber(long); publicstatic void initialize(); public String toString(); } Lab 1/Banking System/build/classes/banking/domain/Liability.classpackage banking.domain; publicsynchronizedclass Liability extends Account { public void Liability(); } Lab 1/Banking System/build/classes/banking/domain/Transaction.classpackage banking.domain; publicsynchronizedclass Transaction { private double amount; private int transactionID; private java.util.Date transactionDate; private int accountNumber; private String description; public void Transaction(); public void add(); public int getAccountNumber(); public double getAmount(); publicstatic java.util.ArrayList getAccountTransactions(int); public String getDescription(); public java.util.Date getTransactionDate(); public int getTransactionID();
  • 5. publicstatic void initialize(); public void setAccountNumber(int); public void setAmount(double); public void setDescription(String); public void setTransactionDate(java.util.Date); public void setTransactionID(int); public String toString(); } Lab 1/Banking System/manifest.mf Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build Lab 1/Banking System/nbproject/build-impl.xml Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar
  • 19. Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
  • 22. Lab 1/Banking System/nbproject/genfiles.properties build.xml.data.CRC32=db319861 build.xml.script.CRC32=538a4852 [email protected] # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=db319861 nbproject/build-impl.xml.script.CRC32=ae7b57ca nbproject/[email protected] Lab 1/Banking System/nbproject/private/private.properties compile.on.save=true user.properties.file=C:UsersdstrongAppDataRoamingNet Beans8.2build.properties Lab 1/Banking System/nbproject/private/private.xml file:/C:/Users/dstrong/Documents/Yogi/Courses/CIS640/Project s/Labs/Banking%20System/Banking%20System/src/banking/do main/Transaction.java
  • 23. file:/C:/Users/dstrong/Documents/Yogi/Courses/CIS640/Project s/Labs/Banking%20System/Banking%20System/src/banking/dat abase/TransactionDA.java Lab 1/Banking System/nbproject/project.properties annotation.processing.enabled=true annotation.processing.enabled.in.editor=false annotation.processing.processor.options= annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources. dir}/ap-source-output build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here:
  • 24. build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results # Uncomment to specify the preferred debugger connection transport: #debug.transport=dt_socket debug.classpath= ${run.classpath} debug.test.classpath= ${run.test.classpath} # Files in build.classes.dir which should be excluded from distribution jar dist.archive.excludes= # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/Banking_System.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= includes=**
  • 25. jar.compress=false javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.external.vm=true javac.processorpath= ${javac.classpath} javac.source=1.8 javac.target=1.8 javac.test.classpath= ${javac.classpath}: ${build.classes.dir} javac.test.processorpath= ${javac.test.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding=${source.encoding}
  • 27. # You may also define separate properties like run-sys- prop.name=value instead of -Dname=value. # To set system properties for unit tests define test-sys- prop.name=value: run.jvmargs= run.test.classpath= ${javac.test.classpath}: ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test Lab 1/Banking System/nbproject/project.xml org.netbeans.modules.java.j2seproject Banking System
  • 28. Lab 1/Banking System/src/banking/BankingSystem.javaLab 1/Banking System/src/banking/BankingSystem.javapackage banking; import banking.domain.Customer; import banking.domain.Account; import banking.domain.Transaction; import java.util.ArrayList; publicclassBankingSystem{ publicstaticvoid main(String[] args){ Customer.initialize(); Account.initialize(); Transaction.initialize(); ArrayList<Customer> customers =Customer.getCustomers(); for(int i =0; i < customers.size(); i++){ System.out.println(customers.get(i)); } } } Lab 1/Banking System/src/banking/database/AccountDA.javaLab 1/Banking System/src/banking/database/AccountDA.javapackage banking.d atabase; import banking.domain.Account; import banking.domain.Asset; import banking.domain.Liability;
  • 29. import java.util.ArrayList; import java.util.Date; publicclassAccountDA{ publicstaticArrayList<Account> accounts =newArrayList<Acco unt>(5); publicstaticvoid add(Account acc){ accounts.add(acc); } publicstaticArrayList<Account> getCustomerAccounts(int custI D){ Account acc; ArrayList<Account> customerAccounts =newArrayList<Accoun t>(5); for(int i =0; i < accounts.size(); i++){ acc = accounts.get(i); if(acc.getCustomerID()== custID) customerAccounts.add(acc); } return customerAccounts; } publicstaticvoid initialize(){ Account a; Date today =newDate(); a =newAsset(); a.setAccountNumber(10101); a.setCustomerID(101); a.setAccountName("Customer One Checking Account"); a.setDateOpened(today); a.add();
  • 30. a =newAsset(); a.setAccountNumber(10102); a.setCustomerID(101); a.setAccountName("Customer One Savings Account"); a.setDateOpened(today); a.add(); a =newAsset(); a.setAccountNumber(10201); a.setCustomerID(102); a.setAccountName("Savings Account"); a.setDateOpened(today); a.add(); a =newLiability(); a.setAccountNumber(10202); a.setCustomerID(102); a.setAccountName("Customer Two Credit Card"); a.setDateOpened(today); a.add(); } } Lab 1/Banking System/src/banking/database/CustomerDA.javaLab 1/Banking System/src/banking/database/CustomerDA.javapackage banking. database; import banking.domain.Customer; import java.util.ArrayList; publicclassCustomerDA{ privatestaticArrayList<Customer> customers =newArrayList<C ustomer>(5);
  • 31. publicstaticvoid add(Customer c){ customers.add(c); } publicstaticArrayList<Customer> getCustomers(){ return customers; } publicstaticvoid inititialize(){ Customer c; c =newCustomer(); c.setCustomerID(101); c.setName("Customer One"); c.setPhoneNumber(5551212); c.add(); c =newCustomer(); c.setCustomerID(102); c.setName("Customer Two"); c.setPhoneNumber(4442323); c.add(); } } Lab 1/Banking System/src/banking/database/TransactionDA.javaLab 1/Banking System/src/banking/database/TransactionDA.javapackage banki ng.database; import banking.domain.Transaction; import java.util.ArrayList; import java.util.Date;
  • 32. publicclassTransactionDA{ privatestaticArrayList<Transaction> transactions =newArrayLis t<Transaction>(5); publicstaticvoid add(Transaction trans){ trans.setTransactionID(transactions.size()+1); transactions.add(trans); } publicstaticArrayList<Transaction> getAccountTransactions(int accNo){ ArrayList<Transaction> accountTransactions =newArrayList<Tr ansaction>(5); Transaction trans; for(int i =0; i < transactions.size(); i++){ trans = transactions.get(i); if(accNo == trans.getAccountNumber()) accountTransactions.add(trans); } return accountTransactions; } publicstaticvoid initialize(){ Transaction t; Date today =newDate(); t =newTransaction(); t.setAccountNumber(10101); t.setTransactionDate(today); t.setDescription("Transaction 1"); t.setAmount(100); t.add(); t =newTransaction();
  • 33. t.setAccountNumber(10101); t.setTransactionDate(today); t.setDescription("Transaction 2"); t.setAmount(-21.95); t.add(); t =newTransaction(); t.setAccountNumber(10101); t.setTransactionDate(today); t.setDescription("Transaction 3"); t.setAmount(16.25); t.add(); t =newTransaction(); t.setAccountNumber(10102); t.setTransactionDate(today); t.setDescription("Transaction 1"); t.setAmount(50.00); t.add(); t =newTransaction(); t.setAccountNumber(10102); t.setTransactionDate(today); t.setDescription("Transaction 2"); t.setAmount(250.00); t.add(); t =newTransaction(); t.setAccountNumber(10102); t.setTransactionDate(today); t.setDescription("Transaction 3"); t.setAmount(-10.00); t.add(); t =newTransaction(); t.setAccountNumber(10202);
  • 34. t.setTransactionDate(today); t.setDescription("Transaction 1"); t.setAmount(500.00); t.add(); t =newTransaction(); t.setAccountNumber(10202); t.setTransactionDate(today); t.setDescription("Transaction 2"); t.setAmount(-50.00); t.add(); t =newTransaction(); t.setAccountNumber(10202); t.setTransactionDate(today); t.setDescription("Transaction 3"); t.setAmount(25.00); t.add(); t =newTransaction(); t.setAccountNumber(10201); t.setTransactionDate(today); t.setDescription("Transaction 1"); t.setAmount(49.75); t.add(); t =newTransaction(); t.setAccountNumber(10201); t.setTransactionDate(today); t.setDescription("Transaction 2"); t.setAmount(16.25); t.add(); t =newTransaction(); t.setAccountNumber(10201); t.setTransactionDate(today);
  • 35. t.setDescription("Transaction 3"); t.setAmount(-25.0); t.add(); } } Lab 1/Banking System/src/banking/domain/Account.javaLab 1/Banking System/src/banking/domain/Account.javapackage banking.doma in; import banking.database.AccountDA; import java.util.Date; import java.util.ArrayList; publicabstractclassAccount{ privateint accountNumber; privateint customerID; privateString accountName; privateDate dateOpened; publicvoid add(){ AccountDA.add(this); } publicString getAccountName(){ return accountName; } publicint getAccountNumber(){ return accountNumber; } publicstaticArrayList<Account> getCustomerAccounts(int custI D){
  • 36. returnAccountDA.getCustomerAccounts(custID); } publicint getCustomerID(){ return customerID; } publicDate getDateOpened(){ return dateOpened; } publicArrayList<Transaction> getTransactions(){ returnTransaction.getAccountTransactions(accountNumber); } publicstaticvoid initialize(){ AccountDA.initialize(); } publicvoid setAccountName(String accountName){ this.accountName = accountName; } publicvoid setAccountNumber(int accountNumber){ this.accountNumber = accountNumber; } publicvoid setCustomerID(int customerID){ this.customerID = customerID; } publicvoid setDateOpened(Date dateOpened){ this.dateOpened = dateOpened; } publicString toString(){
  • 37. ArrayList<Transaction> transactions = getTransactions(); double sum =0.0; String returnString ="Account: "+ accountNumber +" "+ accoun tName +" "+ dateOpened; for(int i =0; i < transactions.size(); i++){ sum = sum+= transactions.get(i).getAmount(); returnString = returnString +"n "+ transactions.g et(i)+" "+ sum; } return returnString; } } Lab 1/Banking System/src/banking/domain/Asset.javaLab 1/Banking System/src/banking/domain/Asset.javapackage banking.domain; publicclassAssetextendsAccount{ } Lab 1/Banking System/src/banking/domain/Customer.javaLab 1/Banking System/src/banking/domain/Customer.javapackage banking.dom ain; import banking.database.CustomerDA; import banking.domain.Account; import java.util.ArrayList; publicclassCustomer{
  • 38. privateint customerID; privateString name; privatelong phoneNumber; publicvoid add(){ CustomerDA.add(this); } publicstaticvoid add(Customer c){ CustomerDA.add(c); } publicArrayList<Account> getAccounts(){ returnAccount.getCustomerAccounts(customerID); } publicint getCustomerID(){ return customerID; } publicstaticArrayList<Customer> getCustomers(){ returnCustomerDA.getCustomers(); } publicString getName(){ return name; } publiclong getPhoneNumber(){ return phoneNumber; } publicvoid setCustomerID(int customerID){ this.customerID = customerID; }
  • 39. publicvoid setName(String name){ this.name = name; } publicvoid setPhoneNumber(long phoneNumber){ this.phoneNumber = phoneNumber; } publicstaticvoid initialize(){ CustomerDA.inititialize(); } publicString toString(){ String returnString ="nCustomer "+ customerID +" "+ name; ArrayList<Account> accounts = getAccounts(); for(int i =0; i < accounts.size(); i++){ returnString = returnString +"n "+ accounts.get(i); } return returnString; } } Lab 1/Banking System/src/banking/domain/Liability.javaLab 1/Banking System/src/banking/domain/Liability.javapackage banking.doma in; publicclassLiabilityextendsAccount{ } Lab 1/Banking System/src/banking/domain/Transaction.javaLab
  • 40. 1/Banking System/src/banking/domain/Transaction.javapackage banking.do main; import banking.database.TransactionDA; import java.util.ArrayList; import java.util.Date; publicclassTransaction{ privatedouble amount; privateint transactionID; privateDate transactionDate; privateint accountNumber; privateString description; publicvoid add(){ TransactionDA.add(this); } publicint getAccountNumber(){ return accountNumber; } publicdouble getAmount(){ return amount; } publicstaticArrayList<Transaction> getAccountTransactions(int accNo){ returnTransactionDA.getAccountTransactions(accNo); } publicString getDescription(){ return description; }
  • 41. publicDate getTransactionDate(){ return transactionDate; } publicint getTransactionID(){ return transactionID; } publicstaticvoid initialize(){ TransactionDA.initialize(); } publicvoid setAccountNumber(int accountNumber){ this.accountNumber = accountNumber; } publicvoid setAmount(double amount){ this.amount = amount; } publicvoid setDescription(StringDescription){ this.description =Description; } publicvoid setTransactionDate(Date transactionDate){ this.transactionDate = transactionDate; } publicvoid setTransactionID(int transactionID){ this.transactionID = transactionID; } publicString toString(){ return""+ transactionID +" "+ transactionDate +" "+ description +" "+ amount;
  • 42. } }