assign1 - McGill University McGill University School of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
McGill University School of Computer Science McGill University School of Computer Science COMP-206 Software Systems Due: September 27, 2009 on WEB CT at 23:55 Operating Systems This assignment explores the Unix operating system and how its subsystems are inter- related. We will explore three areas in this system: the command line subsystem, the batch file subsystem and the operating system shell. Question 1: The Unix Operating System Command Line In order to help you understand how software systems work together, the goal of the course is to build a rudimentary web store. We will begin this here in question one. Many of the assignments will build on each other, each with the goal of completing a little bit more of that web store. As in all single user software projects we must first reserve some space on the hard drive to develop our web store application. To do this, we will need to create a directory space. From the class slides, week 1 – Manual Directory Organization, software developers try to organize and manage their software projects using many techniques. One such technique is the directory/folder structure where the program will reside while it is being developed. Using the Unix command line build the following directory structure: Within your home directory create a directory called PROJECTS. Within Projects create the directory STORE. Within Store create the directories: ARCHIVE, BACKUP, BUILD1, and DOCUMENTS. Within Build1 create the directories: SOURCE, DATA and RUNTIME. Within Source create the directories: BATCH, C, HTML, CGI, and PYTHON. As the course progresses we will create our programs in the Batch, C, HTML, CGI, and Python directories. Our database of products will be located in the DATA directory, and all the executables will be saved in the RUNTIME directory. This directory space is considered to be a part of our development environment. Later, we will have to put this on the web (for real) and this will be done in our deployment environment, PUBLIC_HTML (but that will come later). The next thing we need to decide is the type of products we would like to sell. This I will leave up to you, but we will need to create some databases. Since this is not a database jvybihal Page 1 9/13/2009
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
McGill University School of Computer Science course and since many of you have probably not programmed databases, our database will be a "flat file" database (i.e. a text file). You MUST use VI to create two of our primary databases (there will be more databases later): The first database is called INVENTORY.TXT. It will contain the following information: Product ID number, product name, quantity in stock, and unit price. Our second database is called MEMBERS.TXT. It will contain the following information: User ID, user password, user name, security level (1 = supervisor, 0 = regular user), and purchase history (dollar amount sum). As the names imply the inventory database will record the products your store sells and
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

assign1 - McGill University McGill University School of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online