Lab 1
Lab 1
Lab 1
Instructor
Student Name
CMSID
Department
Section
Introduction to Database system and
Lesson Set Tools for Database system and their Installation
1
Purpose 1. To get basic awareness of MS Access
2. To understand database system and why we are using it
3. To learn the basics of an editor and create simple database and add data to
the tables.
4. File Handling
Procedure 1. Students should read the Pre-lab Reading assignment before coming to lab.
2. Students should complete the Pre-lab Writing assignment before coming to
lab.
3. In the lab, students should complete Labs 1.1 through 1.4 in sequence.
Your instructor will give further instructions as to grading and completion of
the lab.
4. Students should complete the set of lab tasks before the next lab and get
them checked by their lab instructor.
Lab 1
2|Page
PRE-LAB READING ASSIGNMENT
MS Access
File Processing
3|Page
Pre lab writing assignment
4|Page
Lab 1
Lab 1.1
Installing MS Access
for database
Log in to Office 365. You can get to login page by clicking the Email
tab or the Office 365 tab in AccessBCC or by going to:
http://office365.bristolcc.edu.
Once you have signed in, click on Office 365 in the upper left-hand
corner to navigate to the home page.
Uncheck the Bing and MSN browser setting options. Click on Install
now.
Just a few more steps to install. Once the setup file is downloaded,
click Run, Say Yes and stay online until the installation is complete.
5|Page
(Click to close this window)
6|Page
Launch an Office application like Word, Excel, or Powerpoint and
click Accept to agree to the license terms
Click Sign in to get the most out of Office on the top right to register
your software.
Enter your email address to sign in and click Next. NOTE -- Signing
into your Office 365 account is required to register your software!
7|Page
The Installation is Complete! Look for Access 2016 under installed
programs and Click to run
8|Page
Lab 1.2 Lab Tasks
1. Create a Database with your name and make a table by name Friend List. The field should
be ID, First Name, Last Name, Phone Number, Email Address, Picture. And then add
records minimum 5.
3. Modify the code to create a txt file. The file name should be your name. Add all the data to
the file (ID, First Name, Last Name, Phone Number, Email Address). Now you need to read
the email address in the file exist.
4. #include <iostream>
5. #include <fstream>
6. using namespace std;
7. int main() {
8. string ID, first_name, last_name, phone_number,
email_address;
9. fstream username;
10. username.open("my_file", ios::out);
11. if (!username) {
12. cout << "File not created!";
13. }
14. else {
15. cout << "File created successfully! Now Enter
the Fields to insert in file";
16. cout << "ID: "; cin>>ID;
17. cout << "First Name: "; cin>>first_name;
18. cout << "Last Name: "; cin>>last_name;
19. cout << "Phone Number: "; cin>>phone_number;
20. cout << "Email Address: "; cin>>email_address;
21. username.close();
22. }
23. return 0;
24. }
9|Page
25.
10 | P a g e