Data Structures, Arrays, and Modularizing

In a computer, “the data structure becomes an object that includes data and functions” (Robertson, 2007). It stores and organizes the data in a computer. Data structures make it possible to sort through large databases and internet indexing services. These would include online libraries, such EBSCOhost through universities, and search websites, such as Google.

These would also include member profiles such as Facebook.Arrays “provide the programmer with a way of organising a collection of homogeneous data items (that is, items that have the same type and the same length) into a single data structure. An array, then, is a data structure that is made up of a number of variables all of which have the same data type” (Robertson, 2007). For example, there are 40 students in the first grade. A single variable name such as ‘first’ can be used with all 40 first grade students. “The individual data items that make up the array are referred to as the elements of the array.Elements in the array are distinguished from one another by the use of an index or subscript, enclosed in parentheses, following the array name” (Robertson, 2007), such as ‘first (8)’.

This subscript refers to the eighth student in the first grade. The smallest element of an array must also be the size of the largest element, so in using the months of the year as an example, the names of the shorter months must be padded with blank spaces. The month of May must be as long as the month of September. Modularization breaks down the complexity of programming.That means that the complex problem gets divided into smaller parts, thus creating subtasks or functions from the major tasks. The subtasks can then be further divided into smaller subtasks, as long as each task or subtask is independent of all others. “There are a number of benefits from using modular design.

  • Ease of understanding: each module should perform just one function.
  • Reusable code: modules used in one program can also be used in other programs.
  • Elimination of redundancy: using modules can help to avoid the repetition of writing out the same segment of code more than once. Efficiency of maintenance: each module should be self-contained and have little or no effect on other modules within the program” (Robertson, 2007). For the “ease of understanding, each module should perform one function” (Robertson, 2007). An example is when a computer prompts for the number of drinks from the coffee bar, sorts them by type of drink, and then displays a chart to a screen or output. This task may repeat itself throughout the morning rush hour and can be created as a subtask.

For “reusable code, the modules used in one program can also be used in other programs” (Robertson, 2007). Once a module has completed testing and is essentially error-free, it can be used in other programs instead of rewriting or creating new code. For an example, a second coffee bar may use the code for afternoon business hours. For “elimination of redundancy, using modules can help to avoid the repetition of writing out the same segment” (Robertson, 2007).

Using a module shortens the length of code when many portions may actually be repetitious.For example, the library may need to monitor how many books on science are checked out during the month of the science fair. Naturally, other books would be checked out during that same time and those need to be monitored as well.

Instead of writing the whole code to ask if a book was on science or something else, a module would shorten the code. For “efficiency of maintenance, each module should be self-contained and have little or no effect on other modules within the program” (Robertson, 2007). The modules should only perform one task and not be dependent on another module.If a module is modified or removed, it will not have a potentially damaging effect on other modules in the software. Programming can range from something simple like maintaining a log of exercise hours completed during the week or as complex as operating the space shuttle where lives are dependent upon perfect code. These are some of the steps taken to ease the process.

References

  1. Robertson, L.A. (2007). Simple Program Design. A Step by Step Approach, Fifth Edition. cGraw-Hill.. Retrieved from University of Phoenix eBook Collection database.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyStudyWriters
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business and administrative studies
excellent work
Customer 452773, March 9th, 2023
Business and administrative studies
excellent job thank you Your Score 166.25/ 175- A 1. Current Culture 15% of total grade 18.37 Criterion "1. Current Culture" has textual feedback Criterion Feedback I see interesting points, though, in general they are not about the culture.
Customer 452773, June 4th, 2023
Management
Thank you!!! I received my order in record timing.
Customer 452551, February 9th, 2021
Nursing
I just need some minor alterations. Thanks.
Customer 452547, February 10th, 2021
Business and administrative studies
looks good thank you
Customer 452773, March 3rd, 2023
Human Resources Management (HRM)
excellent
Customer 452773, June 25th, 2023
Sociology
THANK YOUUUUU
Customer 452591, March 18th, 2021
FIN571
excellent work
Customer 452773, March 1st, 2024
Business and administrative studies
excellent, got a 100
Customer 452773, May 17th, 2023
Business and administrative studies
Excellent work ,always done early
Customer 452773, February 21st, 2023
Human Resources Management (HRM)
excellent work
Customer 452773, July 3rd, 2023
BUSINESSADMINECO535
excellent work
Customer 452773, October 6th, 2023
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Close

Sometimes it is hard to do all the work on your own

Let us help you get a good grade on your paper. Get professional help and free up your time for more important courses. Let us handle your;

  • Dissertations and Thesis
  • Essays
  • All Assignments

  • Research papers
  • Terms Papers
  • Online Classes
Live ChatWhatsApp