Free Essay

Computing File Types

In:

Submitted By T0mmy839
Words 1441
Pages 6
Computing – Programming
File Organisation
Serial File:
 In a serial file, the data is stored in the order in which it arrives.
 New data is simply added to the end of the file. This is called appending the data.
 If an item of data is to be deleted, this will create a gap in the file. This can be removed by recreating the file: copying all the records in the file, apart from the record to be deleted, into a new file and using this file to replace the original file.
 To search for data in a serial file, you will need to start from the first item and search for each item in turn until you find the record you are looking for. If the item you are searching for is not in the file, you will need to search every item in the file before you can be certain that the item is not found.
Sequential File
 In a sequential file, the data are stored according to a key field in the data. The key field is a field in each record that can be used to identify the record. For example, if each student were given a StudentlD, then a sequential file of students will be stored in order of the Student ID.
 The addition of an item to a sequential file requires the new item to be inserted within the existing records. This is usually achieved by recreating the file. All the records up to the correct point of insertion are copied to a new file. The new record is then appended in the correct position and the remaining records are copied into the new file. The new file then replaces the old file.
 If an item is deleted this would create a gap in the sequence. This can be prevented by recreating the file in the same manner as deleting an item from a serial file.
 Searching for an item in a sequential file is usually similar to searching for an item in a serial file. You start from the first item and you search each item in turn until you reach the item you are searching for. However, if you reach an item that has a higher value for the key than the item you are searching for, then you do not need to carry on searching till the end of the file to know that the item is not found.
Indexed sequential File
 An indexed sequential file is a sequential file where the data is arranged according to a key field in the record, but which also has an index that allows the records to be found directly.
 This is useful in files where sometimes it is necessary to process all records in sequential order, and sometimes it is necessary to access individual records. For example, if the program is printing a register of the students in a student file then it will access the data sequentially. However, if you want to look up the details of an individual student, then the index is used to find the required record quickly.

Direct-access files:
 If the records in a sequential file have a fixed length then it may be possible to read the contents of any record in the file directly if you know its position in the file.
 For example if the size of a record is 40 bytes, then the records in the file will be at positions 0, 40, 80, 120, etc.
 To find the tenth record, it is not necessary to go through all the records in the file. The position or 'address' of the record can be calculated using the following formula:
Address of Record number n = beginning of file + ((n-1) * Size of record)
 In this case the tenth record will be at position 360.
Random files:
 In all the file types we have discussed so far, the records are physically stored next to each other either serially or sequentially.
 A random file allows the data to be stored anywhere in a dedicated section of a disk. A calculation called a hash algorithm is performed on a field in the record to be stored.
 The result of this calculation then becomes the address. As a result, the records can appear randomly scattered across the disk. However, finding the data is extremely quick as long as you know the key field and the hash algorithm. There is no need to refer to the other data in the file.
 As a result, random files are very useful for large databases where individual records are often looked up individually.
Estimating the size of a file:
 It is possible to estimate the size of a data file using the number of records in the file and the sizes of the fields in each record.
 The procedure is as follows:
 Determine the size, in bytes, of each field in the record (for a string field, use the largest size allowed).
 Add the field sizes to calculate the size of one record.
 Multiply the size of one record by the number of records in the file.
 Add 10% to the result, for additional storage that will be needed to manage the file on the disk (we call this overheads).
 This will give you an estimate of the size of the file in bytes. If necessary, it can be converted into kilobytes (kB) by dividing by 1024, and then converted again into megabytes (MB) by dividing again by 1024.
 However, for the purposes of estimating, dividing by 1000 instead of 1024 would give a reasonably adequate result.
 For example, suppose a school had 1800 students and kept their details in a file of records structured as follows:
RECORD Student Name : String Gender : Character Age : Integer
END RECORD  The total size of each record is 23 bytes.
 The size of 1800 records is therefore 23 x 1800 = 41,400 bytes.
 Adding 10% for overheads gives us 41,400 x 1.1 = 45,540 bytes.
 Dividing this by 1000 gives us an estimate of 45.5 kB.
