Web Systems and E-Commerce SPRING 2007  BU4035

Home  |  Syllabus  |  Journal  | Project  | Exam Research  |  Gallery

02/13/2007

** On Tuesdays bring the first Volume of the textbook.  On Thursdays bring Volume 2**

 

TODAY'S MENU

1) Review of Last Class

2) Preparation for Quiz

            True/False

3) Textbook

        We are going to go over and dissect how search programs work.      

4)    Research

5)    Demo

6)    Problems and Obstacles.

7)    Gallery

8)   Web Class Management Site

            Your Web Class Management site should be fully functional. If it is not please let Dr. Ebrahimi know and we can help you.

 

1)  Review of Last Class

 

2) Preparation for Quiz  True/False

Quiz will be Thursday February 22nd 2007       

Start writing questions for the quiz and posting them on your Class Management Systems.  Make the questions from the class notes and Dr. Ebrahimi's class lectures.

Each student should write 10 questions for the quiz.

Try to avoid ambiguity when writing your quiz questions.  Each student should send both their questions and their answers for their quiz questions to Dr. Ebrahimi.  Please see the exam section for a sample quiz.

 

3) Textbook

We are going to go over the program on page 15 in the text.

1st Step: Understand how the program works and what it does.

2nd Step: Transfer the search engine to your tutorial system.

The code from the page is below.

    1:     #include <iostream>
    2:     #include <fstream>
    3:     #include <string.h>
    4:     using namespace std;
    5:     
    6:     main(){ 
    7:           char searchname[15], itemname [15], associateitem[14],  filename[13];
    8:           cout << ”ENTER THE DATA FILE NAME:  ”;
    9:           cin >> filename;
 10:           cout << endl << "ENTER THE SEARCH NAME:  ";
 11:           cin >> searchname;
 12:           ifstream fin( filename );
 13:           while( fin >> itemname >> associateitem ){
 14:                if( strcmp( searchname, itemname ) == 0 ){
 15:                     cout << associateitem << endl;
 16:                     return 0;
 17:                }  // end of if
 18:           }  // end of loop

 19:           cout << "NAME NOT FOUND" << endl;
 20:           return 0;
 21:     }  // end of main

    6:     main(){    This part of the code means that this is the MAIN function of the Program.

   7:           char searchname[15], itemname [15], associateitem[14],  filename[13]; These are the program variable declarations.

    8:           cout << ”ENTER THE DATA FILE NAME:  ”;  cout means display the text onto the screen.

    9:           cin >> filename; cin - means to get the input for the variable from the user.

 12:           ifstream fin( filename );   The blue highlight is the section where the loop in the program takes place.

Every search engine has a loop!  See the gallery for more info.

The most important component of Search Engines is the loop.  Every search engine has a data file.

The program on Page 15 will not change, it is a foundation search engine.  All that will change is the data file you are searching.

Search engines work by taking your request and processing it against an index data file.

You can use this search program in your tutorial to let students search for specific topics in C++ and pull up that information.

So why do we use C++?   Its a fast programming language.

C++ is fast because you only include in the code the variables and libraries you need.   So if you do not plan to fly, you should not have wings.  (See the Gallery for more info)

 

4)    Research

5)    Demo

6)    Problems and Obstacles.

7)    Gallery

8)   Web Class Management Site

       Professor Ebrahimi is going to design AACSB Accreditation site.

            1) Make a folder called AACSB

            2)  Create a file called Index.htm and one called            

home.htm.

            3)  Make copies of the Index file with the navigation buttons we need it.