SlideShare a Scribd company logo
1 of 13
EN1320: Module 2
Lab 2.1
Capturing the Reader’s Interest
Select and rewrite any one introduction and one conclusion to
make them engaging and inspiring.
For the introduction:
—a statement that tells the central
idea of the essay?
For the conclusion:
upport for the thesis or central idea?
upon?
Introduction 1:
Whether student-athletes should be monetarily compensated has
long been debated. On one side, the National Collegiate Athletic
Association (NCAA) and its supporters stand by NCAA rules,
regulations, and bylaws as their claim for why student-athletes
should not be paid. On the other side, critics stand by business
economics as well as other NCAA rules that regulate the amount
of money a student-athlete can earn in the academic year.
Although critics claim that the NCAA limits the amount of
money a student-athlete can earn in a year, the NCAA should
continue to not allow a pay-to-play standard. History has proven
that pay-to play programs would be unmanageable, scholarships
are compensation enough, and athletic departments would have
to become separate entities from the universities.
Introduction 2:
There is no question that society believes in the familiar saying,
“If you do the crime, then you have to do the time.” The prison
system is not meant to be a fun or happy place for convicted
criminals to serve their time. Its main purpose is to punish
anyone who breaks the law in order to decrease the crime rate.
Prison is not the safest and most humane place to be. Prisons
are dirty, chaotic, dangerous, and depressing, and it is not a life
that is worth living. The conditions in the prison systems need
to be improved to have positive outcomes such as reducing
recidivism and benefiting society financially.
Conclusion 1:
All of these points being said, euthanasia should never be used
against a patient’s will. If euthanasia is ever to be completely
legal in our states, we need to impose a very strict and concise
set of guidelines. Euthanasia could benefit many citizens with
no hope of a full recovery. Suffering cancer patients could have
a dignified alternative to their lives getting more unbearable by
the day, with countless tests, medications, procedures, and
prodding by dozens of doctors and nurses.
Conclusion 2:
In conclusion we cannot allow NASA to be dissolved or
underfunded due to the importance of the future of space
exploration and travel and the technology produced by NASA
that saves lives and benefits humanity. We need Washington
and NASA to come up with a 10-year plan and a funding system
to allow NASA to do the work that it needs to do unhindered.
Without a 10-year plan NASA will continue to be plagued by
the rapidly changing political scene, and progress will be slow
going at best. We also need to keep NASA focused and funded
to allow for more new life-saving technologies to be produced
through these space travel and exploration programs. At the
very least we need to keep the private sector companies funded
so that we do not enter a “space-gap” and have to pay Russia
obscene amounts of money to get our astronauts to the
international space station. The best case scenario would be to
give NASA a 10-year plan and funding system, as well as
continue to fund private sector companies to make space
exploration a much more obtainable and cost-effective notion.
1
foreach (DataRow dataRow in dataTable.Rows)
{
//Checks the "if" condition to see if the dataRow is
on the last record. If true, the
//".TrimEnd('r')" method removes the blankline that
is sent before the
//StreamWriter closes by defualt.
if (rowCount == (dataTable.Rows.Count - 1))
sw.Write(dataRow["item_id"].ToString()
+ dataRow["qoh"].ToString().PadLeft(4,
'0').TrimEnd('r'));
else
sw.WriteLine(dataRow["item_id"].ToString()
+ dataRow["qoh"].ToString().PadLeft(4, '0'));
//Counter to accuraletly loop through the foreach.
rowCount++;
}
//Closes the StreamWriter Stream
sw.Close();
SAI 430 week 1
iLab
iLAB OVERVIEW
Scenario/Summary
The simple process of reading data from a database and
transferring the data to a sequential file is a very integral part
of data and information systems in industry today. For the
system being developed in this course, this process is no less
important. The actions of reading data from a database will
actually take place in two different places in the system, and
deal with two different databases. For this first lab, we will
address one of those scenarios and create a small application
that ends up being applicable to the project.
For this first lab, we will use the Microsoft Visual Studio suite
of applications and build our lab project in C#.net. The
application will be very simple in nature, but at the same time it
offers all of the required functionality to accomplish the actions
needed. One nice thing about the .NET environment is that it
will do a lot of the work for you.
Very Important - Getting set up for the lab
You will be doing the labs for Visual Studio using the F: drive
on the Citrix server. It is suggested, but not mandatory, that you
create an SAI430 folder on your F drive just to keep your work
separate from other work you might have on that drive. By
doing this you actually will be taking the first steps to setting
up the work needed to complete the group project for this
course. If you decide to use the root F: drive, then keep that in
mind when reading the rest of the instructions for the lab.
Before you can successfully complete this lab project, you will
need to perform a few preliminary tasks to get your environment
set up for the lab. First, you will need to download the
INVENTORY.MDB access database from the Doc Sharing
tab in the course website and save it into your directory
structure on the F: drive. This is the same access database that
will be used for the group project, but we will also be using it
for several of the labs.
Deliverables
The main deliverables for this lab will be the C#.NET
application and output file. Because a C#.NET application has a
number of files associated with it contained in a directory folder
named after the project name, as well as two sub directories
("bin" and "obj") with sub-folders under those, it is important
that you submit all of the files needed for the application. By
right clicking on the file folder that bears the application name
(invgrb_la1) and then selecting to send the folder to a Zip file,
you will get all of the files as well as folder structure needed to
submit for grading. You will also want to add the output file to
this Zip file.
Submit only the one Zip file to the week 1 iLab dropbox for
grading.
iLAB STEPS
STEP 1: Creating a New Project
Back to Top
To begin the lab, first log into the iLab environment through
Citrix and select the folder labeled SAI430. In this folder you
will find icons for Windows Explorer, SQL*Plus and Visual
Studio 2005. For this lab you will want to open up Visual
Studio 2005. Be sure that you select "full access" from the
security window box so that you will be to be able to access the
C: on your current computer if you need to.
Once the Application has started up and you are at the Start
Page, select the create a new project option. When presented
with the New Project window like the one below, be sure that
you have highlighted Console Application under the Templates
window. Now give the new project the name INV_GRAB in the
Name field, and have the location field pointing to the
F:SAI430 folder you have on the F: drive. The diagram below
depicts what your New Project window should look similar to.
Once you have done this, select OK to complete this operation.
You may get a "Microsoft Development Environment" message
box stating that the project location is not a fully trusted .NET
runtime location. You can ignore this and just select OK. You
should now see your new project listed in the
Solution
Explorer window on the upper right hand corner of the editor
window. You are now ready to begin setting up your form.
STEP 2: Setting Up a Database Connection
Back to Top
The first step now is to set up a database connection with
Access and then a data set that can be used to transport the data
from the database to the application to be written to a file. For
the purposes of this lab and your project, you will only need
data from two columns in the ITEMS table of the INVENTORY
database, but we will control that with the code written later.
The following steps will lead you through the process of setting
up the connection.
· To begin, you need to add the following three namespaces to
the top of your application code:
using System.IO;
using System.Data;
using System.Data.OleDb;
Since you are going to be not only connecting to a database but
also writing data to a file, you will need all three of these listed.
· Now you can set up the connection to your Access database
that you downloaded and put in your folder. The actual
connection string is @"Provider=Microsoft.JET.OLEDB.4.0;
data source=F:inventory.mdb". This is a standard connection
string for MS Access. You will want to precede this with the
command - string conString = so that the finished connection
looks like this.
string conString = @"Provider=Microsoft.JET.OLEDB.4.0; data
source=F:SAI430inventory.mdb";
This is simply defining a string variable named conString and
assigning the connection string to it. We will use this variable
later.
· Now we need to define an OleDbConnection that will be used
to connect to the database. To do this you will need to define a
connection variable as a new OleDbConnection and point it to
the connection string defined in the previous step. Your code
should look like the following.
OleDbConnection conn = new OleDbConnection(conString);
Now you can connect and open the database with the following
command entered right below the line above.
conn.Open();
· Last, we need to declare a variable that will be used later on.
Although this really has nothing to do with setting up the
database connection, this is as good a place as any to do this.
You need to define a single variable named rowCount as an
integer and initialize it to zero. Your code should look like the
following.
int rowCount = 0;
STEP 3: Setting Up a Data Set
Back to Top
Now you will need to set up a Data Set that will be used to hold
the data that is pulled from the database so that it can be
processed. This dataset will hold all of the records from the
item table. We will use this data to write out our inventory list
to a file.
· You will need to create a query string that will be used to get
the data in the "item" table. This will be a simple select
statement that will get all of the data from the table (we will be
specific regarding what is needed later). You will need to define
a string variable for this query string similar to what you did for
the connection string. When finished, your new string should
look like the following:
string selectStr = "SELECT * FROM item";
There is a variable we will need to use later on, so we might as
well define and initialize at this point. The new variable is an
integer data type and needs to be named rowCount. Initialize it
to zero.
· Now you need a new OleDbDataAdapter to work with the
dataset. To do this you will need to define an object named
DataAdapter as a new OleDbDataAdapter and then use the
selectStr created above and the connection variable create to
load it. Your code should look like the following:
OleDbDataAdapter DataAdapter = new
OleDbDataAdapter(selectStr, conn);
· Now we can define the data set like the following:
DataSet dataSet = new DataSet();
This is a simple definition that we can use along with the
DataAdapter Fill method to fill the data set like the following:
DataAdapter.Fill(dataSet, "item");
· We now have one more step that will allow us to define which
columns we want to get data from later on. We need to define a
DataTable object based on the new dataSet. To do this you will
need the following code:
DataTable dataTable = dataSet.Tables[0];
STEP 4: Getting and Writing the Data
Back to Top
So far we have put everything together to get the data from the
database into our program. Now we need to deal with writing
the data out to a file. To do this we will be using the
StreamWriter class and some of its objects.
We must declare a new instance of the StreamWriter so that we
can obtain its methods. At the same time we can also initialize
the new writer to point to where we want the file to be written
to. Your code should look like the following.
StreamWriter sw = new
StreamWriter(@"F:sai430INV_GRB.txt", false);
Now we are ready to set up the processing to loop through our
data set, pull the data we need into a file, and print it out. To
help with this there is a file in Doc Sharing named
Lab1_code.txt. The code in this file can be copied and pasted
into the area of the code section you are working, just below the
line you added above. Be sure to change the directory path to
match yours for the output file.
You are now ready to make your last build. If everything has
been done correctly, you should end up with no error messages
and clean build. Once this has been done then you are ready to
execute the application by selecting Debug => Start from the
main menu. If all goes well you should be able to find your
output file in the location listed in the program.
STEP 5: Building the Application
Back to Top
You are now ready to make your last build, but first you need to
make two changes to the properties for your project.
Changing the build option for 32-bit.
We need to build the application as a 32-bit application so it
will work with the Microsoft ODBC drivers for Access; to do
this you will need to select Project => INV_GRAB
Properties from the main menu. Now select the Build tab on the
side of the properties box, and then in the drop down list next to
Program Target, select the X86 option. This will allow the
application to build as a 32-bit application. Do not close the
properties window yet though, because there is one more step.
Setting the Security option:
Now select the Security tab on the left side. Check the Enable
ClickOnce Security Settings check box. This is a full trust
application option, which is what you want.
Now select File => Save All from the main menu and then close
the properties window.
Now you can either build or re-build the application. If
everything has been done correctly, you should end up with no
error messages and clean build. Once this has been done, you
are ready to execute the application by selecting Debug => Start
from the main menu. If all goes well you should be able to find
your output file in the location listed in the program.
STEP 6: Testing Your Application
Back to Top
You first want to make sure that you have the Inventory.MDB
database in the SAI430 folder on the F: of your directory
structure in Citrix. This should also be the same location of
your source code project and the location to which you have
pointed the program to write the output file. In order to test the
application and generate the output document you will need to
turn in, do the following:
1. Again, make sure the application, inventory.mdb, and the
output path in the application are all using the SAI430 directory
on the F: drive in Citrix.
2. Execute your program.
3. Check to make sure that the output file has the correct data in
it.
4. Submit this file along with your code to be graded.
Course Project
Course Project Review Only
Discussions
1.
Information vs. Service Integration (graded)
The author states that there is a clear trend in moving away
from information-oriented integration and toward service-
oriented integration. Do you see any examples in your work
environment or experience that would support this? Why do
you think this is true, or do you disagree with the author?
2.
Lab and Project Forum (graded)
This thread is used to discuss the programming labs and project
techniques. Post any programming questions or "hints and tips"
on this week's programming lab. At a minimum, post at least
three notes that highlight the key programming techniques,
problems you had with this week's lab, or help to other students.