Preparing the file:
 Most languages will require the program to make the operating system aware that a file is about to be used.
 This is often done using an OPEN command. When the file is opened it is often necessary to specify how the file is going to be used (e.g. read only, read and write data, write data only, append to existing data, direct access, etc.). This is called the access mode.
 It protects the data in the file from being corrupted, for example, by conflicting instructions using the same file.
 For this reason, it is good practice to open a file for as little time as necessary. When the operation is over, the file should be closed. This releases the file so that it can be used by another part of the program, or another program.
Reading data from a file:
 Languages provide different methods for reading data. The simplest way is to read the data from the file one line at a time. This is useful for searching through a serial file.
 In this case it is necessary to test, before reading each line, that the end of the file has not been reached. For random and direct access files, you need to be able to read the data that is at a given address in the file.
Writing data to a file:
 You also need to be able to write the data into a file that has been correctly opened.
 This can include replacing (updating) the data in a direct-access file, or adding data to the end of a serial file (appending).
 Inserting data into a sequential file will require all subsequent records to be moved to make space for the data to be inserted. An alternative method is to create a new file and copy all the records from the present file into it, inserting the new data in the file at the correct location.
 The new file then replaces the old file. This is called merging the data into the sequential file.
File management:
 Programming languages also provide facilities for copying, moving, deleting files, and finding out if a file exists.
 The following algorithm uses several of the file operations discussed to delete a record from a sequential file:
BEGIN
Open SourceFile for reading Create NewFile Open NewFile for writing REPEAT Read a record from SourceFile IF it is not the record you want to delete THEN Write the record to NewFile END IF UNTIL end of sourcefile Close SourceFile Close NewFile Delete SourceFile Rename NewFile to the name of the SourceFile
END

Similar Documents

Premium Essay

Cloud Computing

...[pic] Cloud computing in general isn’t a term that can be defined with one specific definition as different people from all over the world each have a different understanding of the term cloud computing. Hence the best way to effectively explain the term is to explain it using different examples. Some people believe the term to mean another way of describing IT (information technology), others use it to mean any computing service provided over the Internet or a similar network; and some define it as any bought-in computer service you use that sits outside your firewall. As you can seem, there is no straightforward definition for the term and therefore best way to understand it is to learn about how it works. The main point of cloud computing can be summed up with this one short sentence: “Access your data anytime and anywhere” What is the difference between cloud computing and old fashioned personal computing? An important thing that differentiates cloud computing to the now old fashioned and declining personal computing is the location where all the data is stored. In cloud computing the data is stored on a remote database operated by a third party which can be accessed from most places, as the main requirement to access this cloud storage is only an Internet connection. In personal computing, all data is stored on a hard drive or another form of data storage device such as a usb drive, and once the data storage limit is reached a bigger hard drive...

Words: 1450 - Pages: 6

Free Essay

It332 Kaplan Unit 10

...the instruction set architecture is the program language. Table of Contents Introduction What OS file system should we use? What types of processors? Cluster Architecture? Data Backup LAN or WAN Web-based diagram Introduction to Coast to Coast computing We can get in a plane and be across the country in a few hours but what if we need to work together faster than a few hours? Is it possible? How hard is it to have users in California work with users in Washington, New York, and Florida? What has to be done to make this happen? How secure will it be to have such a network? This and many other questions come up when a company starts thinking of expansion beyond the building or city they headquartered at. When looking at a network a business wants to be sure it is using the most cost effective form for the network. The base of a network is the architecture. For small businesses a peer to peer architecture would be best. There are three types of peer-to-peer architecture: collaborative computing, instant messaging, and affinity communities. In collaborative computing the unused CPU processing power along with any free disk space is combined with machines on the same network. A very common peer-to-peer networking is instant messaging. Google Hangouts is an example of this where each user can communicate in real time via chat. In affinity communities there is file sharing which...

