Tuesday, December 15, 2009

Soft Eng

GAMES using c++ and vb6
click the url http://www.cplusplus.happycodings.com/

Saturday, November 28, 2009


Maguindanao Massacre

Wednesday, October 14, 2009

PSITS

Reminder!!!

NDMC PSITS Officers please plan the initial program for our seminar and workshop this coming november.

Our first target will be the CS/IT/IS First year students so that we can build foundation as they go through in programming.

We are going to use the PHYTON software as out basic software tool for beginners.

visit the url below as your reference, this is very simple and easy to understand for beginners.

http://www.sthurlow.com/python/

Sunday, October 4, 2009

How to write your paper

How To Write Your Paper

Your thesis paper documents your work and can serve as a basis for a publishable paper. The most common mistake made by thesis students is to assume that the thesis itself will be easy to write. Consequently, they postpone writing until they have completed their programming. By the time they produce an acceptable copy, they find that a term or two of school has slipped by and they still have not graduated. Important advice is to start writing early and ask your thesis advisor for feedback on your writing. Equally important, do not plagiarize. Plagiarism can result in expulsion from school. You are expected to write your own paper, not copy from what someone else has written. It is okay to use other people's ideas, even their own words, but you must clearly reference their work. Your paper should describe what you did and why you did it.
Everyone makes spelling mistakes, but with spelling checker programs available this type of error should be eliminated. Always run your written work through a spelling checker before you ask someone else to read it. Also, you should find someone who can correct grammatical mistakes in your paper. If necessary, hire someone from the English Department or Language Institute to correct your work before you give it to your advisor.

NOTE:
How to write your paper.
 
Do not plagiarize!

Write a proposal that includes a statement of the problem under study, the software requirements, an indication of how the problem will be solved, and a survey of related literature.

Use a spelling checker.

Have someone proofread your paper for grammatical errors.
Write a requirements document that states the requirements your program must meet.
How to write your program. 
 
Write specification, preliminary design, and detailed design documents that precisely define what the requirements are and how your program will meet the requirements.

Write the comments first.

Build a scaffold, which can be removed, that supports the construction of your program.

Write a user's guide, maintenance manual, and test suite.

Use a program document formatter such as WEB.

view this link

Wednesday, September 30, 2009

Creating VB database applications using ADO control

In this sample, you will create a ADO database application to manage your home library.  First of all, create a database in MS Access and name home_Library. In this database, create a table with the following field names;

Title:
Author:
Publisher:
Year:
Category:
and save the table as booktitle.mdb

Design the Interface as follow:

Key in the codes as follows:
Private Sub cmdCancel_Click()
txtTitle.Text = ""
txtAuthor.Text = ""
txtPublisher.Text = ""
txtYear.Text = ""
txtCategory.Text = ""
End Sub

Private Sub cmdDelete_Click()
Confirm = MsgBox("Are you sure you want to delete this record?", vbYesNo, "Deletion Confirmation")
If Confirm = vbYes Then
adoLibrary.Recordset.Delete
MsgBox "Record Deleted!", , "Message"
Else
MsgBox "Record Not Deleted!", , "Message"
End If
End Sub

Private Sub cmdExit_Click()
End
End Sub

Private Sub cmdNew_Click()
adoLibrary.Recordset.AddNew
End Sub

Private Sub cmdNext_Click()
If Not adoLibrary.Recordset.EOF Then
adoLibrary.Recordset.MoveNext
If adoLibrary.Recordset.EOF Then
adoLibrary.Recordset.MovePrevious
End If
End If
End Sub

Private Sub cmdPrevious_Click()
If Not adoLibrary.Recordset.BOF Then
adoLibrary.Recordset.MovePrevious
If adoLibrary.Recordset.BOF Then
adoLibrary.Recordset.MoveNext
End If
End If
End Sub

Private Sub cmdSave_Click()
adoLibrary.Recordset.Fields("Title") = txtTitle.Text
adoLibrary.Recordset.Fields("Author") = txtAuthor.Text
adoLibrary.Recordset.Update
End Sub

