Question: please follow directions and write the python code. Please meet the critiera. Use the sample run for help Write a program; a. displays all even

please follow directions and write the python code. Please meet the critiera. Use the sample run for help
please follow directions and write the python code. Please meet the critiera.
Use the sample run for help Write a program; a. displays all
even numbers between 2 and 100 (inclusive) and their sum. b. displays

Write a program; a. displays all even numbers between 2 and 100 (inclusive) and their sum. b. displays the square numbers between 1 and 100 (inclusive) and their sum. c. displays the powers of 2 from 1 up to 256. d. displays all odd numbers between a and b (inclusive) and their sum, where a and b are inputs. e. displays the sum of all odd digits of an input. (For example, if the input is 32677, the sum would be 3 + 7 + 7 = 17.) You must achieve each step using a loop. sample run: All even numbers from 2 to 100 inclusive: 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 The sum of all the even numbers from 2 to 100 is 2550 All squares numbers from 2 to 100 inclusive: 14 9 16 25 36 49 64 81 100 The sum of all squares from 1 to 100 is 385 All powers of 2 from 20 to 2 ** 8: 2 O is 1 2" 1 is 2 2 ** 2 is 4 2" 3 is 8 2" 4 is 16 2" 5 is 32 2*6 is 64 2" 7 is 128 2" 8 is 256 Compute the sum of all odd integers between two integers: Enter an integer: 2 Enter another integer: 15 35 7 9 11 13 15 The total of the odd numbers from 2 to 15 is 63 Compute the sum of the odd digits in an integer Enter an integer: 675432 The total of the odd digits in 675432 is 15 Criteria Ratings Pts Comments at the top of the program: First last name./ date / what your program does. 2 pts The run is included as a comment at the end of your code you must have at least 1 sample run. 2 pts The program is well-organized. Example: value1=value2 + 3 # not good style value1 = value2 + 3 # good style 2 pts Names of your variables are meaningful 2 pts Comment before any loop. 2 pts The program is running with the correct output. 13 pts comment before any if block. 2 pts loop is used to achieve each step. 5 pts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!