Beruflich Dokumente
Kultur Dokumente
INTERNET PROGRAMMING
BIT3202
NAME:
ADM NO:
CAT 1 & CAT 2
CAT ONE
QUESTION ONE
Broman Traders International would like to design a website that will enable salesmen to enter
details of their sales.
(i) Design HTML form with features to enter Salesman number, Product number, Product
name, quantity and price then display total price. Include a method to send the details to
a PHP file called myProduct.php (5 marks)
SUGGESTED SOLUTION
<html>
<head>
</head>
<body style="text-align:center;">
<br>
<br>
<br>
</form>
</body>
</html>
OUTPUT
(ii) Write a PHP code to receive the above details and calculate the total price and
commission which is offered according to products sold. A commission of 15% is
offered if the total sales is more than Kshs. 50,000, otherwise a commission of 5% is
offered. (5 marks)
SUGGESTED SOLUTION
<html>
<head>
</head>
<body style="text-align:center;">
<?php
if (isset($_POST['submitted'])) {
echo '<h1>Commission</h1>';
($commissionRate = 15%);
}else{
($commissionRate = 5%);
}else{
?>
<br>
<br>
<br>
<br>
</form>
</body>
</html>
QUESTION ONE
When designing a website, planning is a key component in ensuring that a website meets the
objective of an organization. Outline the process of planning in website design (5 marks)
The website design process involves numerous number of process which include:
(i) Information Gathering- This is the first stage which involves gathering of
adequate information. This stage involves feasibility study, what the users want.
(ii) Planning – this is the second stage done after gathering the information. This is
done to ensure that everything is in the right place.
(iii) Design – This is the stage done to do the mockup of the website and ensure it has
the great design and user experience
(iv) Development- A programming language is used to write the lines of code for the
website
(v) Testing and delivery- After development, the website is then tested to ensure it is
free from bugs
(vi) Maintenance- After the website is tested for bugs and found to be free from bugs,
it’s now documented and maintained to keep up with the modern technology.
QUESTION ONE
Before 1990 Internet connection was expensive with only a few organizations in the developed
countries connected to the internet. Today internet is one of the most popular means of
communication and sharing information. Discuss the factors that have contributed to a
widespread use of internet (5 marks).
The following factors has led to the contribution to widespread of use of internet:
(i) IT infrastructure – This is one area which has evolved in the recent years. Different
inventions has been made in the field of Technology and this led the widespread use
of internet.
(ii) Government and Business Policies- How the government regulates its policies has led
to the widespread use of internet.
(iii) Degree of Urbanization- Due to digital error many people have migrated from the
rural area to the urban areas for the search of greener pastures which is internet.
(iv) Research- Because data requires network, this is a place which has led to widespread
use of internet
(v) Social Interactions- different people around the globe can communicate with each
other.
CAT TWO
SUGGESTED SOLUTION
<html>
<head>
</head>
<body>
<tr>
<td>FIRST NAME</td>
</td>
</tr>
<tr>
<td>LAST NAME</td>
</td>
</tr>
<tr>
<td>DATE OF BIRTH</td>
<td>
<option value="-1">Day:</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
<option value="-1">Month:</option>
<option value="January">Jan</option>
<option value="February">Feb</option>
</select>
<option value="-1">Year:</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
</select>
</td>
</tr>
<tr>
<td>EMAIL ID</td>
</tr>
<tr>
<td>MOBILE NUMBER</td>
<td>
</td>
</tr>
<tr>
<td>GENDER</td>
<td>
</td>
</tr>
<tr>
</tr>
<tr>
<td>CITY</td>
</td>
</tr>
<tr>
<td>COUNTY</td>
<td>
<option value="-1">County:</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
</td>
</tr>
<tr>
<td>COUNTRY</td>
</tr>
<tr>
<td>
Drawing
Reading
Football
Singing
Others
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td align="center"><b>Sl.No.</b></td>
<td align="center"><b>Examination</b></td>
<td align="center"><b>Grade</b></td>
</tr>
<tr>
<td>1</td>
<td>KCPE</td>
</tr>
<tr>
<td>2</td>
<td>KCSE</td>
</tr>
<tr>
<td>3</td>
<td>Undergraduate</td>
</tr>
<tr>
<td>4</td>
<td>Masters</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
BBIT
BBM
MEd
BEDA
</td>
</tr>
<tr>
</td>
</tr>
</table>
</form>
</body>
</html>
OUTPUT
REFERENCES
Beal, J., Pianini, D., & Viroli, M. (2015). Aggregate programming for the internet of
things. Computer, 48(9), 22-30.