Essay Available:
You are here: Home → Essay → Technology
Pages:
2 pages/≈550 words
Sources:
Level:
APA
Subject:
Technology
Type:
Essay
Language:
English (U.S.)
Document:
MS Word
Date:
Total cost:
$ 9
Topic:
Array structure proposal (Essay Sample)
Instructions:
Begin the proposal by defining any objects or object-oriented programming. Explain the size and data types of the array structure.Create a new example of an array structure.Create a flowchart that parallels this pseudocode.
source..Content:
Array Structure Proposal
Student Name
Institution
Array Structure Proposal
Objects
In programming and computer science, an object is defined as a location in memory (Knaster, Malik & Dalrymple, 2012). The location has value and is always referenced by an identifier. There are different forms of objects from functions, data structures and variables. Objects are the basis upon which object oriented programing (OOP) languages are based. Object oriented programming involves designing software systems that are modular and reusable. The design uses a modelling approach where standard and good design principles are adopted. Object oriented programming has been extended from structured programming approach and the abstract data types (Knaster, Malik & Dalrymple, 2012). The model is revolves around objects and data rather than actions and logic. While used in an OOP language, an object specifies an instance of a class or a specific type. The structure adopted by the object is universal throughout the class. However, objects may differ based on characteristics. Depending on the programming language used, objects have the ability to call methods or functions that are specified for that object.
Using OOP, a programmer can easily structure, organize and code massive programs. This is because an object is independent and can be modified without affecting the entire program. Updating and introducing changes to the objects is also easily done without affecting the program and this has enhanced software management and maintenance. In real life an object has properties or attributes and methods as shown in the example below.
Object
Properties
Methods
Car
Name, model, color, weight, price
Start, drive, brake, repair
Dog
Name, color, age, size
Bark, sleep, run
Arrays
Arrays are variables that are used to hold multiple values (Knaster, Malik & Dalrymple, 2012). The number of variables to be stored in an array determines its size. Some programming languages such as C require that the size of an array be specified explicitly. An array is used for describing variables and values. The values are identified by indices (this are keys for identification). The indices are computed at the runtime or compilation of the program. All the components in an array are of the same type. In a programming language like Java, an array is considered an object. Example of declaration an array in java.
int [ ] num= new int [5];
From this example, it can be discovered that the following syntax has been used to declare an array.
Data type [ ] array name;
Array name= new data type [N]; where N initializes the number of variables in the array. After initialization and declaration, an array can be accessed in the following manner.
Array name [index]; the index refers to the position of the variable in the array. An array can be initialized and declared at the same time as shown below.
Double [ ] sales= {12, 24, 36.5};
<...
Get the Whole Paper!
Not exactly what you need?
Do you need a custom essay? Order right now:
Other Topics:
- Ensuring Effective use of Permit to Work Guidelines in the Oil and Gas Industry of AustraliaDescription: Ensuring Effective use of Permit to Work Guidelines in the Oil and Gas Industry of Australia: An Exploratory Study...32 pages/≈8800 words| APA | Technology | Essay |
- Twitter Impact On JournalismDescription: Twitter Impact On Journalism Technology Essay...1 page/≈275 words| APA | Technology | Essay |
- Are Americans Becoming Too Dependent on Computers?Description: Are Americans Becoming Too Dependent on Computers? Technology Essay...1 page/≈275 words| APA | Technology | Essay |