Words: 1513 - Pages: 7

Premium Essay

Sap Cloud

...Alleviating malicious insider in Cloud through Offensive Decoy Technology BITS ZG628T: Dissertation By ARUN PRASATH M S (2013HT13268) Dissertation work carried out at L&T Info Tech LTD, Chennai BIRLA INSTITUTE OF TECHNOLOGY & SCIENCE PILANI (RAJASTHAN) November 2015 i Alleviating malicious insider in Cloud through Offensive Decoy Technology BITS ZG628T: Dissertation By ARUN PRASATH M S (2013HT13268) Dissertation work carried out at L&T Info Tech LTD, Chennai Submitted in partial fulfillment of M.Tech. Software Systems degree Programme Under the Supervision of Matthew Jones, Senior Software Engineer, L&T Info Tech, Chennai BIRLA INSTITUTE OF TECHNOLOGY & SCIENCE PILANI (RAJASTHAN) November 2015 ii CERTIFICATE This is to certify that the Dissertation entitled Alleviating malicious insider in cloud through offensive decoy technology and submitted by ARUN PRASATH M S having ID-No. 2013HT13268 for the partial fulfillment of the requirements of M.Tech. Software Systems degree of BITS, embodies the bonafide work done by him/her under my supervision. Signature of the Supervisor Place: Chennai Date: 31.10.2015 Matthew Jones, Senior Software Engineer, L&T Info Tech, Chennai iii Birla Institute of Technology & Science, Pilani Work-Integrated Learning Programmes Division First Semester 2015-2016 BITS ZG628T: Dissertation ABSTRACT BITS ID No. : 2013HT13268 NAME OF THE STUDENT : ARUN PRASATH MS EMAIL ADDRESS ...

Words: 7788 - Pages: 32

Premium Essay

Upload

...customer relationship management (CRM), all run in cloud. What is Cloud Computing? Cloud Computing refers to manipulating, configuring, and accessing the applications online. It offers online data storage, infrastructure and application. We need not to install a piece of software on our local PC and this is how, the cloud computing overcomes platform dependency issues. Hence, the Cloud Computing is making our business application mobile and collaborative. Cloud Computing Technologies There are certain technologies that are working behind the cloud computing platforms making cloud computing flexible, reliable, usable. These technologies are listed below: * Virtualization * Service-Oriented Architecture (SOA) * Grid Computing * Utility Computing Virtualization Virtualization is a technique which allows to share single physical instance of an application or resource among multiple organizations or tenants(customers). It does so by assigning a logical name to a physical resource and providing a pointer to that physical resource when demanded. The Multitenant architecture offers virtual isolation among the multiple tenants and therefore, the organizations can use and customize the application as though, they each has its own instance running. Service-Oriented Architecture(SOA) Service-Oriented Architecture helps to use applications as a service for other applications regardless type of vendor, product or technology. Therefore it is possible to exchange...

Words: 4978 - Pages: 20

Premium Essay

Google Drive

