The previous Discussions have provided the opportunity to share some elegant solutions to programming challenges, and many of them share one common trait—they all handle multiple objects with ease. Forget, for the moment, about some of the complexity involved. The formulas may seem strange, but do not worry. At this stage of programming, you are not expected to generate such things on your own; very few new programmers can. Instead, stop to consider the ways programs embrace the computer’s true assets.

Machines do not mind doing the same thing over and over again; they never get bored. They are also capable of handling massive amounts of data in an impeccably organized manner. One of your challenges as a programmer is to communicate, through code, in an efficient way that plays to the computer’s strengths.

Consider, for example, having to write a program to manage personnel records for all of the people working for your company. You certainly would not want to have to write a program with a unique variable for each unique person in the company. Every time a new employee was hired, someone would have to modify the program to add a new variable for that employee. Every time an employee left the company, someone would have to modify the program to remove that employee’s variable and data from the program. Clearly, this would be a very tedious way to automate personnel records. Instead, you need a way to manage that collection of personnel information in a more organized manner. In fact, you need a way of representing the collection of individual employees as just that, a single variable that provides access to all of the employees. Then, you can use loops to process the employee data. Fortunately, Java provides the concept of an array (and other similar collections, such as the ArrayList) to manage collections of similar objects.

It takes time to truly grasp how powerful object-oriented programming can be and how you can harness its "objects-first" focus to make your own programs concise and elegant. Unfortunately, some programmers do not invest that time. They rely on brute force—repetitive methods resulting in long programs that are, by nature, hard to review and debug.

Return to the open source repositories you previously explored. Find a program that (A) uses at least one loop and a list effectively or (B) could use a loop and a list to improve the program.

*. Response that summarizes your findings. The post should:

1. Include a copy of the code that either (A) exemplifies concise, generalized code or (B) presents the perfect opportunity to apply loops, arrays, and lists to reduce the length of the program using a more elegant solution. Do not undertake a lengthy program; limit your code to approximately 20 lines.
2. If the code is an exemplar of good coding, explain what leads you to that conclusion. Be specific.
3. If the code needs improvement, include a rewritten version of the code, in which you apply one of the methods described above to improve the program. Explain how your solution better embraces a computer’s strengths as a tool that can perform calculations quickly, perform repetitive tasks, and/or manage data effectively.
4. Add or revise comments in the code to accurately describe the function of the loop and list.
Do not include the entire source code of the program you choose. Select just the portion with the necessary information, such as variable declarations and methods called from outside the class or method.

Answers

Answer 1

Answer:

I can't make out the question


Related Questions

Help please i will mark brainlist!

Answers

For the simplex data transmission draw an arrow from computer A to computer B.

For the half duplex data transmission draw an arrow from computer A to Computer B.
Draw an arrow from computer B to computer A.

For the Duplex data transmission draw a two sided arrow from computer A to computer B.
Other Questions
which statement is true about the energy of solids Mia has 4 horses and 11 apples. She gives each horse the same number ofapples, and she uses as many apples as she can. How many apples does Miagive each horse? How many apples are left? Complete the equation.11 : 4 =R DNA and RNA are both nucleic acids, but their structures and functions differ. Which of the following options correctly describes the structures and functions of DNA and RNA?A)DNA is a double helix that carries all of the genetic information of an organism, while RNA is single-stranded and carries only half of the genetic information.B)RNA is made from DNA and is used in transcription, while DNA is used in translation.C)DNA is a double helix that is used to make proteins, while RNA is single-stranded and used to make lipids.D)In DNA, adenine, thymine, guanine, and cytosine join together and carry all of the genetic information. RNA is made from adenine, uracil, cytosine, and guanine and is used to make proteins. Complete the number sentence to solve. Two students share 9 blocks of clay equally How much clay does each student get? A school is purchasing graphing calculators for use in math classrooms. The graph shows a relationship between the number of graphing calculators purchased and the total cost.The constant of proportionality is 120. True or falseIf a graph is a straight line, it shows a proportional relationship. True or falseAny graph that passes through origin represents a proportional relationship. True or false.A graph must be a straight line and go through the point (0,0) in order to represent a proportional relationship. True or false.PLEASE HELP!! Why was the opening of the Disney Studio in 1923 such an important event? 3x3-5/5x6+19 i dont know what Im dont wrong CAN SOMEONE HELP I WILL GIVE BRAINLIST PLEASE! help PLEASE! im not sure what to do (5y + 2x - 5) - (2y - 2x - 5) i need this in step by step any one out there to hear my pathetic call of help What was luis rocafall significance in chile? 1. Mobility with steadiness______ What was Galileos new truth? Can you please help me? Turn (multifaceted) to prefix/base or root/suffixExample:introspection prefix:intro base or root/spec suffix/tion ISHSJDJDKDKDKFJJXDIIDJDJXJDJDJDJEJDBDJMATH IDDIJXJDTEEEJE Identify the expressions that are equivalent to 5x + 7. Select the THREE that apply. A 5(x + 1) + 2 B. 9x - 4x + 13-6 y + 7 + 4y D 3x + 1 + 2y + 6 E 2x + 4 + 3x + 3 If 23+37=60 does 23+37+9=60+9 please help me #1what is another word that means the same as moon in space options:A: astroidB: cometC: satelliteD:star#2The same side of the moon always faces Earth. Why is this?A: Half the moon faces the sun.B: The moon does not rotate like Earth does.C: The moon's revolution and rotation are about the same length.D: Earth blocks part of the sunlight that shines on the moon's surface.#3Kasha likes to look out the window at the moon. She observes that it seems to change every week. Which sentence best explains why this happens?A: The moon moves between Earth and the sun.B: The moon rotates only once in about a month.C: The same side of the moon always faces Earth.D: The amount of the lighted part of the moon that faces Earth changes.#4 --SCREEN SHOT-- the 1 one#5People on Earth see the moon every night. Sometimes people also see the moon during the day. Why does this happen?A: The moon makes its own light.B: The moon moves closer to Earth.C: The moon is reflecting light from Earth.D: The moon is reflecting light from the sun.#6 --SCREEN SHOT-- the 2 one#7. --SCREEN SHOT-- the 3 one#8. --SCREEN SHOT-- the 4 one A mail carrier delivered mail to 84 houses in 6 hours. At what rate did the mail carrier deliver the mail?