Post University Responding to Classmates Programming Discussion

User Generated

yhoh1

Programming

Post University

Description

explain why you agree with your classmates.......................................

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hey dude, hope you're doing well 😄 Check out the work and let me know if any further assistance is required 😇

Responding to classmates

First Name Last Name
Department Name, Post University
Course Number: Course Name
Instructor’s Name
Due Date for Assignment

1. As a professional programmer, you may never need to write a sorting program
because in many instances the company you work for may have either already created
one or are using a purchased generic one. An example of a “need” to sort records would
be in the instance of an audit or something of the like. Some sort of massive obvious
discretion has occurred and needs to be rectified. Taxes would be a prime example or
even at worst a case of embezzlement.
It is the fact that professional programmers work with handful of useful materials, in our case
sorting algorithms. While working in a group or team it is massively possible for a company
to have a library which contains the sorting algorithm for their programmers to work quicker.
The given examples, definitely, justifies the need to sort records: The sector of audit contains
records that could be crucial and sometime we have to look for specific record in prioritized
and sorted form. Records that are messed can create trouble to work with, therefore sorting
justifies its need that it can makes it easier to work through the records. Taxes, the most
crucial topic where a single penny matters, requires the need of sorting.
By inserting a flag variable, it can be determined if a swap has occurred or not. It is
placed in the sort () with a variable of did or did not swap nested loop. If in the last loop
if a swap did not occur the flag assumes that the list is sorted and closes the loop
process. If a swap did occur the loop returns to sort. This allows for faster processing
times and therefore is more efficient.
To find out a specific action has occurred during the process, flag plays a very important role
to give us information about it (Flag). In sorting, while loop looks for a swap to occur, the
flag can be placed to determine whether the swap has occurred. Returning to sort (function)
once the swapping has been occurred can definitely save time of processing hence makes
performance better.

2. As mentioned in our textbook, there are several reasons why one would not need to
write code as a programmer. They include having access to a sorting method that has
already been created, using a generic “canned” sorting program, or having access to a
program with built-in methods that can sort data (Farrell, 2018). A situation where you
would need to sort records that comes to mind is sorting recurring expenses. Sorting
records by expense type, amount, and due dates would be a practical example.
Mostly, the programming languages we use, provide sorting methods which makes it easier
to work with. Although, it is not necessary for programming language must contain sorting
methods, so, this is highly possible that sorting methods has been created using a generic
canned method. Sorting is very useful to make a sequence of records a...


Anonymous
Awesome! Perfect study aid.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags