The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1 Write a loop that will calculate the sum of every third integer, beginning with i=2 (icy calculate the sum 2 + 5 + 8 + 11 + - ) for all values of it that are less than 100. Write the loop three different ways.
(a) Using a while statement.
(b) Using a do - while statement.
(c) Using a f o r statement
2. Repeat 1 calculating the sum of every nth integer, beginning with the value assigned to n start (i.e., for i= n s t a r t , n start + n, n start + 2*n, nstart + 3*n, etc.). Continue the looping process for all
values of that do not exceed n stop.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------