More Related Content

Similar to EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx

MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPMCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPAli Shah
 
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docx
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docxMajor AssignmentDue5pm Friday, Week 11. If you unable to submit on.docx
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docxinfantsuk
 
Nhibernate Part 1
Nhibernate   Part 1Nhibernate   Part 1
Nhibernate Part 1guest075fec
 
CSE 382Project #1 - US LocationsSummer 2021You will
CSE 382Project #1 - US LocationsSummer 2021You will CSE 382Project #1 - US LocationsSummer 2021You will
CSE 382Project #1 - US LocationsSummer 2021You will MargenePurnell14
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docxhoney725342
 
computer notes - Data Structures - 1
computer notes - Data Structures - 1computer notes - Data Structures - 1
computer notes - Data Structures - 1ecomputernotes
 
Week 4 Project - STAT 3001Student Name Type your name here.docx
Week 4 Project - STAT 3001Student Name Type your name here.docxWeek 4 Project - STAT 3001Student Name Type your name here.docx
Week 4 Project - STAT 3001Student Name Type your name here.docxmelbruce90096
 
INF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.comINF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.comlechenau71
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comlechenau48
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studioAravindharamanan S
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studioAravindharamanan S
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Robin O'Brien
 
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docx
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docxCSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docx
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docxfaithxdunce63732
 