Using Crystal Reports in VB

The crystal report writer is an add-in program that comes with visual basic. You use the Crystal Report Writer to create custom reports, lists, labels and form letters using datga from an existing database. However, most of the time- the Crystal Report Writer is used to create reports.

The crystal report writer can be used with the following programs:
  • Microsoft Access
  • dBase
  • Paradox
  • FoxPro
  • Clipper
  • Btrieve
  • SQL Server (via ODBC)
To access the crystal report writer (in visual basic 6.0) click on Add-Ins --> Report Designer. This will take you into Crystal Reports.

CREATING A REPORT:
To create a report, open crystal report writer...
  1. click on File --> New (a Create New dialog will appear).
  2. click on the Standard icon (the Create Report Expert dialog box appears).
  3. click on Datafile (the Choose Database File dialog box appears).
To the left you will see a list of files. To the right is the path showing the folder tree, indicating where the file will be stored.
  1. Click on the file you want to open
  2. Click on Add
  3. Click on Done (the Choose Database File dialog box disappears).
SELECTING FIELDS:
Click on 2: FIELD in the create report expert dialog box. This is where you select the fields that you want to appear in your report. You can select the fields individually by clicking on them and then clicking on ADD, or you can click on ALL, which will select all fields. When a field has been selected, it will be displayed in the REPORT FIELDS window.
You can change column headings as well by clicking and highlighting a field in the Report Fields window, and moving down and typing a new heading for that field. Default headings will appear for each field.

SORTING FIELDS:

Click on 3: SORT tab in the Create Report Expert dialog box. Now select the field you want to have the records sorted by (the selected field will be used to sort all of the records in order by the field selected when the report is produced). You can also set the order to have the table sort in descending order by clicking on the array. Ascending order is the default.

TOTALS AND SUBTOTALS:
Your report has the ability to calculate totals for numeric fields. You can add additional fields by clicking the field and then click the add button. And to delete fields, click on the remove button.
Click on 4: TOTAL tab in the Create Report Expert dialog box. Select field by clicking on it to highlight it. This will create subtotals for that field, and will create section breaks in your report for each record and display a total for the selected field. Now click on the Add button, and this will add the field on the right hand side.
Note: if the check box in the lower right-hand corner is checked, you will get grand totals for your report.
FONTS AND FONT SIZE:
If you would like to adjust the font and font size of your report, first select the field you want to change by clicking on it. And if you want to change more than one, hold the CONTROL key and select the fields you want to change. Now click the arrow to the right of the font window, a drop down menu will appear. Select the font you want by clicking on it to highlight it. And click the arrow to the right of the font size, a drop down menu will appear- and select the font size you want by highlighting it.
SPEEDING UP PROCESSING:
This section is used often if you have large files and want conditions set on the key field or other fields in the file where only certain records will be selected for printing. Setting some keys in this section will speed up processing of records for your report since several records will be skipped.
Click on 5: SELECT tab in the Create Report Expert dialog box. Next, click on SPEED TIP button. This will discuss how records will be selected and how reports will be sped up, if not all records will be used for processing. Now click on OK when finnished reading. Click ADD to add the highlighted field to the Select Fields list box.
The highlight button appears next to the key field in the Report Fields list box. This is because the table contains an index for this field. The key field is often used for filtering out records.
At the bottom of the window, there are two other list boxes, one containing the word "is" and the other containing the words "any value". These two list boxes are used to set conditions to filter out records when producing your report.

DETERMINING THE STYLE:

