Prg/420 Week 5 Individual Assignment

FINAL ASSIGNMENTFinal AssignmentTeam had a number of programs that provided good opportunities to use code from one program to perform process of another program. The program created involves using the main program that Nicholas Fielding created and the SalesPerson class that Gary Steede wrote. There were a few reasons why these two programs were selected, such as:One program used java’s scanner class and the other used JOption for data input and output.One program had many instances of code repetition that could be consolidated by the other program file.One program limited the number of compared salespersons, while the other allowed the program to grow as additional salespersons needed to be compared.Nicholas’s program incorporated the use of JOption, which none of the other programs submittedused. This presented a challenge as most programs were written focusing on the use of java’s scanner class option for data input, and allowed us to see how code written for one class could work with code written to work with another data input class, in this case JOption. Another reason for the selection was that Nicholas’s program was written in a single file and contained numerous areas of repeated coding that performed calculations, which the SalesPerson class file of Gary’s program, could easily perform and eliminate all of this repeated coding. Combining would reduce allot of unneeded coding and provide a growth potential to the program if needed in the future.As noted, many programs could have been used for selection to use coding from one program in another to do a similar function that has been created by the team. In the programs that were combined deciding on what classes and function needed to be replaced was merely a matter of determining repetitive code in one program that could be performed by a similar method from the other file called upon to perform those processes. In the case of the selected 2

CHALLENGES IN DESIGNING AND PLANNING2Biggest Challenges in designing and planning the solution for a programming problemWhen I attempt to consider three things that are foremost to the achievement or disappointment of an project or programming problem, I have a tendency to think about the "triple imperative hypothesis", or the triangle of death. There's an old saying, "great, quick or shoddy, pick two." Since the answer for this exchange question requires my supposition, I'll elaborate. There are numerous sorting program algorithms present out there in the programming environment. In the event that I needed to utilize one immediately and I wasn't excessively worried about execution speed right now, I would pick bubble sort, most likely the "slowest sorting algorithm" out there (unless I'm attempting to make it moderate.) Depending on your point of view this could be quick or shabby. It takes me around “5 minutes to sort”, however yes, it squanders framework assets. There are other sorting

0 Thoughts to “Prg/420 Week 5 Individual Assignment

Leave a comment

L'indirizzo email non verrĂ  pubblicato. I campi obbligatori sono contrassegnati *