Captain: Sharmin

09/18/06

Class notes

Bu4035

Today's Topic:

 

-How the search engine work?

-convert the search program pg 15 take as many files as possible.

You have to have a file that contains the name of every existing file.   Hint:  The directory is a file.

We are going to program manually for those who don't listen.

We will be trying it step by step.  We must get to a C++ environment.

CLICK
START >> ALL PROGRAMS >> Microsoft Visual Studio .NET 2003 >> Microsoft Visual Studio .NET 2003

You can also check page 459.

Bring the Volume 1 on Monday and Volume 2 on Wednesday.  More Web Programming on Mondays and Web Design on Wednesday.

for every c++ program you need this two line

#include <fstream>

#include <iostream>

TODAYS PROGRAM!

Search0918062.cpp
--------------------------------------------------------------------------------------------------

#include <fstream>

#include <iostream>

using namespace std;

int main (){

char searchname[15], itemname[15], associateitem[14], filename[13];

cout<<"ENTER THE DATA FILE NAME: ";

cin>>filename;

cout<<endl<<"ENTER THE SEARCH NAME: ";

cin>>searchname;

return 0;

 

engtospa.in

--------------------------------------------------------------------------------------------------

HELLO HOLA

BOOK LIBRO

SCHOOL ESCUELA

WATER AGUA

COMPUTER COMPUTADORA

FLOWER FLOR

http://64.233.161.104/search?q=cache:x2c1eIy0LZkJ:news.com.com/2100-1012-997350.html+research+microsoft+search+engine+project&hl=en&gl=us&ct=clnk&cd=9

 

#include <fstream>

#include <iostream>

using namespace std;

int main (){

char searchname[15], itemname[15], associateitem[14], filename[13];

cout<<"ENTER THE DATA FILE NAME: ";

cin>>filename;

cout<<endl<<"ENTER THE SEARCH NAME: ";

cin>>searchname;

ifstream fin(filename);

while(fin>>itemname>>associateitem){

if(strcmp(searchname,itemname)==0){

cout<<associateitem<<endl;

return 0;

}

}

return 0;

}

2/21/06

REVIEW FOR QUIZ

 

 

1. Submit 10 T/F question from your journal/textbook/Teacher's journal and whatever you have learned or think class should've learned.

 

So Email Dr. Ebrahimi @ ebrahimidr@gmail.com

 

If you have no idea look at the sample quiz's. There are 2 on the syllabus.

 

2. Please give your site Geocities/personal site.

    -Explain your mission on the index file and some links to your lessons.

    -Include 10 commandments at this time. (tables, HREF, image table)

    -Copy and paste some material from the text.

 

3. Type and run a related program that eventually you will need for your site, get this from the textbook. (ex. search (server/client side), membership (server side), validation (client side), encryption.

The easiest way to decryption is to see what letter is      used most then replace with the letter 'e'

Why would you want to have membership?

    Security purposes. To say you have XX number of members. Information purposes.

 Why would you want to have validation?

    Email/telephone/DOB validation

 

 

 

We have 6 phases of our project, in this class we are building an E-commerce System.

*Each phase is 20 points*

- The first phase is an introduction

 

- The second phase is a web analysis/appearance. Evaluated upon the 7C's

 

- The third phase was on the 10 Commandments(html)

 

- The fourth phase was to see if your using Javascript (90% of the code is written in javascript)(microsoft uses vbscript).

 

- The fifth phase is a search engine and CommonGatewayInterface (C++ mostly) it is a delivery guy. ASP is visual basic. If it uses java it is JSP.

 

 

- The sixth phase

 

 

 

 

*Find the 'The Question of the Day' and demo it to the class for up to 5 points.*

 

***copy of last semester's quiz****

R

T/F   1) The hexadecimal code FFFF00 represents the color Black.
T / F 2) In the hexadecimal number system 1 + F = 16 which is same as 1+ 9 in decimal and 1+1 in binary system.

T / F 3) <a href=http://www.ebrahimi.com  Click here</a> is html code that will create a hyperlink to Dr. Ebrahimi's web site.

T / F 4) ‘a’ + 32 or ‘a’+ ‘ ’ will generates an upper case A.

