Question: PLEASE READ: You may discuss this problem set with other students. However, you must write up your answers on your own. You must also write

PLEASE READ: You may discuss this problem set with other students. However, you must write up your answers on your own. You must also write the names of other students you discussed any problem with. Each problem has a different weight. Please state any assumptions you are making in solving a given problem. Show your work. Late assignments will not be accepted without any exceptions. By submitting this assignment, you acknowledge that you have read the course syllabus. Problem 1 What role do translators play in the programming process? [5 pts] Problem 2 Explain in detailed what goes on behind the scenes when your computer runs a Python program. [5 pts] Problem 3 Deseribe the rules of variable naming. [ 5pts] Problem 4 Let the variable x be "dog" and the variable y be "cat". Write the outputs returned by the following operations: a. x+y [3 pts] b. "the " +x+ " chases the " +y [3 pts] c. x=4 [3 pts] d. x/y[3pts] e. x2+y2[3 pts] Problem 5 Write a loop that prints your name 100 times, Each output should begin on a new line. [ 5pts ] Problem 6 Why cannot the following Python script execute and how to make this script runnable? [5 pts] > profit =1000.55 > print(' $ ' + profit) Traceback (most recent call last): File "", line 1 , in TypeError: cannot concatenate 'str' and 'float' objects Problem 7 1 count =1 2 while count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