La6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsLa6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsAzmiah Mahmud
 

Similar to EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx (18)

MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPMCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
 
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docx
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docxMajor AssignmentDue5pm Friday, Week 11. If you unable to submit on.docx
Major AssignmentDue5pm Friday, Week 11. If you unable to submit on.docx
 
Getting started with R
Getting started with RGetting started with R
Getting started with R
 
Nhibernate Part 1
Nhibernate   Part 1Nhibernate   Part 1
Nhibernate Part 1
 
CSE 382Project #1 - US LocationsSummer 2021You will
CSE 382Project #1 - US LocationsSummer 2021You will CSE 382Project #1 - US LocationsSummer 2021You will
CSE 382Project #1 - US LocationsSummer 2021You will
 
Colloquium Report
Colloquium ReportColloquium Report
Colloquium Report
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docx
 
computer notes - Data Structures - 1
computer notes - Data Structures - 1computer notes - Data Structures - 1
computer notes - Data Structures - 1
 
Week 4 Project - STAT 3001Student Name Type your name here.docx
Week 4 Project - STAT 3001Student Name Type your name here.docxWeek 4 Project - STAT 3001Student Name Type your name here.docx
Week 4 Project - STAT 3001Student Name Type your name here.docx
 
Cloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.comCloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.com
 
INF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.comINF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.com
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.com
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Introduction to Behavior Driven Development
Introduction to Behavior Driven Development
 
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docx
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docxCSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docx
CSCI-UA 102 sec 3,5, Fall 2015Programming Project 6Joann.docx
 
La6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsLa6 ict-topic-6-information-systems
La6 ict-topic-6-information-systems
 
154090896 installation-of-oracle-database-12c
154090896 installation-of-oracle-database-12c154090896 installation-of-oracle-database-12c
154090896 installation-of-oracle-database-12c
 

More from YASHU40

April 19, 2018 Course #Title MATU-203 – Introduction.docx
April 19, 2018  Course #Title  MATU-203 – Introduction.docxApril 19, 2018  Course #Title  MATU-203 – Introduction.docx
April 19, 2018 Course #Title MATU-203 – Introduction.docxYASHU40
 
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxAPUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxYASHU40
 
Appropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxAppropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxYASHU40
 
Approaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxApproaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxYASHU40
 
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxArchaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxYASHU40
 
Applying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxApplying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxYASHU40
 
Applying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxApplying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxYASHU40
 
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxApply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxYASHU40
 
April is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxApril is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxYASHU40
 
Approximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxApproximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxYASHU40
 
Approaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxApproaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxYASHU40
 
