Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 4 pages
Summary

Summary ICt2613 assignment 2

Document preview thumbnail
Preview 1 out of 4 pages

This document serves as an assignment guide and is intended to provide general information and assistance

Content preview

ICT2613 assignment two guidelines’ answers



Disclaimer: This document serves as an assignment guide and is intended to provide general
information and assistance. However, I, as the author of this document, hereby state that I am not
responsible for the marks or grades obtained by individuals who utilize this guide. The usage of this
guide does not guarantee any specific outcome or academic performance. It is advised to consult
with your instructor or follow the guidelines provided by your educational institution to ensure
accurate and satisfactory results.




Question 1
<?php

$stdin = fopen("php://stdin", "r"); //DO NOT CHANGE THIS LINE

$netPrice = fgets($stdin); //DO NOT CHANGE THIS LINE - $netPrice will store the price

//Include your lines of code to calculate VAT for the price in $netPrice

$vatRate = 15; // VAT rate in percentage



// Calculate the VAT-inclusive price

$vatAmount = ($netPrice * $vatRate) / 100;

$vatInclusive = $netPrice + $vatAmount;




echo "$vatInclusive"; //DO NOT CHANGE THIS LINE - $vatInclusive must contain VAT inclusive price

?>

Question 2

<?php

$stdin = fopen("php://stdin", "r"); //DO NOT CHANGE THIS LINE

$bmi = fgets($stdin); //DO NOT CHANGE THIS LINE, $bmi will contain the input (BMI)

//Include your code here, to convert BMI value to interpretation

if ($bmi < 18.5) {

$result = "underweight";

Document information

Uploaded on
June 5, 2023
Number of pages
4
Written in
2022/2023
Type
Summary
R199,00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
phegelelo
5,0
(1)
Sold
17
Followers
15
Items
12
Last sold
2 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions