100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ICT2613 Assignment 3 (Portfolio S01 2019) R150,00   Add to cart

Other

ICT2613 Assignment 3 (Portfolio S01 2019)

 119 views  0 purchase

ICT2613 Assignment 3 (Portfolio S01 2019)

Preview 2 out of 9  pages

  • July 6, 2021
  • 9
  • 2019/2020
  • Other
  • Unknown
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All for this textbook (7)
All documents for this subject (23)
avatar-seller
nolwandle
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>';
?>

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller nolwandle. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R150,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

61001 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R150,00
  • (0)
  Buy now