subject
Computers and Technology, 26.10.2021 15:20 mochoa4

Use loop structures below to print the even numbers 2 to 100. (2, 4, 6, 8, 10, etc) Each program will have the same output. Write programs that print the same output as that program, but do it in the following ways: a. Using a for loop that increments the loop control variable by 2 each iteration.
b. Using a for loop whose loop control variable goes from 0 to 50.
c. Using a for loop whose loop control variable goes from 100 down to 0.
d. Using an infinite for loop with no conditional expression and exiting the loop with a break statement.
e. Using a while loop.
f. Using a do-while loop.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Draw the hierarchy chart and design the logic for a program that calculates service charges for hazel's housecleaning service. the program contains housekeeping, detail loop, and end-of-job modules. the main program declares any needed global variables and constants and calls the other modules. the housekeeping module displays a prompt for and accepts a customer's last name. while the user does not enter for the name, the detail loop accepts the number of bathrooms and the number of other rooms to be cleaned. the service charge is computed as $40 plus $15 for each bathroom and $10 for each of the other rooms. the detail loop also displays the service charge and then prompts the user for the next customer's name. the end-of-job module, which executes after the user enters the sentinel value for the name, displays a message that indicates the program is complete.
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
You know the right answer?
Use loop structures below to print the even numbers 2 to 100. (2, 4, 6, 8, 10, etc) Each program wil...
Questions
question
Mathematics, 05.02.2020 11:51
question
Mathematics, 05.02.2020 11:51
question
Mathematics, 05.02.2020 11:52
Questions on the website: 13722362