subject

Write a program with loops that compute: (10 points total) 1. Use a loop to sum the even numbers from 2 to 100 (inclusive) 2. Compute the sum of all of the squares from 1 to 10 (exlusive). 3. Compute all powers of 2 from 2 ** 0 to 2 ** 20 (inclusive). 4. Compute the sum of all odd integers between a and b(inclusive) where a and b are inputs. 5. Compute the sum of the odd digits in an input. For example: If the input is "32a7b79" then sum

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
You know the right answer?
Write a program with loops that compute: (10 points total) 1. Use a loop to sum the even numbers fro...
Questions
question
Mathematics, 12.01.2022 17:30