Ordering System IP2/build/classes/.netbeans_automatic_build
Ordering System IP2/build/classes/.netbeans_update_resources
Ordering System IP2/build/classes/online/ordering/system/ip1/OnlineOrderingSystemIP1.classpackage online.ordering.system.ip1;
publicsynchronizedclass OnlineOrderingSystemIP1 {
public void OnlineOrderingSystemIP1();
privatestatic String getStringInput(String);
privatestatic double totalCost(int, double, double);
publicstatic void main(String[]);
}
Ordering System IP2/build.xml
Builds, tests, and runs the project Online Ordering System IP1.
Ordering System IP2/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Ordering System IP2/nbproject/build-impl.xml
.
Introduction to ArtificiaI Intelligence in Higher Education
Ordering System IP2buildclasses.netbeans_automatic_buildO.docx
1. Ordering System IP2/build/classes/.netbeans_automatic_build
Ordering System IP2/build/classes/.netbeans_update_resources
Ordering System
IP2/build/classes/online/ordering/system/ip1/OnlineOrderingSys
temIP1.classpackage online.ordering.system.ip1;
publicsynchronizedclass OnlineOrderingSystemIP1 {
public void OnlineOrderingSystemIP1();
privatestatic String getStringInput(String);
privatestatic double totalCost(int, double, double);
publicstatic void main(String[]);
}
Ordering System IP2/build.xml
Builds, tests, and runs the project Online Ordering System
IP1.
Ordering System IP2/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Ordering System IP2/nbproject/build-impl.xml
2.
3.
4.
5.
6.
7. 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
28. To run this application from the command line without
Ant, try:
java -jar "${dist.jar.resolved}"
29. Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
30. 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
31. 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.
33. 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
36. 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
37. 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
38.
39. Ordering System IP2/nbproject/genfiles.properties
build.xml.data.CRC32=3fef0086
build.xml.script.CRC32=4bdc748b
[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=3fef0086
nbproject/build-impl.xml.script.CRC32=ade8263c
nbproject/[email protected]
Ordering System IP2/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:Usersgenta_000AppDataRoaming
NetBeans8.0.1build.properties
Ordering System IP2/nbproject/private/private.xml
41. # 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}/Online_Ordering_System_IP1.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
42. 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}
44. # 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
Ordering System IP2/nbproject/project.xml
org.netbeans.modules.java.j2seproject
Online Ordering System IP1
45. Ordering System
IP2/src/online/ordering/system/ip1/OnlineOrderingSystemIP1.ja
vaOrdering System
IP2/src/online/ordering/system/ip1/OnlineOrderingSystemIP1.ja
va/*
* 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 online.ordering.system.ip1;
import javax.swing.JOptionPane;
/**
*
* @author James.Williams
* 10/13/2014
*/
publicclassOnlineOrderingSystemIP1{
privatestaticString getStringInput(String prompt){
String input=null;
int count=0;
while(count<3){
input=JOptionPane.showInputDialog(prompt);
if(!(input.trim()).isEmpty()){
break;
}
count++;
//JOptionPane.showMessageDialog(null, "You must enter somet
hing in the prompt,n Please try again, count remains "+(3-
count));
}
46. if(input.isEmpty()){
JOptionPane.showMessageDialog(null,"You must enter somethi
ng in the prompt,n Please try again latter");
System.exit(1);
}
return input;
}
privatestaticdouble totalCost(int number,double cost,double sale
sTaxRate){
double total=number*cost;
double tax=total*salesTaxRate/100;
return(total+tax);
}
/**
* @param args the command line arguments
*/
publicstaticvoid main(String[] args){
// declare variables
String openingMsg, customerName, nameOutputMsg
, customerReturn, returnOutputMsg,
greetingOutputMsg, outputMsg,
colorOutputMsg, tabletColor,totalCostMsg;
int quantity=0;
double unitCost=799;
double totalCost=0;
double taxRate=5;
// display opening message
openingMsg ="*** Welcome to Microsoft's Online Orderin
g System ***n"
+" It's a great day to order a Tablet!";
JOptionPane.showMessageDialog(null, openingMsg);
// get required input using dialogs
customerName = getStringInput("Please enter your name:
");
customerReturn =getStringInput("Are you a returning cust
47. omer (yes or no)? ");
// Addition of Color Selection
tabletColor = getStringInput("Please select a colo
r for your Tablet: ");
boolean isNumber=false;
do{
try{
quantity=Integer.parseInt(getStringInput("Pleas
e enter quantity to order"));
isNumber=true;
}catch(NumberFormatException rr){
JOptionPane.showMessageDialog(null,"Quantity must be a num
ber");
}
}while(!isNumber);
totalCost=totalCost(quantity,unitCost,taxRate);
// build output strings
nameOutputMsg ="Welcome "+ customerName +".nn";
returnOutputMsg ="Your return customer status is "+ cus
tomerReturn +".n";
colorOutputMsg ="Your Tablet color is: "+ tabletColor +"
n";
totalCostMsg="Total cost for "+quantity+" item(s) is
: $"+totalCost+"n";
greetingOutputMsg ="Thank you for visiting Microso
ft!"+"nn"
+"Your order should ship in less than 48 hours.n";
// create and display output string
outputMsg = nameOutputMsg + returnOutputMsg + colorO
utputMsg +totalCostMsg+greetingOutputMsg;
JOptionPane.showMessageDialog(null, outputMsg);
System.exit(0);
}// end main()
48. }// end class PizzasRUsPhase1
James Williams_IT110_IP2.doc.docx
IT110-1404A-02 Introduction to Programming
Phase 1 Ip
James Williams
10/13/2014
Microsoft Software Company Williams, James
Phase 1 Ip
Table of Contents
Page #
1. Warranty Information 1
2. Product Support 5
3. Contact Microsoft 9
4. How to Setup 13
a. How to Operate 17
5. Regulatory Model 21
a. Regulatory Type 23
6. Laptop Model 27
7. Letters of Support (submitted independently)
Week 1: Project Description
Microsoft was founded in 1975. Our mission is to enable people
and businesses throughout the world to realize their full
potential. We work to achieve this mission by creating
49. technology that transforms the way people work, play, and
communicate. We develop and market software, services, and
hardware that deliver new opportunities, greater convenience,
and enhanced value to people's lives. We do business worldwide
and have offices in more than 100 countries.
We generate revenue by developing, licensing, and supporting a
wide range of software products and services, by designing and
selling hardware, and by delivering relevant online advertising
to a global customer audience. In addition to selling individual
products and services, we offer suites of products and services.
Our products include operating systems for personal computers
("PCs"), servers, phones, and other intelligent devices; server
applications for distributed computing environments;
productivity applications; business solution applications;
desktop and server management tools; software development
tools; video games; and online advertising. We also design and
sell hardware including the Xbox 360 gaming and entertainment
console, Kinect for Xbox 360, Xbox 360 accessories, and
Microsoft PC hardware products.
We provide consulting and product and solution support
services, and we train and certify computer system integrators
and developers. We also offer cloud-based solutions that
provide customers with software, services and content over the
Internet by way of shared computing resources located in
centralized data centers. Cloud revenue is earned primarily from
usage fees and advertising.
The product we will discussing is the Microsoft Surface Pro 3,
the tablet that will replace your laptop. It is sleek and stylish
design gives you the power of a laptop with the flexibility of a
tablet. This tabet barely tips the scales at 1.76 pounds which
allows you to take it everywhere. It has a 12 inch screen that is
full HD and a screen resolution of 2160 x 1440. The battery life
is excellent with up to 9 hours of continuous web browsing.
This tablet also features a S.Pen and a 4th generation Intel Core
processor. It runs off or our new addition to the family
Windows 8. The Surface Pro 3 come in a variety of colors for
50. your style/liking.
· Bing, our Internet search engine that finds and organizes the
answers people need so they can make faster, more informed
decisions;
· Windows Live Essentials suite, which allows users to upload,
organize and store photos, make movies, communicate via
video, email, and messaging, and enhance online safety;
· Xbox LIVE service, which enables online gaming, social
networking, and access to a wide range of video, gaming, and
entertainment content;
· Microsoft Office 365, an online suite that enables people to
work from virtually anywhere, anytime, and on any device with
simple, familiar collaboration and communication solutions,
including Microsoft Office, Exchange, SharePoint, and Lync;
· Microsoft Dynamics CRM Online customer relationship
management services for sales, service and marketing
professionals provided through a familiar Microsoft Outlook
interface; and
Week 1: Java Fundamentals
Week 2: Java Control Structures
51. Week 3: Error Handling and File Input or Output
TBD
Week 4: Object-Oriented Techniques
TBD
Week 5: Inheritance and Polymorphism
TBD
References
TBD