Apply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxApply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxYASHU40
 
Apply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxApply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxYASHU40
 
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxApply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxYASHU40
 
APA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxAPA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxYASHU40
 
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
APA less than 10  similarityWeek 7 Discussion Question Chapter.docxAPA less than 10  similarityWeek 7 Discussion Question Chapter.docx
APA less than 10 similarityWeek 7 Discussion Question Chapter.docxYASHU40
 
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxAPPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxYASHU40
 
APAless than 10 similarityWeek 4 Discussion Question .docx
APAless than 10  similarityWeek 4 Discussion Question .docxAPAless than 10  similarityWeek 4 Discussion Question .docx
APAless than 10 similarityWeek 4 Discussion Question .docxYASHU40
 
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxAPA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxYASHU40
 
Application Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxApplication Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxYASHU40
 

More from YASHU40 (20)

April 19, 2018 Course #Title MATU-203 – Introduction.docx
April 19, 2018  Course #Title  MATU-203 – Introduction.docxApril 19, 2018  Course #Title  MATU-203 – Introduction.docx
April 19, 2018 Course #Title MATU-203 – Introduction.docx
 
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxAPUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
 
Appropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxAppropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docx
 
Approaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxApproaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docx
 
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxArchaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
 
Applying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxApplying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docx
 
Applying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxApplying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docx
 
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxApply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
 
April is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxApril is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docx
 
Approximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxApproximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docx
 
Approaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxApproaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docx
 
Apply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxApply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docx
 
Apply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxApply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docx
 
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxApply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
 
APA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxAPA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docx
 
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
APA less than 10  similarityWeek 7 Discussion Question Chapter.docxAPA less than 10  similarityWeek 7 Discussion Question Chapter.docx
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
 
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxAPPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
 
APAless than 10 similarityWeek 4 Discussion Question .docx
APAless than 10  similarityWeek 4 Discussion Question .docxAPAless than 10  similarityWeek 4 Discussion Question .docx
APAless than 10 similarityWeek 4 Discussion Question .docx
 
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxAPA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
 
Application Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxApplication Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docx
 

Recently uploaded

Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 

