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

Summary ICt2613 assignment 2

Rating
-
Sold
4
Pages
4
Uploaded on
05-06-2023
Written in
2022/2023

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

Institution
Module








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

Written for

Institution
Module

Document information

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

Subjects

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";

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.
phegelelo University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
17
Member since
3 year
Number of followers
15
Documents
12
Last sold
1 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions