subject

1. What will be printed by the following code segment? x=15
if x==25:
print ('Pizza is yummy’)
else:
print ('My teacher is awesome')
If x=15 , then double of 15 is x=25

2. What will be printed by the following code segment?
x=35

y=52

if x!=25 and y==52:

print ('Pizza is yummy')

else:

('My teacher is awesome')

3. Correct the errors in the following code to find the least number between x, y and z.
if x > y or y z
if x>z:
print(z)
else print (“x”)

4. Consider the following code:
if a > b:
if b > c:
print("Spam Please")
else:
print("It's a late parrot!")
elif b > c:
print("Cheese Shoppe")
if a >= c:
print("Cheddar")
elif a < b:
print("Gouda")
elif c == b:
print("Swiss")
else:
print("Trees")
if a == b:
print("Chestnut")
else:
print("Larch")
print("Done")
What would the output be for each of the following inputs? (assume they are in order a, b, c)
a) 3, 4, 5
b) 3, 3, 3
c) 5, 4, 3
d) 3, 5, 2
e) 5, 4, 7
f) 3, 3, 2

Programming Exercises
5. Given numbers (a, b, c) determine which number is the smallest, assign it to min, find the largest, assign it to max, and find the middle number and assign it to mid.

Paste code here.

6. A certain teacher gives 100 point exams that are graded on a scale from 0-100. Each grade can be given as a letter grade (90-100 = A, 80-89 = B,70-79 = C, 60-69 = D, <60 = F) . Write a function that will accept a value of a number grade, and will print the letter grade that corresponds to the number range.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
How can you make your column headings stand out?
Answers: 1
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
You know the right answer?
1. What will be printed by the following code segment? x=15
if x==25:
print ('Pizza is...
Questions
Questions on the website: 13722362