Recently uploaded (20)

Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx

  • 1. EN1320: Module 2 Lab 2.1 Capturing the Reader’s Interest Select and rewrite any one introduction and one conclusion to make them engaging and inspiring. For the introduction: —a statement that tells the central idea of the essay? For the conclusion: upport for the thesis or central idea? upon? Introduction 1: Whether student-athletes should be monetarily compensated has long been debated. On one side, the National Collegiate Athletic Association (NCAA) and its supporters stand by NCAA rules, regulations, and bylaws as their claim for why student-athletes should not be paid. On the other side, critics stand by business economics as well as other NCAA rules that regulate the amount of money a student-athlete can earn in the academic year. Although critics claim that the NCAA limits the amount of money a student-athlete can earn in a year, the NCAA should continue to not allow a pay-to-play standard. History has proven that pay-to play programs would be unmanageable, scholarships are compensation enough, and athletic departments would have
  • 2. to become separate entities from the universities. Introduction 2: There is no question that society believes in the familiar saying, “If you do the crime, then you have to do the time.” The prison system is not meant to be a fun or happy place for convicted criminals to serve their time. Its main purpose is to punish anyone who breaks the law in order to decrease the crime rate. Prison is not the safest and most humane place to be. Prisons are dirty, chaotic, dangerous, and depressing, and it is not a life that is worth living. The conditions in the prison systems need to be improved to have positive outcomes such as reducing recidivism and benefiting society financially. Conclusion 1: All of these points being said, euthanasia should never be used against a patient’s will. If euthanasia is ever to be completely legal in our states, we need to impose a very strict and concise set of guidelines. Euthanasia could benefit many citizens with no hope of a full recovery. Suffering cancer patients could have a dignified alternative to their lives getting more unbearable by the day, with countless tests, medications, procedures, and prodding by dozens of doctors and nurses. Conclusion 2: In conclusion we cannot allow NASA to be dissolved or underfunded due to the importance of the future of space exploration and travel and the technology produced by NASA that saves lives and benefits humanity. We need Washington and NASA to come up with a 10-year plan and a funding system to allow NASA to do the work that it needs to do unhindered.
  • 3. Without a 10-year plan NASA will continue to be plagued by the rapidly changing political scene, and progress will be slow going at best. We also need to keep NASA focused and funded to allow for more new life-saving technologies to be produced through these space travel and exploration programs. At the very least we need to keep the private sector companies funded so that we do not enter a “space-gap” and have to pay Russia obscene amounts of money to get our astronauts to the international space station. The best case scenario would be to give NASA a 10-year plan and funding system, as well as continue to fund private sector companies to make space exploration a much more obtainable and cost-effective notion. 1 foreach (DataRow dataRow in dataTable.Rows) { //Checks the "if" condition to see if the dataRow is on the last record. If true, the //".TrimEnd('r')" method removes the blankline that is sent before the //StreamWriter closes by defualt. if (rowCount == (dataTable.Rows.Count - 1)) sw.Write(dataRow["item_id"].ToString() + dataRow["qoh"].ToString().PadLeft(4,
  • 4. '0').TrimEnd('r')); else sw.WriteLine(dataRow["item_id"].ToString() + dataRow["qoh"].ToString().PadLeft(4, '0')); //Counter to accuraletly loop through the foreach. rowCount++; } //Closes the StreamWriter Stream sw.Close(); SAI 430 week 1 iLab iLAB OVERVIEW Scenario/Summary The simple process of reading data from a database and transferring the data to a sequential file is a very integral part of data and information systems in industry today. For the system being developed in this course, this process is no less important. The actions of reading data from a database will actually take place in two different places in the system, and deal with two different databases. For this first lab, we will address one of those scenarios and create a small application that ends up being applicable to the project. For this first lab, we will use the Microsoft Visual Studio suite of applications and build our lab project in C#.net. The application will be very simple in nature, but at the same time it offers all of the required functionality to accomplish the actions needed. One nice thing about the .NET environment is that it
  • 5. will do a lot of the work for you. Very Important - Getting set up for the lab You will be doing the labs for Visual Studio using the F: drive on the Citrix server. It is suggested, but not mandatory, that you create an SAI430 folder on your F drive just to keep your work separate from other work you might have on that drive. By doing this you actually will be taking the first steps to setting up the work needed to complete the group project for this course. If you decide to use the root F: drive, then keep that in mind when reading the rest of the instructions for the lab. Before you can successfully complete this lab project, you will need to perform a few preliminary tasks to get your environment set up for the lab. First, you will need to download the INVENTORY.MDB access database from the Doc Sharing tab in the course website and save it into your directory structure on the F: drive. This is the same access database that will be used for the group project, but we will also be using it for several of the labs. Deliverables The main deliverables for this lab will be the C#.NET application and output file. Because a C#.NET application has a number of files associated with it contained in a directory folder named after the project name, as well as two sub directories ("bin" and "obj") with sub-folders under those, it is important that you submit all of the files needed for the application. By right clicking on the file folder that bears the application name (invgrb_la1) and then selecting to send the folder to a Zip file, you will get all of the files as well as folder structure needed to submit for grading. You will also want to add the output file to this Zip file. Submit only the one Zip file to the week 1 iLab dropbox for grading. iLAB STEPS STEP 1: Creating a New Project Back to Top To begin the lab, first log into the iLab environment through
  • 6. Citrix and select the folder labeled SAI430. In this folder you will find icons for Windows Explorer, SQL*Plus and Visual Studio 2005. For this lab you will want to open up Visual Studio 2005. Be sure that you select "full access" from the security window box so that you will be to be able to access the C: on your current computer if you need to. Once the Application has started up and you are at the Start Page, select the create a new project option. When presented with the New Project window like the one below, be sure that you have highlighted Console Application under the Templates window. Now give the new project the name INV_GRAB in the Name field, and have the location field pointing to the F:SAI430 folder you have on the F: drive. The diagram below depicts what your New Project window should look similar to. Once you have done this, select OK to complete this operation. You may get a "Microsoft Development Environment" message box stating that the project location is not a fully trusted .NET runtime location. You can ignore this and just select OK. You should now see your new project listed in the Solution Explorer window on the upper right hand corner of the editor window. You are now ready to begin setting up your form. STEP 2: Setting Up a Database Connection Back to Top The first step now is to set up a database connection with Access and then a data set that can be used to transport the data from the database to the application to be written to a file. For the purposes of this lab and your project, you will only need
  • 7. data from two columns in the ITEMS table of the INVENTORY database, but we will control that with the code written later. The following steps will lead you through the process of setting up the connection. · To begin, you need to add the following three namespaces to the top of your application code: using System.IO; using System.Data; using System.Data.OleDb; Since you are going to be not only connecting to a database but also writing data to a file, you will need all three of these listed. · Now you can set up the connection to your Access database that you downloaded and put in your folder. The actual connection string is @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:inventory.mdb". This is a standard connection string for MS Access. You will want to precede this with the command - string conString = so that the finished connection looks like this. string conString = @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:SAI430inventory.mdb"; This is simply defining a string variable named conString and assigning the connection string to it. We will use this variable later. · Now we need to define an OleDbConnection that will be used to connect to the database. To do this you will need to define a
  • 8. connection variable as a new OleDbConnection and point it to the connection string defined in the previous step. Your code should look like the following. OleDbConnection conn = new OleDbConnection(conString); Now you can connect and open the database with the following command entered right below the line above. conn.Open(); · Last, we need to declare a variable that will be used later on. Although this really has nothing to do with setting up the database connection, this is as good a place as any to do this. You need to define a single variable named rowCount as an integer and initialize it to zero. Your code should look like the following. int rowCount = 0; STEP 3: Setting Up a Data Set Back to Top Now you will need to set up a Data Set that will be used to hold the data that is pulled from the database so that it can be processed. This dataset will hold all of the records from the item table. We will use this data to write out our inventory list to a file. · You will need to create a query string that will be used to get the data in the "item" table. This will be a simple select statement that will get all of the data from the table (we will be specific regarding what is needed later). You will need to define
  • 9. a string variable for this query string similar to what you did for the connection string. When finished, your new string should look like the following: string selectStr = "SELECT * FROM item"; There is a variable we will need to use later on, so we might as well define and initialize at this point. The new variable is an integer data type and needs to be named rowCount. Initialize it to zero. · Now you need a new OleDbDataAdapter to work with the dataset. To do this you will need to define an object named DataAdapter as a new OleDbDataAdapter and then use the selectStr created above and the connection variable create to load it. Your code should look like the following: OleDbDataAdapter DataAdapter = new OleDbDataAdapter(selectStr, conn); · Now we can define the data set like the following: DataSet dataSet = new DataSet(); This is a simple definition that we can use along with the DataAdapter Fill method to fill the data set like the following: DataAdapter.Fill(dataSet, "item"); · We now have one more step that will allow us to define which columns we want to get data from later on. We need to define a DataTable object based on the new dataSet. To do this you will need the following code: DataTable dataTable = dataSet.Tables[0];
  • 10. STEP 4: Getting and Writing the Data Back to Top So far we have put everything together to get the data from the database into our program. Now we need to deal with writing the data out to a file. To do this we will be using the StreamWriter class and some of its objects. We must declare a new instance of the StreamWriter so that we can obtain its methods. At the same time we can also initialize the new writer to point to where we want the file to be written to. Your code should look like the following. StreamWriter sw = new StreamWriter(@"F:sai430INV_GRB.txt", false); Now we are ready to set up the processing to loop through our data set, pull the data we need into a file, and print it out. To help with this there is a file in Doc Sharing named Lab1_code.txt. The code in this file can be copied and pasted into the area of the code section you are working, just below the line you added above. Be sure to change the directory path to match yours for the output file. You are now ready to make your last build. If everything has been done correctly, you should end up with no error messages and clean build. Once this has been done then you are ready to execute the application by selecting Debug => Start from the main menu. If all goes well you should be able to find your output file in the location listed in the program.
  • 11. STEP 5: Building the Application Back to Top You are now ready to make your last build, but first you need to make two changes to the properties for your project. Changing the build option for 32-bit. We need to build the application as a 32-bit application so it will work with the Microsoft ODBC drivers for Access; to do this you will need to select Project => INV_GRAB Properties from the main menu. Now select the Build tab on the side of the properties box, and then in the drop down list next to Program Target, select the X86 option. This will allow the application to build as a 32-bit application. Do not close the properties window yet though, because there is one more step. Setting the Security option: Now select the Security tab on the left side. Check the Enable ClickOnce Security Settings check box. This is a full trust application option, which is what you want. Now select File => Save All from the main menu and then close the properties window. Now you can either build or re-build the application. If everything has been done correctly, you should end up with no error messages and clean build. Once this has been done, you are ready to execute the application by selecting Debug => Start
  • 12. from the main menu. If all goes well you should be able to find your output file in the location listed in the program. STEP 6: Testing Your Application Back to Top You first want to make sure that you have the Inventory.MDB database in the SAI430 folder on the F: of your directory structure in Citrix. This should also be the same location of your source code project and the location to which you have pointed the program to write the output file. In order to test the application and generate the output document you will need to turn in, do the following: 1. Again, make sure the application, inventory.mdb, and the output path in the application are all using the SAI430 directory on the F: drive in Citrix. 2. Execute your program. 3. Check to make sure that the output file has the correct data in it. 4. Submit this file along with your code to be graded. Course Project Course Project Review Only Discussions 1. Information vs. Service Integration (graded) The author states that there is a clear trend in moving away from information-oriented integration and toward service-
  • 13. oriented integration. Do you see any examples in your work environment or experience that would support this? Why do you think this is true, or do you disagree with the author? 2. Lab and Project Forum (graded) This thread is used to discuss the programming labs and project techniques. Post any programming questions or "hints and tips" on this week's programming lab. At a minimum, post at least three notes that highlight the key programming techniques, problems you had with this week's lab, or help to other students.