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
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
Course

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

Written for

Institution
Course

Document information

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

Subjects

$12.51
Get access to the full document:

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

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

Working on your references?

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

Working on your references?

Frequently asked questions