Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Exercises 9 through 12, identify the errors. 9. q = 1 11. In Exercises 13 and

ID: 3749088 • Letter: I

Question

In Exercises 9 through 12, identify the errors.

9.

q = 1

11.

In Exercises 13 and 14, write a simpler and clearer code that performs the same task as the given code.

13.

Temperature ConversionsWrite a program that displays a Celsius-to-Fahrenheit conversion table. Entries in the table should range from 10 to 30 degrees Celsius in increments of 5 degrees. See Fig. 3.25. Note:The formula f=(95c)+32f=(95·c)+32 converts Celsius degrees to Fahrenheit degrees.

FIGURE 3.25 Outcome of Exercise 15.

Explanation / Answer

9) q = 1 while q > 0: q = 3 * q - 1 print(q) This loop ends only if q is less than or equal to 0. But q never becomes less than 1. Error in this code is, this loop is an infinite loop. 11) Error in the code is this code is only printing b, c, and d Fixed code: ------------ ## Display the elements of a list. list1 = ['a', 'b', 'c', 'd'] i = 0 while i