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

INF1511 ASSIGNMENT 2 2023

Rating
-
Sold
1
Pages
9
Uploaded on
22-05-2023
Written in
2022/2023

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

Institution
Module









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

Written for

Institution
Module

Document information

Uploaded on
May 22, 2023
Number of pages
9
Written in
2022/2023
Type
Other
Person
Unknown

Subjects

Content preview

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 : '))
$6.05
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
phumlapmotsa

Get to know the seller

Seller avatar
phumlapmotsa University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
2 year
Number of followers
1
Documents
2
Last sold
2 year ago

0.0

0 reviews

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