...Google Drive3 Functions4 1. Synchronizing files in your computer with Google Drive4 2. Share files with Google users5 3. Several Google Drive users can edit the same file at the same time in different places6 4. Google Drive viewer allows users to preview over thirty file formats8 5. Document offline editing10 6. Revision History11 7. Web app13 The area (other than Microsoft Office) that can assist users15 Conclusion17 Introduction Nowadays, cloud computing become more and more popular. The most famous tools providing all-round cloud computing service are Google Drive and Dropbox. Cloud computing refers to a model of computing that provides access to a shared pool of computing resources (storages, application, and services, over a network, often the Internet. End users can access cloud-based applications through a web browser or a light-weight desktop or mobile app while the business software and user's data are stored on servers at a remote location. One of the advantages of using cloud computing is the location independent resources. Introduction to Google Drive Google Drive provides Google users a 5GB free of cloud computing storage. It accompanies with Google Doc, offering web-based office suite and data storage service. It allows users to create and edit documents online while collaborating in real-time with other users on the internet. For Google Drive to synchronize files on the user's computer in the cloud, the Google...

Words: 2677 - Pages: 11

Free Essay

Online Storage Backup Systems

...References…………………………………………………………...12 Executive Summary Everything we do today in our private lives and in the business world has moved online. The amounts of data stored have increased exponentially over the years. The need for reliable data storage has also increased over the years. The media and methods in which we store our data has become as important as any other technology. As technology has advanced, more and more data is being stored and having reliable means of storage has become a challenge that IT professionals will continue to deal with in the future. In this paper, I will outline the different types of backups that have been used over the years. I will talk about how data backup and storage has move to an online arena. Finally I will talk about cloud storage and cloud computing. I will discuss how cloud computing will become the future of how we operate in the online world. Background The need for backing up data has existed for as long as we have been using computers. When we first started using computers, data was stored on floppy disks or tape drives. In the beginning the amounts of data being stored were relatively small. Floppy disks and tape drives provided a sufficient amount of space to store the amounts of data being produced. Over the years, technology has evolved and the amounts of data have increased. As the world moves closer and closer to being completely online, the need for online data storage...

Words: 2743 - Pages: 11

Premium Essay

Nt1330 Unit 3 Assignment 1

...“Cloud is used as a metaphor for the internet. Cloud computing is a type of computing that relies on sharing computing resources rather than having local servers or personal devices to handle applications. Cloud computing is comparable to grid computing, a type of computing where unused processing cycles of all computers in a network are harnessed to solve problems too intensive for any stand-alone machine.” Office applications are the primary factor when deciding on any office suite, whether online or not. If the word, spreadsheet, presentation, or other tools don’t meet your needs, then you should not use that suite. If you like Office, then you will probably feel most comfortable with working in Office 365. They offer more choices with fonts and formatting than Google Apps and other suites. To start off Office gives you 2GB of storage for sharing online. For email each person has 25MB. They also offer up to 35MB for file attachments. Although these are just starting, points extra megabytes can be purchased as you need them. Office 365 allows access from anywhere. All you need is a computer, laptop, tablet, phone, or internet connection. If you make a change to...

Words: 676 - Pages: 3

Premium Essay

Technolgy to Advance Sales for Nutz an Boltz Hardware Corporation

...Technology to advance sales for Nutz n Boltz Hardware Corporation Mohsin Ahsan Managerial Applications of Information Technology 535 Keller Graduate School of Management August 1, 2013 Professor Jorge Echavarria Technology to advance sales for Nutz n Boltz Hardware Corporation 1.0 Abstract This paper will address the role of information systems in a new startup hardware store, Nutz n Boltz Corporation. The company intends to utilize its ability to use information technology and ability to implement corporate strategies and achieve its corporate goals as well. The company has decided to invest heavily in information systems to achieve several strategic objectives: operational excellence, services, customer and supplier intimacy, improve decision making, competitive advantage, and survival. In order for the start-up hardware business to be successful, the company will have to overcome several obstacles. There are several methods and options that the company can choose from. This paper addresses each problem and then discusses the best solutions that will tackle each problem. These solutions will allow the company to be successful. 2.0 Brief Company Background Nutz n Boltz Corporation is a hardware store located in downtown Los Angeles, California. The business is a startup. Their mission is to put their customers first by providing the best customer service, most complete selection, and the highest in stock level at the right price through friendly, motivated...

Words: 2828 - Pages: 12

Premium Essay

Capital Structure

...Cloud Computing Tutorial CLOUD COMPUTINGTUTORIAL Simply Easy Learning by tutorialspoint.com tutorialspoint.com i ABOUT THE TUTORIAL Cloud Computing Tutorial Cloud Computing provides us a means by which we can access the applications as utilities, over the internet. It allows us to create, configure, and customize the business applications online. This tutorial will take you through a step-by-step approach while learning Cloud Computing concepts. Audience This reference has been prepared for the beginners to help them to understand the basic-to-advanced concepts related to Cloud Computing. This tutorial will give you enough understanding on Cloud Computing concepts from where you can take yourself to a higher level of expertise. Prerequisites Before proceeding with this tutorial, you should have basic knowledge of Computers, Internet, Database and Networking concepts. Such basic knowledge will help you in understanding the Cloud Computing concepts and move fast on the learning track. Copyright & Disclaimer Notice All the content and graphics on this tutorial are the property of tutorialspoint.com. Any content from tutorialspoint.com or this tutorial may not be redistributed or reproduced in any way, shape, or form without the written permission of tutorialspoint.com. Failure to do so is a violation of copyright laws. This tutorial may contain inaccuracies or errors and tutorialspoint provides no guarantee regarding the accuracy of the site or its...

Words: 9938 - Pages: 40

Free Essay

Chapter 6 Foundations of Business Intelligence: Database and Information Management

...Chapter  5   IT  Infrastructure  and  Emerging  Technologies     IT  Infrastructure   • Shared  technology  resources  providing  platform  for  specific  IS  applications   • Investment  in  hardware,  software,  services  (consulting,  education,  training)   • Foundation  for  serving  customers,  working  with  vendors,  managing  business   process   • Set  of  physical  devices  and  software  required  to  operate  enterprise   • Set  of  firmwide  services   o Computing  platforms  providing  computing  services  (e.g  desktop   computer,  laptop)   o Telecommunications  services   o Data  management  services  (+analyzing)   o Application  software  services  (ERP,  CRM,  SCM,  KMS)   o Physical  facilities  management  services   o IT  management  (plan  infrastr.  Coordinate  with  BU),  standards  (policies),   education  (training)  ,  research  and  development  services  (future   investments)   • “Service  platform”  perspective  more  accurate  view  of  value  of  investments     Evolution  of  IT  Infrastructure   • General-­‐purpose  mainframe  &  minicomputer  era:  1959  to  present ...

Words: 3490 - Pages: 14

Premium Essay

Cloud Computing

...Cloud computing can offer small businesses significant cost-saving benefits namely, pay-as-you-go access to sophisticated software and powerful hardware while at the same time offering a host of other advantages 1. Fully utilized hardware Cloud computing brings natural economies of scale. Your workloads will share server infrastructure with other organizations' computing needs. This allows the cloud-computing provider to optimize the hardware needs of its data centers, which means lower costs for you. 2. Lower power costs Cloud computing consumes less electricity. That's an inevitable result of the economies of scale I just discussed: Better hardware utilization means more efficient power use. When you run your own data center, your servers won't be fully-utilized (unless yours is a very unusual organization). Idle servers waste energy. So a cloud service provider can charge you less for energy used than you're spending in your own data center. 3. Lower people costs Whenever I analyze organizations' computing costs, the staffing budget is usually the biggest single line item; it often makes up more than half of the total. Why so high? Good IT people are expensive; their salaries, benefits, and other employment costs usually outweigh the costs of hardware and software. And that's even before you add in the cost of recruiting good staff with the right experience. When you move to the cloud, some of the money you pay for the service goes to the provider's staffing costs. But...

Words: 1864 - Pages: 8

Premium Essay

Proposal; Cloud Computing

...Cloud Computing | Henry Knipschild | IS-535: Managerial Applications of Information Technology: Professor Goyden | Hok1964@yahoo.com | Henry Knipschild | 1/15/2012 | ”As times continue to change it is evident that technological changes will become advanced.” | Contents Introduction………………………………………………………………………………..............2 Proposal……………………………………………………………………………………………3 Milestone 1………………………………………………………………………………………...4 Background Cloud Computing……………………………………………………………………5 Approaches & Solutions………………………………………………………………..................6 Methodology....................................................................................................................................7 Options & Solutions………………………………………………………………………….........8 Milestone 2………………………………………………………………………………………..9 Cost Analysis...…………………………………………………………………………………..10 Types of Services……………………………………………………………………………….. 12 Infrastructures Changes………………………………………………………………………….12 Application……………………………………………………………………………………….13 Milestone 3.....................................................................................................................................15 Summary of Milestones.................................................................................................................16 Conclusions and Recommendations..............................................................................................18 References………………………………………………………………………………………..19 ...

Words: 5134 - Pages: 21

Premium Essay

Senator

...End User Computing – Microsoft Office 2010 Lesson 3 – Customising the Windows 7 Desktop Page 66 – Customise the Start Menu Page 69 – Activity 3.2 1. Which option on the start menu enables you to add programs to it so that you can access the added programs quickly and easily? a. Add to start menu b. Pin to start menu c. Default programs d. Properties 2. True or false. The pin to start menu option enables you to add a program icon to the frequently used program section of the start menu. a. True b. False Page 70 – Customise the Taskbar Page 75 – Activity 3.4 1. Which option in the taskbar and start menu properties dialog box hides the taskbar automatically when not in use? a. Lock the taskbar b. Auto-hide the taskbar c. Taskbar buttons d. Taskbar location on screen 2. Identify the options in the taskbar and start menu properties dialog box for customising the taskbar. a. taskbar buttons b. Notification area c. Preview desktop with aero peek d. Task manager Page 75 – Personalise the Desktop Personalisation Options - Change desktop icons (enables you to select the items you want to display and change the display image of icons) - Change mouse pointers (enables you to customise the behaviour of mouse pointers) - Change your account picture (enables you to choose a new picture for your account, which is displayed on the start menu and welcome screen) - Aero themes (enables you to apply an aero them that enhances the taskbar and display the functionality of the desktop) End User...

Words: 4214 - Pages: 17

Premium Essay

Cloud Computing

...organization…………..…………….………….…..8-10 5.6 Types of Cloud Computing 5.7 High Level Solutions 5.8 Cloud Computing Economics 5. Brief Description of proposed solution…………………………..………….10-12 6.9 Products 6.10 Business Recommendations 6. General benefits it will provide the organization…………………..……12 7. Audience to whom you are presenting the recommendation(s)…..12 8. Conclusion………………………………………………………………………………..14-15 9. References…………………………………………………………..…………………...16 Abstract The latest major changes in information technology today is Cloud computing. Cloud computing creates a dynamic and competitive working environment where changes are made at a fast pace in many companies and organizations today that are looking for ways to save on hardware storage, costs and production. The option of having a system that would allow a company to store its files elsewhere helps a company by freeing up more space on its own main server. In today’s business Information technology (IT), infrastructure and systems on the cloud have benefits of variable pay per use costs, with better technology and high scalability. This is a “hot issue” in the technology world because it affects the way we spend our money. The idea came about by coming up with one place to file, in a central location away from the main computer. There must be a main server that is big enough to route files to. This type...

Words: 3804 - Pages: 16

Premium Essay

Cloud Computing

...ACC 370-01 2/12/15 Cloud Computing Cloud computing involves servers and software networks; this allows centralized data storage and online access to computer services or resources. In other words, users can access software applications through the internet or any other networks through the cloud application provider. Cloud computing is just a term used to describe this process. Many things can be achieved using cloud computing as long as it’s properly done and maintained. There are various positive outcomes that derive from this innovative business approach. However, some corporate executives would prefer not to use cloud computing due to security and privacy issues. The main concern is that people’s important data and personal information would not be secured, as well, as it should be and is at risk of being compromised. With this being said, there are potential positives outcomes as well as negative ones. Cloud computing is hosted on remote servers, which receive the data that is sent to “the cloud”. Using this type of accounting software saves businesses from having to install and maintain software on each individual desktop computer. It also allows employees, in remote or branch offices, to access the same data and the same version of that same software. There are three different types of clouds: private, public and hybrid. (Cloud computing accounting software) Each of these clouds has its own specifications relating how and where it will operate. A private cloud for...

Words: 1159 - Pages: 5