Question: Please can I get answer these questions with python using the instructions of teacher as soon as possible because I have test now for limit
Please can I get answer these questions with python using the instructions of teacher as soon as possible because I have test now for limit time at 1 hours ?


COSC 1336 Lab: 4 Relevant Reading Chapter 4 Due March 8, 2021 (Late date: March 9, 2021) 22 points Problem 1. (5 points) A bug collector collects bugs every day for 7 days. Write a program that keeps a running total of the number of bugs collected during the seven days. The loop should ask for the number of bugs collected each day i.e. How many bugs collected on day 1, How many bugs collected on day 2 etc., and when the loop is finished, the program should display the total number of bugs collected for all 7 days. Write program, (bugs_while.py) that uses a condition-based loop Hint You will need to use concatenation to include the number of each day in the prompt to the user-NOTE you are not allowed to use any IF, IF ELSE or IF ELIF ELSE structures in any of your submission Sample Output Enter the number of bugs collected on day 1:2 Enter the number of bugs collected on day 2: 4 Enter the number of bugs collected on day 3:6 Enter the number of bugs collected on day 4:8 Enter the number of bugs collected on day 5:7 Enter the number of bugs collected on day 6:1 Enter the number of bugs collected on day 7: 2 Total bugs collected for the week: 30 Problem 2. [10 pointal A meteorologist wants a quick reference table that lists Celsius to Fahrenheit temperatures 0 through 20. Using a count-controlled loop write a program (tamp_for.py) that uses a for loop to display the table and another (tamp_while) that uses a condition-based loop. Do not use any selection structures in your program. Hint: You are not interacting with the user ie, there are no user inputs. The formula for converting a temperature from Celsius to Fahrenheit is: F = 9/5 C + 32 Sample Output Celsius Fahrenheit 0 1 2 3 4 32.0 33.8 35.6 37.4 39.2 NOTE: You are not allowed to use any IF JF ELSE or IF ELIF ELSE structures in any of your submission Problem 8. [2 points) 1. In flowcharting, the decision structure and the repetition structure both use the diamond symbol to represent the condition that is tested. (a) True (b) False 2. Both of the following for clauses would generate the same number of loop iterations: for num in range (7): for num in range (1,6): (a) True (b) False Problem 4. (6 points) For each of the following, choose the correct answer. 1. Which of the following represents an example to calculate the sum of the numbers (An accumulator)? a. total + number = total c. total = number b. number += number d. total += number 2. What is the format for the while clause in Python? a. while condition: c. while condition statement b. while condition(): d. while condition : statement 3. What is not an example of an augmented assignment operator? a.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
