Computer science work part 2
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.class
package online.ordering.system.ip1; public synchronized class OnlineOrderingSystemIP1 { public void OnlineOrderingSystemIP1(); private static String getStringInput(String); private static double totalCost(int, double, double); public static 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
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 Must set javac.includes No tests executed. Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent Must select some files in the IDE or set javac.includes 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 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
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:\\Users\\genta_000\\AppData\\Roaming\\NetBeans\\8.0.1\\build.properties
Ordering System IP2/nbproject/private/private.xml
file:/C:/Users/genta_000/Documents/NetBeansProjects/Online%20Ordering%20System%20IP1/src/online/ordering/system/ip1/OnlineOrderingSystemIP1.java
Ordering System IP2/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}/Online_Ordering_System_IP1.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=online.ordering.system.ip1.OnlineOrderingSystemIP1 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
Ordering System IP2/nbproject/project.xml
org.netbeans.modules.java.j2seproject Online Ordering System IP1
Ordering System IP2/src/online/ordering/system/ip1/OnlineOrderingSystemIP1.java
Ordering System IP2/src/online/ordering/system/ip1/OnlineOrderingSystemIP1.java
/*
* To change this license header, choose License Headers in Project 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
*/
public
class
OnlineOrderingSystemIP1
{
private
static
String
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 something in the prompt,\n Please try again, count remains "+(3-count));
}
if
(
input
.
isEmpty
()){
JOptionPane
.
showMessageDialog
(
null
,
"You must enter something in the prompt,\n Please try again latter"
);
System
.
exit
(
1
);
}
return
input
;
}
private
static
double
totalCost
(
int
number
,
double
cost
,
double
salesTaxRate
){
double
total
=
number
*
cost
;
double
tax
=
total
*
salesTaxRate
/
100
;
return
(
total
+
tax
);
}
/**
*
@param
args the command line arguments
*/
public
static
void
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 Ordering 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 customer (yes or no)? "
);
// Addition of Color Selection
tabletColor
=
getStringInput
(
"Please select a color for your Tablet: "
);
boolean
isNumber
=
false
;
do
{
try
{
quantity
=
Integer
.
parseInt
(
getStringInput
(
"Please enter quantity to order"
));
isNumber
=
true
;
}
catch
(
NumberFormatException
rr
){
JOptionPane
.
showMessageDialog
(
null
,
"Quantity must be a number"
);
}
}
while
(
!
isNumber
);
totalCost
=
totalCost
(
quantity
,
unitCost
,
taxRate
);
// build output strings
nameOutputMsg
=
"Welcome "
+
customerName
+
".\n\n"
;
returnOutputMsg
=
"Your return customer status is "
+
customerReturn
+
".\n"
;
colorOutputMsg
=
"Your Tablet color is: "
+
tabletColor
+
"\n"
;
totalCostMsg
=
"Total cost for "
+
quantity
+
" item(s) is: $"
+
totalCost
+
"\n"
;
greetingOutputMsg
=
"Thank you for visiting Microsoft!"
+
"\n\n"
+
"Your order should ship in less than 48 hours.\n"
;
// create and display output string
outputMsg
=
nameOutputMsg
+
returnOutputMsg
+
colorOutputMsg
+
totalCostMsg
+
greetingOutputMsg
;
JOptionPane
.
showMessageDialog
(
null
,
outputMsg
);
System
.
exit
(
0
);
}
// end main()
}
// 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 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 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
Week 3: Error Handling and File Input or Output
TBD
Week 4: Object-Oriented Techniques
TBD
Week 5: Inheritance and Polymorphism
TBD
References
TBD