T / F 5) The statement  if (c>’A’ && c<’Z’ ) c = c + 32; convert a lowercase to its uppercase.
TF 6) <a href="#list> and <a name=list> will search for the word list on the same webpage.

 

MGT / F 7) CGI stands for Common way Interactive and is a simple protocol (standard) that takes the input from a page deliver to a program residing in you computer and output will be send back to a file.

 

 T / F 8) Both Geocities.com and  CJB.net provide a free short domain name ( redirection) as well as free web hosting.


 

T / F 9)  Java and Visual Basic are language of choice for writing CGI programs.

 

T / F 10) "cin" stands for =  "console in" and  "cout" stands for ="console out"  which reads data from an external file and place the output to another external file.

 

MA T / F 11) Linux and windows are both operating system and IIs and red hat are web servers  Microsoft.

 

T / F 12)To cover international languages and other symbols, a uniform code known as Unicode was developed which consists of  8 bytes.          

T / F 13 ) One can create a web page with  Frontpage which automatically generates HTML code which can be uploaded in a geocities file manger. .

T / F 14)The statement  if c>=48 && c<= 57) check if a character is digit..

T / F 15) DIR is a command in MS-DOS Prompt that displays the current directory which is the same as command  cd in linux.

T / F 16) Clarity, Conciseness and Cleverness are three major issues in 7 C’s.

MH T / F 17) In order to use a variable or object you must declare it first from a data type or a class.

T / F 17) A Web page, an operating system and a web server are not main element of a web system.

T / F 18) JavaScript is a language of choice for the web server,

T / F 19) if and while used for decision making and loop by majority of programming languages.

T / F 20 ) Javac is a Java interpreter  and g++  is a C  compiler.

T / F 21) 50% of a webpage tags are made of HTML 10 commandment.

T / F 22) ASP and JSP are known as active server page.

T / F 23) HTML create a lot of overhead in comparison with front page and Dreamweaver.

 

RI T/ F 24) mixing of red, green and blue e.g FFFFFF creates black color.

T / F 25 HTML is easier and faster way to create Web page than Frontpage or Dreamweaver.

 


T / F 26) The default file for a web server is dir.inx.

T/ F 27) For a search engine, one loop will do the job.

T / F 28) request, Loop, decision making, response are the major part of a search engine.

T / F 29) For a business it is better to have a free domain and a free web host.

T / F 30) You need at least 100 HTML to create an E-commerce.

     

 T / F 31) The View source option allows you to view the actual HTML code for every page even if it was designed by other software and you can block the left mouse.

T / F 32) A net work server should have a higher memory and speed in comparison to the client.

T / F 33) You can not have a file that contain the name of other files.

T / F 34) By cut and paste of web to a front page you be able to see view source even though the right mouse is blocked.

T / F 35) You be able by cut and paste of  a view source you be able to modify a business web page.

JT T /F 36) The most frequent tag of html is bgcolor.

T / F 37) Html, A , table, img src, form and input are belong to 10 commandment of HTML.

T / F 38) Your CGI , ASP , JSP program must reside in your business server rather than a web host server.

 T / F 39 ) AEAEAE represent color gold.

T / F  40 ) Content, Consistency, Compelling, Current, Complete, Community are the complete list of 7 C of E- commerce 

 

T / F 41)  It is possible for two domain names to use same web host.

T  / F 42) Domain name is more expensive than web hosting.

T / F 43) Domain name is more important than the name of a web host.

 

T / F 44)   File extensions jpg, gif, and bmp are used to save a HTML file.

T / F 45) It is better to store all the software and data into one server to keep it secure.  __

T / F 46) The operation 11110011  && (and operation) 00001111 will result to 00000011.                     

T /F 47) For every encryption there would be a decryption algorithm that can easily be written.                   

T / F 48) Algorithim is a numeric way of  solving  difficult problems.

T / F 49) To encrypt a document one can simply add an integer to every character of a document. 

T / F 50)  Manager knowledge of computer programming may lead to a chaos and bad decision making strategies in the firm technology.                                                 

 

********************************

easiest way to encrypt is to use wingdings

T / F 50)  Manager knowledge of computer programming may lead to a chaos and bad decision making strategies in the firm technology.                                                 

the letter 'E' has the highest rate of use in the English Language. a/o/t are also used frequently

j/q/x/z has the lowest rate of use.

 

 

IP addressing