100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary ICt2613 assignment 2 R199,00
Add to cart

Summary

Summary ICt2613 assignment 2

 74 views  4 purchases

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

Preview 1 out of 4  pages

  • June 5, 2023
  • 4
  • 2022/2023
  • Summary
All documents for this subject (23)
avatar-seller
phegelelo
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";

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 phegelelo. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53022 documents were sold in the last 30 days

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

Start selling
R199,00  4x  sold
  • (0)
Add to cart
Added