100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

ICT2613 Assignment 3 (Portfolio S01 2019)

Rating
-
Sold
-
Pages
9
Uploaded on
06-07-2021
Written in
2019/2020

ICT2613 Assignment 3 (Portfolio S01 2019)

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Course

Document information

Uploaded on
July 6, 2021
Number of pages
9
Written in
2019/2020
Type
Other
Person
Unknown

Subjects

Content preview

ICT2613 Assignment 3 | Task 1 to Task 6 (Portfolio S01 2019)

Task 1 to Task 6 is being covered.




<?php
include("menu.inc");
echo "<br /><br />";
echo "Student name: John Doe <br>";
echo "Subject name: ICT2613 (Web Programming)<br>";
echo "Semester : S01 2019 <br>";
?>


<!DOCTYPE html>
<html>
<head>
<title>PHP Portfolio</title>
<style>
table,tr,th,td{ border: 1px solid black; }
.frm{ float:left; width: 120px;}
</style>
</head>
<body>
<a href='index.php'>Index</a>|
<a href='task1.php'>Task1</a>|
<a href='task2.php'>Task2</a>|
<a href='task3.php'>Task3</a>|
<a href='task4.php'>Task4</a>|
<a href='task5.php'>Task5</a>|
<a href='task6.php'>Task6</a>
</body>
</html>

, <?php
// connect to the database
$dsn = "mysql:host=localhost;dbname=doctors";
$username = "root";
$passwd = "";
// use exception handling to handle error
try{
$db = new PDO($dsn, $username, $passwd);
} catch(PDOException $ex){
echo "Error occured: " . $ex->getMessage();
}
?>


<?php
include("menu.inc");
echo "<br /><br />";
//////////////////////////////////Task 1////////////////////////////////
$student_name = "Vusi Bhongo";
$num_of_reg_modules = 4;
define("COST_PER_MODULE", 1825);
$total_fee = $num_of_reg_modules * COST_PER_MODULE;
$bursary_amount = 5000;
$outstanding_fee = 2300;
echo "<p>Student name: <b>$student_name</b></p>";
echo "<p>Number of modules registered: <b>$num_of_reg_modules</b></p>";
echo "<p>Cost per module: R<b>" . COST_PER_MODULE . "</b></p>";
echo "<p>Total fee: R<b>$total_fee</b></p>";
echo "<p>Bursary amount: R<b>$bursary_amount</b></p>";
echo "<p>Outstanding fee: R<b>$outstanding_fee</b></p>";
echo "<br /><br />";
echo '<iframe src="task1.txt" height="400" width="1200">Your browser does not
iframes.</iframe>';
?>

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
nolwandle University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
52
Member since
6 year
Number of followers
47
Documents
14
Last sold
2 year ago

4.0

11 reviews

5
4
4
4
3
2
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions