Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Provide sample code for one of the following items. When possible, choose an ite

ID: 3755823 • Letter: P

Question

Provide sample code for one of the following items. When possible, choose an item that has not yet been selected:

Provide an example of an infinite loop (a loop that never ends).

Provide an example of a For/Next loop that steps through a list of items in a Combobox, displays the text of each item in a messagebox and deletes the item from the Combobox.

Provide an example of a Do/While or Do/Until loop identical to the For/Next loop above.

Write a subroutine that will take a string argument and print the string centered on the page. (This one is a challenge.)

Declare a two-dimensional array to hold the first and last names of each person in the class, and initialize it to 3 students in the class.

Declare a structure that will hold a last name and a first name. Declare a one-dimensional array to hold the structure, and initialize it to 3 students in the class.

Write a loop that will search for a string value in an array.

Declare an array that holds a list of names, and write a For/Each loop to display each name in the array in a messagebox.

Note: You will not be marked down for errors in your code posted here. Errors in your code will, in fact, generate good discussion that will help the class learn the topic at hand.

Explanation / Answer

Q1) Provide sample code for one of the following items. When possible, choose an item that has not yet been selected:

1. Provide an example of an infinite loop (a loop that never ends).

for(int i=0; ; i++){

System.out.println(i);

}

Please let me know in case of any clarifications required. Thanks!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote