Archive for September 2009

Opportunity Activity No. 1 (Celsius – Fahrenheit Conversion)

Given the two images as the expected output, html documents with javascript should be created individually and to provide style for the table a CSS can be added.  In using javascript, the less lines of codes will be the first to be consider as one of the answer.

Include your name, year and section when you post you answers.  Answers should only be posted into this article and do not send your documents through emails.

The two images are a Celsius – Fahrenheit calculator that converts a degree celsius to degree fahrenheit on image 1 and degree celsius to degree fahrenheit and vice versa for image 2 using the select button.  The formula for conversions was already included in the pictures and documents.

1.  Celsius to Fahrenheit Conversion Calculator.

2. Celsius to Fahrenheit Conversion Calculator (vice versa)

Opportunity Activites for Hardworking Students

The Opportunity Activities will be given to the hardworking students to compensate for their efforts having the extra time to study. These are optional undertakings to students for all the subjects under Mr. Aquino.

In solving the posted problem, there are some guidelines which were announced during the classes.

Solutions for every activity should be posted as comments on the given article and will be validated by Mr. Aquino. Only, selected and validated solutions will be shown.

Using CSS on HTML Document

Here is an example on how to use a CSS in your HTML document.  Stylesheet was applied to the document and table.

<html>
<head>
<title>CSS Demo</title>
<!– start of CSS –>
<style type=”text/css”>
document{
background-color: #CBCBCB;
}
table {
background: #7FFFD4;
border: 1px solid Black;
width: 500px;
font-family: “Arial Rounded MT Bold”;
border-color: Navy Blue;
border-top: medium double Black;
margin-left: auto;
margin-right: auto;
}
tbody{
background-color: White;
}
tr{
border-bottom-width: 1px;
text-align:center;
}
</style><!– end of the style –>
</head>
<body>
<table width=”200″ border=”1″ rules=”groups”>
<thead>
<tr>
<th>Heading for Column 1</th>
<th>Heading for Column 1</th>
<th>Heading for Column 1</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
<tr>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Footer for Column 1</td>
<td>Footer for Column 1</td>
<td>Footer for Column 1</td>
</tr>
</tfoot>
</table>
</body>
</html>

Output Image:

css demo

css demo

Additional list of students who submitted their projects

Here is the additional list of students who complied on the previous deadline that was scheduled on September 25, 2009 but some USB flashdrives did not contain any web project files or were virus infected.  Also, few students did not comply on the given instructions so no credit was given to them.  As a reminder, double check your USB flashdrives and scan them before you submit it to your instructor.  In addition, you have to make sure that you project files conforms on the given instructions.

I – C

abadkv, ballesterosbs, ballesterosgc, benavidezsg, calixtroml, carocaar, deguzmanls, donatomq, duronjf, ferrerju, lopezvd, malongcg, marquezbb, montemayorma, mundara, ramosgv, rapaconna, rosalsc, setariosmp, sisonal, sisonmf, sorianors, tinambacanml, valenciagm, valenzuelams, mangapotrc, calangma, fernandezrp, castrobc

Midterm Exam Rescheduled

The schedule for the midterm exam will be on October 2, 2009 (Friday) at 9:00 am.  The schedule was allocated for those students who did not took their midterm exam.  Students who are late during the schedule will not be allowed to take.

Students who will take the exam should type their name and section after clicking on the comments button.  Only the students who affix their names will be allowed to take the exam.

Look for your instructor on or before the said schedule.  Post your inquiry on the comments button below this message.

List of students who had a project in BSICT – I

Listed on this article are the list of students who had a project.  If you’re name doesn’t appear on this article you have to read the previous article for instructions.

I – A

abalosac, aquinomb, budolft, cayanancf, correakm, escanoac, fernandezmm, maneclangeg, mercadogs, mercadojb, millaminaja, palisocjr, gomezsm, ragasakp, felixjd, balanecm

I – B

alvaroga, angelolc, bautistafq, corpuzns, duquesy, espiritucd, navarrovl, ocsillosws, pabonajb, pantaleonra, tamondongmr, tandocjb, valledorec, veloriajr, abellahl

I – C

bravoam, damascomi, deverarg, malicdemge

I – D

albaonb, arguezamf, batanrg, bautistabb, bibaydr, bilogcs, caasiac, catabaynr, cedronjc, chorescaec, cuarteronko, friascc, ganahr, garciajb, mondrealer, narcisogb, ningalacn, neuvaespanaml, papaau, poseriojc, sorianomr, tesorosp, vilamt, manangannc, vergarara, disujd, caronongangr

Submission of Main Page on Website Project for BSICT – I

Students who did not submit due to flash drive failure or late submission can still submit their project on September 25, 2009 and not later than 12am.  Also, those students who did not follow instructions so their project was rejected. The deadline for submission will be for all the BSICT sections.  No more extension will be schedule if in case of failure to submit.

USB flash drives should be collected by the class mayor or any officer of every section before giving them to your instructor.  No individual USB flash drive will be accepted.  Also, projects which are on a different format will not be credited.

Wait for the next post or message for the list of students who had their projects.

Write or post a comments for any questions or inquiries below this article.

Using if – else in Javascript

The following if – else conditions in javascript:

  • if statement – simple if statement, executed when condition is true
  • if…else statement – statements are executed when condition is true or false
  • if…else if….else statement -  nested if – else statement which can b used for multiple blocks of code
  • switch statement -  simplified nested if – else statement

Syntax

if statment:

if (condition)
{
code to be executed if condition is true
}

if – else statement:

if (condition)
{
code to be executed if condition is true
}
else
{
code to be executed if condition is not true
}

nested if – else statement:

if (condition1)
{
code to be executed if condition1 is true
}
else if (condition2)
{
code to be executed if condition2 is true
}
else
{
code to be executed if condition1 and condition2 are not true
}

switch statement:

switch(n)
{
case 1:
execute code block 1
break;
case 2:
execute code block 2
break;
default:
code to be executed if n is different from case 1 and 2
}

Online DBMS Urgent Deadline

Online DBMS project will be check with in this day for groups with an error on database configuration.  Uploading of project files and checking database configuration can be done on or before 2pm only.  In setting your database configuration, follow the setting which I posted on September 15, 2009 under Online database for DBMS class article.

Groups with online working project start developing your system’s transaction.  Other announcement will be posted so check this website regularly.

For you information.

BSICT – I Announcements

Be informed that the submission of your last activity (javascript) and the first page of your website will be on the following date:

I – A   & B:  Our meeting on September 22 (Tuesday)

I – C   & D:  Our meeting on September 23 (Wednesday)

Be reminded that you follow the  instructions when submitting your file of your website.  Late submission is not allowed.