100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF1511 ASSIGNMENT 2 2023 R100,00
Add to cart

Other

INF1511 ASSIGNMENT 2 2023

 65 views  1 purchase

This is INF1511 ASSIGNMENTS 2 FOR 2023. A Chance for you to get 100%

Preview 2 out of 9  pages

  • May 22, 2023
  • 9
  • 2022/2023
  • Other
  • Unknown
All documents for this subject (43)
avatar-seller
phumlapmotsa
INF1511
Assessment 2

Unique code : 240720




By: Phumla P Mota

, Question 1
For the user input, what would be the output of the program?
#input
nTemp=int(input('Please input your temperature reading : '))
#process
if (nTemp >= 37):
#output
print('Please go for a COVID TEST NOW!')
else:
print('all OK, have a HAPPY day!')

a.
Please input your temperature reading : 37
all OK, have a HAPPY day!

b.
syntax error

c.
Please input your temperature reading : 37
all OK, have a HAPPY day

d.
Please input your temperature reading : 37
Please go for a COVID TEST NOW!
Feedback
The correct answer is: Please input your temperature reading : 37
Please go for a COVID TEST NOW!
Question 2
Incorrect
Mark 0.00 out of 1.00




Flag question
Question text
What is the output from the execution? The age is 65.
nCost=0
nAge=int(input('Please enter your age : '))

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

Will I be stuck with a subscription?

No, you only buy this summary for R100,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
R100,00  1x  sold
  • (0)
Add to cart
Added