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 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
What need most led to the creation of the advanced research projects agency network? darpa wanted scientists to be able to collaborate and share research easily. darpa wanted american and russian politicians to be able to communicate. darpa wanted astronauts to be able to contact nasa and the white house. darpa wanted factory owners to be able to coordinate supply chains.
Answers: 1
question
Computers and Technology, 25.06.2019 06:30
If she presses the left arrow , what will happened
Answers: 1
You know the right answer?
1. What will be printed by the following code segment? x=15
if x==25:
print ('Pizza is...
Questions
question
Computers and Technology, 08.12.2021 20:00
question
Mathematics, 08.12.2021 20:00
question
Mathematics, 08.12.2021 20:00
Questions on the website: 13722367