subject

Lab Goal : This lab was designed to demonstrate the similarities and differences in a for loop and a while loop. Lab Description : Write a for loop that accomplishes the same goal as a while loop and write a while loop that accomplishes the same goal as a for loop. Finally, write a loop your way: write either a for loop or a while loop that produces the appropriate output. Sample Output : While Loop String Cleaner I am Sam I am with the letter a removed by a while loop is I m Sm I m For Loop String Cleaner I am Sam I am with the letter a removed by a for loop is I m Sm I m For Loop Common Divisor The for loop determined the common divisors of 528 and 60 are12 6 4 3 2 While Loop Common Divisor The while loop determined the common divisors of 528 and 60 are12 6 4 3 2 My Total Loop My Way The total of even numbers from 1 to 1000 using a for loop is 250500The total of even numbers from 1 to 1000 using a while loop is 250500*Only one of the two output statements are required. For extra credit, do both

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
question
Computers and Technology, 24.06.2019 20:10
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
You know the right answer?
Lab Goal : This lab was designed to demonstrate the similarities and differences in a for loop and a...
Questions
question
Mathematics, 17.11.2020 03:30
question
Geography, 17.11.2020 03:30
question
Mathematics, 17.11.2020 03:30
question
English, 17.11.2020 03:30
question
Mathematics, 17.11.2020 03:30
question
Mathematics, 17.11.2020 03:30
Questions on the website: 13722360