Click on 6: STYLE tab in the Create Report Expert dialog box. On the left will be a list of styles that you can choose your report to appear in. Click on the one you want. Enter a title for your report by typing it in where it says TITLE at the tob of the Select Fields List Box.
PREVIEWING YOUR REPORT:
To preview the 'final product' simply click PREVIEW REPORT. This will take you to your preview screen showing teh actual report that you have created. There are two modes you can look at in preview report, DESIGN mode and PREVIEW mode.
DESIGN SECTION:
The design section shows the layout of each field in the report, along with titles, headings and totals. You can change the position of a field, making it longer or shorter by clicking on it. You can also change the font and font size of that field.
The design tab contains six sections, as described below...
  1. Title -- Contains information you want to display on the first page only.
  2. Page Header -- Specifies information such as the report title, field headings, and the date.
  3. Details -- Contains the body of the report, database records and subtotals (if you include them).
  4. Grand Total -- Shows the grand totals of all numeric fields talked about in "Totals and Subtotals" above. This section will only appear if you included a grand total in your report.
  5. Page Footer -- Contains page number and any other information you want to appear at the bottom of the page.
  6. Summary -- Contains information you want to appear on the last page only.

Monday, September 28, 2009

How to Make a Perfect Thesis Proposal

Thesis proposal is a paper that aims to provide your suggestions on research you intend to conduct. To write a good thesis proposal, you should think over every issue very carefully and state your thoughts about it on paper.

Making good and qualitative thesis proposals requires being aware of what steps to take. That is why we are eager to present you these steps:

* Choose the problem under consideration. It can be any problem, hypothesis or research question that has never been considered before. Formulate the topic of your thesis proposal;
* Think why your research will be important. Mind that your thesis proposal is a kind of admission to conducting your research. If you do not manage to convince your supervisor in its significance, you may be not allowed to investigate the topic of your thesis proposal chosen;

* Get to know about the prior research of your topic. Perhaps, anyone has touched upon your problem, but it was not covered fully. Tell about it in your thesis proposal;
* Choose the most feasible and applicable methods. It is extremely important for your thesis proposal to present the chosen methodology clearly and comprehensibly, as you are being awaited to demonstrate your research abilities. You can reveal them only by means of applicable methods of investigation;
* Tell about the possible outcomes of your research. In this part of your thesis proposal you should also explain the importance of the results obtained.

In spite of everything, the most challenging task is the choice of your thesis proposal topic. Your research starts with it. That is why you have to try your best to choose the most exclusive and unique topic for your thesis proposal that would give promise of extended study.

Thursday, September 24, 2009

Function in C++

What is a ?

A is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required.
groups a number of program statements into a unit and gives it a name. This unit can be invoked from other parts of a program. A computer program cannot handle all the tasks by it self. Instead its requests other program like entities – called functions in C – to get its tasks done. A is a self contained block of statements that perform a coherent task of same kind
The name of the is unique in a C Program and is Global. It neams that a can be accessed from any location with in a C Program. We pass information to the called arguments specified when the is called. And the either returns some value to the point it was called from or returns nothing.
We can divide a long C program into small blocks which can perform a certain task. A is a self contained block of statements that perform a coherent task of same kind.

Structure of a

There are two main parts of the . The header and the body.
int sum(int x, int y)
{
 int ans = 0;  //holds the answer that will be returned
 ans = x + y; //calculate the sum
 return ans  //return the answer
}

Header

In the first line of the above code
int sum(int x, int y)
It has three main parts
  1. The name of the i.e. sum
  2. The parameters of the enclosed in paranthesis
  3. Return value type i.e. int

Body

What ever is written with in { } in the above example is the body of the .

Prototypes

The prototype of a provides the basic information about a which tells the compiler that the is used correctly or not. It contains the same information as the header contains. The prototype of the in the above example would be like
int sum (int x, int y);
The only difference between the header and the prototype is the semicolon ; there must the a semicolon at the end of the prototype.

Fahrenheit to celsius conversion












CSE 112 Answer to your assignment.
formula:
for -- Celsius=(5/9) * (Farenheit - 32)

for -- Farenheit =(9/5) * ( Celcius + 32)

Wednesday, September 23, 2009

for loop statements

CSE 112 Students!!! please review this for loop statement click the url address below.

http://www.hitmill.com/programming/cpp/forLoop.htm

Friday, September 11, 2009

CS 417 Students

