SlideShare a Scribd company logo
IP3/build.xml
Builds, tests, and runs the project IP3.
IP3/build/classes/.netbeans_automatic_build
IP3/build/classes/.netbeans_update_resources
IP3/build/classes/ip3/IP3.classpackage ip3;
publicsynchronizedclass IP3 extends Sub {
public void IP3();
publicstatic void main(String[]);
}
IP3/build/classes/ip3/Sub.classpackage ip3;
publicsynchronizedclass Sub {
private String name;
private String address;
private String beverage;
private String bread;
private String type;
private String size;
public void Sub();
public void Sub(String, String);
public String getName();
public void setName(String);
public String getAddress();
public void setAddress(String);
public String getBeverage();
public void setBeverage(String);
public String getBread();
public void setBread(String);
public String getType();
public void setType(String);
public String getSize();
public void setSize(String);
}
IP3/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
IP3/nbproject/build-impl.xml
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
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
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
Must set javac.includes
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
No tests executed.
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in
profiler.info.jvmargs.agent
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
IP3build.xml      Builds, tests, and runs the project IP3..docx
Must select some files in the IDE or set javac.includes
IP3build.xml      Builds, tests, and runs the project IP3..docx
To run this application from the command line without
Ant, try:
java -jar "${dist.jar.resolved}"
Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
This target only works when run from inside the NetBeans
IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans
IDE.
This target only works when run from inside the NetBeans
IDE.
This target only works when run from inside the NetBeans
IDE.
Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
IP3build.xml      Builds, tests, and runs the project IP3..docx
Must select some files in the IDE or set javac.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set applet.url
IP3/nbproject/genfiles.properties
build.xml.data.CRC32=379c7270
build.xml.script.CRC32=4880a0b6
[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=379c7270
nbproject/build-impl.xml.script.CRC32=43f0144f
nbproject/[email protected]
IP3/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:UsersPeteAppDataRoamingNetBe
ans8.0.2build.properties
IP3/nbproject/private/private.xml
IP3/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}/IP3.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.processorpath=
${javac.classpath}
javac.source=1.7
javac.target=1.7
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=ip3.IP3
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
IP3/nbproject/project.xml
org.netbeans.modules.java.j2seproject
IP3
IP3/src/ip3/IP3.javaIP3/src/ip3/IP3.java/*
* To change this license header, choose License Headers in Pro
ject Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ip3;
import java.util.ArrayList;
import javax.swing.JOptionPane;
/**
*
* @author Pete
*/
publicclass IP3 extendsSub{
/**
* @param args the command line arguments
*/
publicstaticvoid main(String[] args){
ArrayList<Sub> subList =newArrayList<Sub>();
double totalCost =0;
double ordersCost =0;
String drinkType ="Select Beverage:"
+"nEnter 1 for Coke"
+"nEnter 2 for Bottled Water"
+"nEnter 3 for Coffee"
+"nEnter 4 for Milkshake";
String bType ="Select Bread:"
+"nEnter 1 for Whole Wheat"
+"nEnter 2 for White Bread"
+"nEnter 3 for Italian Bread";
String sType ="Select Sandwich Type:"
+"nEnter 1 for BLT"
+"nEnter 2 for Italian Combo"
+"nEnter 3 for Vegetarian"
+"nenter 4 for Eggplant Parm";
String name =JOptionPane.showInputDialog("Enter Your Name
");
String address =JOptionPane.showInputDialog("Enter Your Add
ress");
String welcomeMsg ="Welcome "+ name +" ton"+"Famous Fav
orite Subsn";
String choice ="Y";
String output ="";
while("Y".equalsIgnoreCase(choice)){
int drinkTypeInt =Integer.parseInt(JOptionPane.showInputDialo
g(drinkType));
String beverage ="";
if(drinkTypeInt ==1){
beverage ="Coke";
totalCost = totalCost +1;
}elseif(drinkTypeInt ==2){
beverage ="Bottle Water";
}elseif(drinkTypeInt ==3){
beverage ="Coffee";
}elseif(drinkTypeInt ==4){
beverage ="Milkshake";
}
int breadTypeInt =Integer.parseInt(JOptionPane.showInputDialo
g(bType));
String bread ="";
if(breadTypeInt ==1){
bread ="Whole Wheat";
}elseif(breadTypeInt ==2){
bread ="White Bread";
}elseif(breadTypeInt ==3){
bread ="Italian Bread";
}
int sTypeInt =Integer.parseInt(JOptionPane.showInputDialog(sT
ype));
String sandwichType ="";
if(sTypeInt ==1){
sandwichType ="BLT";
}elseif(sTypeInt ==2){
sandwichType ="Italian Combo";
}elseif(sTypeInt ==3){
sandwichType ="Vegitarian";
}elseif(sTypeInt ==4){
sandwichType ="Eggplant Parm";
}
String sizeType ="Select Sandwich Size:"
+"n enter 1 for Footlong"
+"n enter 2 for six inch";
int sizeInt =Integer.parseInt(JOptionPane.showInputDialog(size
Type));
if(sizeInt ==1){
totalCost = totalCost +6.25;
}elseif(sizeInt ==2){
totalCost = totalCost +4;
}
String size = sizeInt +"";
Sub obj =newSub(name, address);
obj.setBeverage(beverage);
obj.setBread(bread);
obj.setType(sandwichType);
obj.setSize(size);
output +="nnBeverage : "+ obj.getBeverage()+"nBrea
d : "+ obj.getBread()+"n Type : "+ obj.getType()+"n Size : "+
obj.getSize()
+"nSub Total: $"+ totalCost;
ordersCost = ordersCost + totalCost;
totalCost =0;
choice =JOptionPane.showInputDialog("Does this concl
ude your order: (Y/N): ").toUpperCase();
}
output = welcomeMsg + output
+"nnTotal: "+ ordersCost
+"nnYour order will be delivered to:n"+ address;
JOptionPane.showMessageDialog(null, output);
}
}
IP3/src/ip3/Sub.javaIP3/src/ip3/Sub.java/*
* To change this license header, choose License Headers in Pro
ject Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ip3;
/**
*
* @author Pete
*/
publicclassSub{
privateString name;
privateString address;
privateString beverage;
privateString bread;
privateString type;
privateString size;
publicSub(){
}
publicSub(String name,String address){
this.name = name;
this.address = address;
}
publicString getName(){
return name;
}
publicvoid setName(String name){
this.name = name;
}
publicString getAddress(){
return address;
}
publicvoid setAddress(String address){
this.address = address;
}
publicString getBeverage(){
return beverage;
}
publicvoid setBeverage(String beverage){
this.beverage = beverage;
}
publicString getBread(){
return bread;
}
publicvoid setBread(String bread){
this.bread = bread;
}
publicString getType(){
return type;
}
publicvoid setType(String type){
this.type = type;
}
publicString getSize(){
return size;
}
publicvoid setSize(String size){
this.size = size;
}
}
IP3build.xml      Builds, tests, and runs the project IP3..docx

More Related Content

DOCX
Ordering System IP2buildclasses.netbeans_automatic_buildO.docx
DOCX
MyTunesbuild.xml Builds, tests, and runs the project M.docx
DOCX
stateDatabuild.xml Builds, tests, and runs the project.docx
PDF
Refactoring In Tdd The Missing Part
PDF
Writing Swift code with great testability
PPT
Demystifying Maven
PDF
TYPO3 Extension development using new Extbase framework
PDF
Commenting in Agile Development
Ordering System IP2buildclasses.netbeans_automatic_buildO.docx
MyTunesbuild.xml Builds, tests, and runs the project M.docx
stateDatabuild.xml Builds, tests, and runs the project.docx
Refactoring In Tdd The Missing Part
Writing Swift code with great testability
Demystifying Maven
TYPO3 Extension development using new Extbase framework
Commenting in Agile Development

Similar to IP3build.xml Builds, tests, and runs the project IP3..docx (20)

PPTX
Android Data Storagefinal
DOCX
gUIsInterfacebuild.xml Builds, tests, and runs the pro.docx
DOCX
Question IYou are going to use the semaphores for process sy.docx
PPT
I phone
PDF
UA testing with Selenium and PHPUnit - PHPBenelux Summer BBQ
PDF
Porting to Python 3
TXT
test
DOCX
Project3build.xml Builds, tests, and runs the project .docx
PPT
Devry cis-170-c-i lab-7-of-7-sequential-files
PPT
Devry cis-170-c-i lab-7-of-7-sequential-files
PDF
Code to copy Person.java .pdf
DOCX
Student Lab Activity CIS170 Week 6 Lab Instructions.docx
PPTX
Back-2-Basics: Exception & Event Instrumentation in .NET
PPTX
Back-2-Basics: Exception & Event Instrumentation in .NET
PDF
Drupal 8 configuration system for coders and site builders - Drupalaton 2013
PDF
Groovy for java developers
ODP
Continuous integration with Git & CI Joe
PPT
ch06-file-processing.ppt
ODP
Spring 4 final xtr_presentation
PDF
PyCon 2013 : Scripting to PyPi to GitHub and More
Android Data Storagefinal
gUIsInterfacebuild.xml Builds, tests, and runs the pro.docx
Question IYou are going to use the semaphores for process sy.docx
I phone
UA testing with Selenium and PHPUnit - PHPBenelux Summer BBQ
Porting to Python 3
test
Project3build.xml Builds, tests, and runs the project .docx
Devry cis-170-c-i lab-7-of-7-sequential-files
Devry cis-170-c-i lab-7-of-7-sequential-files
Code to copy Person.java .pdf
Student Lab Activity CIS170 Week 6 Lab Instructions.docx
Back-2-Basics: Exception & Event Instrumentation in .NET
Back-2-Basics: Exception & Event Instrumentation in .NET
Drupal 8 configuration system for coders and site builders - Drupalaton 2013
Groovy for java developers
Continuous integration with Git & CI Joe
ch06-file-processing.ppt
Spring 4 final xtr_presentation
PyCon 2013 : Scripting to PyPi to GitHub and More
Ad

More from christiandean12115 (20)

DOCX
100 Original WorkZero PlagiarismGraduate Level Writing Required.docx
DOCX
10.11771066480704270150THE FAMILY JOURNAL COUNSELING AND THE.docx
DOCX
10.11771066480703252339 ARTICLETHE FAMILY JOURNAL COUNSELING.docx
DOCX
10.11770022427803260263ARTICLEJOURNAL OF RESEARCH IN CRIME AN.docx
DOCX
10.11770022487105285962Journal of Teacher Education, Vol. 57,.docx
DOCX
10.11770011000002250638ARTICLETHE COUNSELING PSYCHOLOGIST M.docx
DOCX
10.1 What are three broad mechanisms that malware can use to propa.docx
DOCX
10.0 ptsPresentation of information was exceptional and included.docx
DOCX
10-K1f12312012-10k.htm10-KUNITED STATESSECURIT.docx
DOCX
10-K 1 f12312012-10k.htm 10-K UNITED STATESSECURITIES AN.docx
DOCX
10 What does a golfer, tennis player or cricketer (or any othe.docx
DOCX
10 September 2018· Watch video· Take notes withfor students.docx
DOCX
10 Research-Based Tips for Enhancing Literacy Instruct.docx
DOCX
10 Strategic Points for the Prospectus, Proposal, and Direct Pract.docx
DOCX
10 Most Common Err.docx
DOCX
10 Introduction Ask any IT manager about the chall.docx
DOCX
10 Customer Acquisition and Relationship ManagementDmitry .docx
DOCX
10 ELEMENTS OF LITERATURE (FROM A TO Z)   1  ​PLOT​ (seri.docx
DOCX
10 ers. Although one can learn definitions favor- able to .docx
DOCX
10 academic sources about the topic (Why is America so violent).docx
100 Original WorkZero PlagiarismGraduate Level Writing Required.docx
10.11771066480704270150THE FAMILY JOURNAL COUNSELING AND THE.docx
10.11771066480703252339 ARTICLETHE FAMILY JOURNAL COUNSELING.docx
10.11770022427803260263ARTICLEJOURNAL OF RESEARCH IN CRIME AN.docx
10.11770022487105285962Journal of Teacher Education, Vol. 57,.docx
10.11770011000002250638ARTICLETHE COUNSELING PSYCHOLOGIST M.docx
10.1 What are three broad mechanisms that malware can use to propa.docx
10.0 ptsPresentation of information was exceptional and included.docx
10-K1f12312012-10k.htm10-KUNITED STATESSECURIT.docx
10-K 1 f12312012-10k.htm 10-K UNITED STATESSECURITIES AN.docx
10 What does a golfer, tennis player or cricketer (or any othe.docx
10 September 2018· Watch video· Take notes withfor students.docx
10 Research-Based Tips for Enhancing Literacy Instruct.docx
10 Strategic Points for the Prospectus, Proposal, and Direct Pract.docx
10 Most Common Err.docx
10 Introduction Ask any IT manager about the chall.docx
10 Customer Acquisition and Relationship ManagementDmitry .docx
10 ELEMENTS OF LITERATURE (FROM A TO Z)   1  ​PLOT​ (seri.docx
10 ers. Although one can learn definitions favor- able to .docx
10 academic sources about the topic (Why is America so violent).docx
Ad

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Cell Types and Its function , kingdom of life
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PPTX
Lesson notes of climatology university.
Microbial diseases, their pathogenesis and prophylaxis
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Complications of Minimal Access Surgery at WLH
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
A systematic review of self-coping strategies used by university students to ...
Cell Types and Its function , kingdom of life
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
Anesthesia in Laparoscopic Surgery in India
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
O7-L3 Supply Chain Operations - ICLT Program
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
Lesson notes of climatology university.

IP3build.xml Builds, tests, and runs the project IP3..docx

  • 1. IP3/build.xml Builds, tests, and runs the project IP3. IP3/build/classes/.netbeans_automatic_build IP3/build/classes/.netbeans_update_resources IP3/build/classes/ip3/IP3.classpackage ip3; publicsynchronizedclass IP3 extends Sub { public void IP3(); publicstatic void main(String[]); } IP3/build/classes/ip3/Sub.classpackage ip3; publicsynchronizedclass Sub { private String name; private String address; private String beverage; private String bread; private String type; private String size; public void Sub(); public void Sub(String, String); public String getName(); public void setName(String); public String getAddress(); public void setAddress(String); public String getBeverage();
  • 2. public void setBeverage(String); public String getBread(); public void setBread(String); public String getType(); public void setType(String); public String getSize(); public void setSize(String); } IP3/manifest.mf Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build IP3/nbproject/build-impl.xml
  • 8. 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
  • 21. Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
  • 27. Must select some files in the IDE or set javac.includes
  • 29. To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}"
  • 30. Must select one file in the IDE or set run.class Must select one file in the IDE or set run.class
  • 31. Must select one file in the IDE or set debug.class Must select one file in the IDE or set debug.class Must set fix.includes This target only works when run from inside the NetBeans IDE.
  • 32. Must select one file in the IDE or set profile.class This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans IDE.
  • 33. Must select one file in the IDE or set run.class Must select some files in the IDE or set test.includes
  • 34. Must select one file in the IDE or set run.class Must select one file in the IDE or set applet.url
  • 36. Must select some files in the IDE or set javac.includes Some tests failed; see details above. Must select some files in the IDE or set test.includes
  • 37. Some tests failed; see details above. Must select some files in the IDE or set test.class Must select some method in the IDE or set test.method Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set test.class Must select some method in the IDE or set test.method Must select one file in the IDE or set applet.url
  • 38. Must select one file in the IDE or set applet.url
  • 39. IP3/nbproject/genfiles.properties build.xml.data.CRC32=379c7270 build.xml.script.CRC32=4880a0b6 [email protected] # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
  • 40. # 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=379c7270 nbproject/build-impl.xml.script.CRC32=43f0144f nbproject/[email protected] IP3/nbproject/private/private.properties compile.on.save=true user.properties.file=C:UsersPeteAppDataRoamingNetBe ans8.0.2build.properties IP3/nbproject/private/private.xml IP3/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
  • 41. 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=
  • 42. # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/IP3.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.processorpath= ${javac.classpath} javac.source=1.7 javac.target=1.7 javac.test.classpath= ${javac.classpath}: ${build.classes.dir}
  • 44. 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 IP3/nbproject/project.xml org.netbeans.modules.java.j2seproject
  • 45. IP3 IP3/src/ip3/IP3.javaIP3/src/ip3/IP3.java/* * To change this license header, choose License Headers in Pro ject Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ip3; import java.util.ArrayList; import javax.swing.JOptionPane; /** * * @author Pete */ publicclass IP3 extendsSub{ /** * @param args the command line arguments */ publicstaticvoid main(String[] args){ ArrayList<Sub> subList =newArrayList<Sub>(); double totalCost =0;
  • 46. double ordersCost =0; String drinkType ="Select Beverage:" +"nEnter 1 for Coke" +"nEnter 2 for Bottled Water" +"nEnter 3 for Coffee" +"nEnter 4 for Milkshake"; String bType ="Select Bread:" +"nEnter 1 for Whole Wheat" +"nEnter 2 for White Bread" +"nEnter 3 for Italian Bread"; String sType ="Select Sandwich Type:" +"nEnter 1 for BLT" +"nEnter 2 for Italian Combo" +"nEnter 3 for Vegetarian" +"nenter 4 for Eggplant Parm"; String name =JOptionPane.showInputDialog("Enter Your Name "); String address =JOptionPane.showInputDialog("Enter Your Add ress"); String welcomeMsg ="Welcome "+ name +" ton"+"Famous Fav orite Subsn"; String choice ="Y"; String output =""; while("Y".equalsIgnoreCase(choice)){ int drinkTypeInt =Integer.parseInt(JOptionPane.showInputDialo g(drinkType)); String beverage =""; if(drinkTypeInt ==1){ beverage ="Coke"; totalCost = totalCost +1; }elseif(drinkTypeInt ==2){ beverage ="Bottle Water"; }elseif(drinkTypeInt ==3){
  • 47. beverage ="Coffee"; }elseif(drinkTypeInt ==4){ beverage ="Milkshake"; } int breadTypeInt =Integer.parseInt(JOptionPane.showInputDialo g(bType)); String bread =""; if(breadTypeInt ==1){ bread ="Whole Wheat"; }elseif(breadTypeInt ==2){ bread ="White Bread"; }elseif(breadTypeInt ==3){ bread ="Italian Bread"; } int sTypeInt =Integer.parseInt(JOptionPane.showInputDialog(sT ype)); String sandwichType =""; if(sTypeInt ==1){ sandwichType ="BLT"; }elseif(sTypeInt ==2){ sandwichType ="Italian Combo"; }elseif(sTypeInt ==3){ sandwichType ="Vegitarian"; }elseif(sTypeInt ==4){ sandwichType ="Eggplant Parm"; } String sizeType ="Select Sandwich Size:" +"n enter 1 for Footlong" +"n enter 2 for six inch"; int sizeInt =Integer.parseInt(JOptionPane.showInputDialog(size Type)); if(sizeInt ==1){ totalCost = totalCost +6.25;
  • 48. }elseif(sizeInt ==2){ totalCost = totalCost +4; } String size = sizeInt +""; Sub obj =newSub(name, address); obj.setBeverage(beverage); obj.setBread(bread); obj.setType(sandwichType); obj.setSize(size); output +="nnBeverage : "+ obj.getBeverage()+"nBrea d : "+ obj.getBread()+"n Type : "+ obj.getType()+"n Size : "+ obj.getSize() +"nSub Total: $"+ totalCost; ordersCost = ordersCost + totalCost; totalCost =0; choice =JOptionPane.showInputDialog("Does this concl ude your order: (Y/N): ").toUpperCase(); } output = welcomeMsg + output +"nnTotal: "+ ordersCost +"nnYour order will be delivered to:n"+ address; JOptionPane.showMessageDialog(null, output); } }
  • 49. IP3/src/ip3/Sub.javaIP3/src/ip3/Sub.java/* * To change this license header, choose License Headers in Pro ject Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ip3; /** * * @author Pete */ publicclassSub{ privateString name; privateString address; privateString beverage; privateString bread; privateString type; privateString size; publicSub(){ } publicSub(String name,String address){ this.name = name; this.address = address; } publicString getName(){ return name; }
  • 50. publicvoid setName(String name){ this.name = name; } publicString getAddress(){ return address; } publicvoid setAddress(String address){ this.address = address; } publicString getBeverage(){ return beverage; } publicvoid setBeverage(String beverage){ this.beverage = beverage; } publicString getBread(){ return bread; } publicvoid setBread(String bread){ this.bread = bread; } publicString getType(){ return type; } publicvoid setType(String type){ this.type = type; } publicString getSize(){ return size; } publicvoid setSize(String size){ this.size = size; } }