Reminder!!!
  1. pass your documentation on pre-final exam.
  2. documentation defense will on sept. 26 - oct 3, oct 10, oct 17
  3. please be guided with your documentation format.
  4. prepare 3 copies for the panelist.
  5. prepare 1 for your reference.
  6. prepare powerpoint for your presentation .
  7. pass before sept. 26, 2009 including your contri.
gudluck!!!

Wednesday, August 26, 2009

c++ switch statement example

1:// This is a single line comment
2:// Demonstrates switch statement
3:// This switch example does not used with the break keyword.
4:#include
5:
6:int main()
7
8:int number;
9:"Enter a number between 1 and 5:
10:
11:switch (number)
12:
13:case 0: "Too small, sorry!";
14:break;
15:case 5:
16:case 4: "Nice Pick!\n"; // fall through
17:case 3: "Excellent!\n"; // fall through
18:case 2: "Masterful!\n"; // fall through
19:case 1: "Incredible!\n"
20:
21:default: "Too large!\n";
22:break;
23:
24:cout "\n\n";
25:return 0

Monday, August 24, 2009

Phases of C++ Programs


Phases of C++ Programs
1.Edit 
2. Preprocess
3. Compile
4. Link
5. Load
6. Execute

Saturday, August 22, 2009

how to search and delete a record in vb6

Option Explicit


Private Sub cmdSearch_Click()

Adodc1.RecordSource = "SELECT * FROM tblStudent where Lastname = ' " '& Text1.Text & " ' "
Adodc1.Refresh

If Adodc1.Recordset.RecordCount = 0 Then
'Timer1.Enabled = True
MsgBox "type the lastname to search wala"
End If

End Sub


Private Sub cmdDelete_Click()

Prompt$ = "Do you really want to delete?"
reply = MsgBox(Prompt$, vbOKCancel, "Delete Record")

If reply = vbOK Then
    Adodc1.Recordset.Delete
    Adodc1.Recordset.MoveNext
End If

End Sub

sample vb color


Private Sub Stop_Click()
Shape1.BackStyle = 1
Shape1.BackColor = &HFF&
Label1.Caption = "Please Stop"
End Sub

Private Sub Go_Click()
Shape1.BackStyle = 1
Shape1.BackColor = &HFF00&
Label1.Caption = "you can go now..."
End Sub

Private Sub End_Click()
MsgBox ("This will end the sytem")
End Sub

Thursday, August 20, 2009

How to plan and create vb6 projects

The three steps for planning and creating Visual Basic projects and what happens in each step.
Planning
1.When you plan the user interface, you draw a sketch of the screens the user will see when running your project. On your sketch, show the forms and all of the controls that you plan to use. Indicate the names that you plan to give the form and each of the objects on the form.
2. For each of the objects, write down the properties that you plan to set changed for each project during the design of the form.
3.This is where you plan the procedures that will execute when your project runs. You will determine which events require action to be taken, and plan, step-by-step, what those actions should be.
Programming
After you have completed the planning steps and have agreement from your user, you are ready to begin the actual construction of the project. You will use the same three step process that you used for planning.
1.Define the user interface. When you define the user interface, you create the forms and controls that you designed in the planning stage. Think of this step as all of the objects you will use in your project.
2.Set the properties. When you set the properties of the objects, you give each object a name and define such attributes as the contents of a label, the size of the text, and the words that appear on top of a command button and in the form’s title bar. You might think of this step as describing each of your objects.
3.Write the Basic code. This is where you write the procedures that will execute when your project runs. You will use Basic programming statements (called Basic code) to carry out the actions needed by your program. You will be surprised and pleased by how few statements you need to create a powerful Windows program. You can think of this third step as defining the of your program

how to add and delete record in Visual Basic 6.0

guys, here are the simple code in vb6 on how to add,delete a record
1. for Add --> adodc1.recordset.addnew
2. for Delete --> adodc1.recordset.delete
note: be sure that you add adodc component.

Wednesday, August 19, 2009