...of sequential files for data input. We will also describe how to manipulate the records in these files in several ways. After reading this chapter, you will be able to do the following: Identify the types of data files [Section 8.1] Identify records and fields within a data file [Section 8.1] Create, write data to, and read data from a sequential file [Section 8.1] Delete, modify, and insert records in a sequential file [Section 8.2] Use arrays for file maintenance [Section 8.2] Merge two data files so that their records stay in order [Section 8.3] Use the control break processing technique in certain programming situations [Section 8.4] Combine many techniques learned so far—data files, arrays, searching, and sorting—to create a longer program [Section 8.5] ISBN 1-256-14455-X 405 Prelude to Programming: Concepts and Design, Fifth Edition, by Stewart Venit and Elizabeth Drake. Published by Addison-Wesley. Copyright © 2011 by Pearson Education, Inc. 406 Chapter 8 Sequential Data Files In the Everyday World Data Files You probably write information you need to remember on little scraps of paper all the time, and that’s good enough for a lot of things. But if you try to run a business that way, you’ll find yourself in trouble because you’ll have a difficult time locating the data you need to pay bills, employees, and suppliers. If you lose that little piece of envelope on which you wrote a reminder to pay the electric bill, you could find yourself in the dark...
Words: 12582 - Pages: 51
...CHAPTER I INTRODUCTION Background of the study An automated system nowadays is becoming prominent for a business that needs accurate, efficient and reliable results. Today, many businesses are engaging to automated systems, its manual setup can be applied automatically through computer. By using a computer, a business can perform its transaction in a less amount of time. Having a way to organize transactions by the use of automated system is an asset. Especially when you apply the automation to the most commonly used transaction, Inventory Management System. Inventory Management System is a list of equipment and materials that is needed for the everyday production of a business which is held available in stock. Updating the records of the stocks in a business plays an important part for the organization of business functions. Manual application of transaction can bring interruption, thus, the Automated Inventory System is considered as the best solution to this problem. A business owner can franchise more than one line of franchise, Palawan Polytechnic College Inc (PPCI) has a group of franchised business which named, MATS and MMFC. The business started since September 1968 and successfully opened 2 branches in 43 years. Since then, they record their daily sales and inventory manually by the use of record book and Microsoft excel. It starts from counting and checking their previous available stocks individually, computer for the total used stocks, record it in a record book...
Words: 14062 - Pages: 57
...JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY [pic] UNIT: PROJECT UNIT CODE: BIT 2303 COURSE: BSC INFORMATION TECHOLOGY NAME: OKOTH DORINE ATIENO JKUAT NO: BIT- 008- 0345/2006 PROJECT TITLE: KASARANI SPORTS CLUB DECLARATION I declare that this project is my own idea and my own work. It has not been presented by any other person before and has been developed through my own creation, time and effort. No one else is authorized to use it without my permission. Name: ………………………………… Signature: ……………………………… Date: ……………………………… ACKNOWLEDGEMENT I would like to express my special gratitude first and foremost to God Almighty for giving me his guidance, grace, wisdom, strength and help throughout the project. Next, I would also like to thank my parents and family for their financial and moral support. I would also like to thank my friends and colleagues especially Mary Mutuku and Frank Omondi for their support throughout the project. I would also like to express my sincere gratitude to the staff at Kasarani Sports Club without whom this project would not have been possible. DEDICATION I dedicate my project to my parents for their love and support, and to my brothers and sisters for the support TABLE OF CONTENTS ...
Words: 7663 - Pages: 31
...Programming Logic and Design, 6th Edition Chapter 6 Exercises 1. a. Design the logic for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry. Answer: A sample solution follows Flowchart: Pseudocode: start Declarations num index num SIZE = 10 num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0 getReady() while index < SIZE getNumbers() endwhile finishUp() stop getReady() index = 0 return getNumbers() output “Enter a number for position ”, index input numbers[index] index = index + 1 return finishUp() output “The numbers in reverse order are: ” while index > 0 index = index – 1 output numbers[index] endwhile return b. Modify the reverse-display program so that the user can enter up to 10 numbers until a sentinel value is entered. Answer: A sample solution follows Flowchart: Pseudocode: start Declarations num index num SIZE = 10 num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0 string CONTINUE = “Y” string moreNumbers = CONTINUE getReady() while index < SIZE AND moreNumbers equal to CONTINUE getNumbers() endwhile finishUp() stop getReady() index = 0 output “Do you want to enter a number? (Y/N)” input moreNumbers return getNumbers() output “Enter a number for position ”, index input numbers[index] index = index...
Words: 4366 - Pages: 18
...INTRODUCTION TO RTO MANAGEMENT In this growing competitive world it is becoming increasingly & absolutely necessary for any organization to streamline all its activities all the way stressing on quality perfection. Quality can be defined as fitness for use at an economical cost while satisfying customer requirements this can be achieved if the organization has the good quality system in which all the medical activities of the hospital are bought in line with operating procedure and guidance. So the RTO management is planned to automate the current manual system. The main aim of the project is to design innovative software, which deals with the RTO management system. The motto of the project is to simplify the job of the administrative people and to render a user-friendly package. The system provides information regarding the RTO application and its status. The tedious jobs such as verifying all the records of the applicant, confirming all the personal details are furnished, submission of qualification documents, driving license, registration details, etc., are done in the most convenient way to the administrator. Also security is being provided in the most proficient way. All the intermediate stages starting from receiving of the application form to revealing the applicant number along with the expiry date of the license are being dealt. Advantages ⇨ The main purpose of this software is to make RTO automated...
Words: 10261 - Pages: 42
...CHAPTER I THE PROBLEM AND ITS BACKGROUND 1.1 INTRODUCTION AND ITS BACKGROUND A pastor named Ferdie Sinense together with his wife Marisa Sinense who works as an auditor, established Rapa Generics Pharmacy on September 23, 2011. The main branch of this Pharmacy is located at Las Piňas-Zapote Road in Las Piňas City. Anthony Rudil, a licensed pharmacist and Jennifer Robela the assistant pharmacist are currently managing the business. In addition to that, the business opened its door to three more branches located in Pulang Lupa, Las Piňas and Marikina. The advent of new technology, most company nowadays is using computers in their transactions. Pharmacies in particular, are now making their systems computerized since that helps them minimize the time and efforts consumed by using manual system. Point-of-Sale Inventory System is one of the essential components of a successful business. It is a modern replacement for cash register in retail applications. It can help to record securely all the sales and customer’s orders and track products. A sale refers to the exchange of product or services for an amount of money or its equivalent while inventory, on the other hand, is the total amount of items and the act of counting them. A pharmacy owner must know the precise number of items in their storage areas in order to place orders and control losses up to date. Hence, computerizing both Sales and Inventory System will make an easier and faster transaction among the customers...
Words: 16309 - Pages: 66
...thoughts must have high language. —Aristophanes Welcome to Teach Yourself C in 24 Hours. In this first lesson you'll learn the following: What C is Why you need to learn C The ANSI standard Hardware and software required in order to run the C program What Is C? C is a programming language. The C language was first developed in 1972 by Dennis Ritchie at AT&T Bell Labs. Ritchie called his newly developed language C simply because there was a B programming language already. (As a matter of fact, the B language led to the development of C.) C is a high-level programming language. In fact, C is one of the most popular general-purpose programming languages. In the computer world, the further a programming language is from the computer architecture, the higher the language's level. You can imagine that the lowest-level languages are machine languages that computers understand directly. The high-level programming languages, on the other hand, are closer to our human languages. (See Figure 1.1.) Figure 1.1. The language spectrum. High-level programming languages, including C, have the following advantages: Readability: Programs are easy to read. Maintainability: Programs are easy to maintain. Portability: Programs are easy to port across different computer platforms. The C language's readability and maintainability benefit directly from its relative closeness to human languages, especially English. Each high-level language needs a compiler or an interpreter...
Words: 73255 - Pages: 294
...SOS TRANSMISSION Through Cellular phones to save Accident Victims -Boon for the cellular phone users * * Abstract: This paper describes an ORIGINAL IDEA to help cellular phone users caught in an accident. The idea has been developed keeping in mind the considerations of cost and compatibility with existing system. The Short Message Service or SMS as it is popularly referred to, is made use of for this purpose. The solution offered is the Force-Transducer method. The victim is assumed to be unconscious and the accident is detected automatically. Detailed simulation results at a scaled down level are provided for this solution. The threshold level is set based on data collected from the experiments. One major problem in such design is the technique to find the victim’s position. The Global Positioning System (GPS) is found to be costly. So, an unorthodox design using Radio Direction Finders (RDF) and beacon signals is described. The Goniometer or Crossed Loop Antenna is used for this purpose. This reduces cost effectively when compared with the GPS system. The paper proceeds to suggest an abstract view of the software robot required to perform the Save Our Souls (SOS) message routing task. It uses a special hierarchical message dispatch system...
Words: 3057 - Pages: 13
...C++ PROGRAMMING: FROM PROBLEM ANALYSIS TO PROGRAM DESIGN FIFTH EDITION D.S. MALIK Australia Brazil Japan Korea Mexico Singapore Spain United Kingdom United States C++ Programming: From Problem Analysis to Program Design, Fifth Edition D.S. Malik Executive Editor: Marie Lee Acquisitions Editor: Amy Jollymore Senior Product Manager: Alyssa Pratt Editorial Assistant: Zina Kresin Content Project Manager: Matthew Hutchinson Art Director: Faith Brosnan Print Buyer: Julio Esperas Cover Designer: Roycroft Design/ www.roycroftdesign.com Cover Photo: ª Guntmar Fritz/Masterfile Proofreader: Green Pen QA Indexer: Elizabeth Cunningham Compositor: Integra ª 2011 Course Technology, Cengage Learning ALL RIGHTS RESERVED. No part of this work covered by the copyright herein may be reproduced, transmitted, stored or used in any form or by any means graphic, electronic, or mechanical, including but not limited to photocopying, recording, scanning, digitizing, taping, Web distribution, information networks, or information storage and retrieval systems, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the publisher. For product information and technology assistance, contact us at Cengage Learning Customer & Sales Support, 1-800-354-9706 For permission to use material from this text or product, submit all requests online at www.cengage.com/permissions Further permissions questions can be...
Words: 11776 - Pages: 48
...Teach Yourself C++ in 21 Days, Second Edition Introduction Week 1 at a Glance: Day 1 Getting Started Day 2 The Parts of a C++ Program Day 3 Variables and Constants Day 4 Expressions and Statements Day 5 Functions Day 6 Basic Classes Day 7 More Program Flow Week 1 in Review Week 2 at a Glance: Day 8 Pointers Day 9 References Day 10 Advanced Functions Day 11 Arrays Day 12 Inheritance Day 13 Polymorphism Day 14 Special Classes and Functions Week 2 in Review Week 3 at a Glance: Day 15 Advanced Inheritance Day 16 Streams Day 17 The Preprocessor Day 18 Object-Oriented Analysis and Design Day 19 Templates Day 20 Exceptions and Error Handling Day 21 Whats Next Week 3 in Review Appendixes A Operator Precedence B C++ Keywords C Binary and Hexadecimal D Answers Index Teach Yourself C++ in 21 Days, Second Edition Dedication This book is dedicated to the living memory of David Levine. Acknowledgments A second edition is a second chance to acknowledge and to thank those folks without whose support and help this book literally would have been impossible. First among them are Stacey, Robin, and Rachel Liberty. I must also thank everyone associated with my books, both at Sams and at Wrox press, for being professionals of the highest quality. The editors at Sams did a fantastic job, and I must especially acknowledge and thank Fran Hatton, Mary Ann Abramson, Greg Guntle, and Chris Denny. I have taught an online course based on this book for a couple years, and many folks there...
Words: 4907 - Pages: 20
...Teach Yourself C++ in 21 Days, Second Edition Introduction Week 1 at a Glance: Day 1 Getting Started Day 2 The Parts of a C++ Program Day 3 Variables and Constants Day 4 Expressions and Statements Day 5 Functions Day 6 Basic Classes Day 7 More Program Flow Week 1 in Review Week 2 at a Glance: Day 8 Pointers Day 9 References Day 10 Advanced Functions Day 11 Arrays Day 12 Inheritance Day 13 Polymorphism Day 14 Special Classes and Functions Week 2 in Review Week 3 at a Glance: Day 15 Advanced Inheritance Day 16 Streams Day 17 The Preprocessor Day 18 Object-Oriented Analysis and Design Day 19 Templates Day 20 Exceptions and Error Handling Day 21 Whats Next Week 3 in Review Appendixes A Operator Precedence B C++ Keywords C Binary and Hexadecimal D Answers Index Teach Yourself C++ in 21 Days, Second Edition Dedication This book is dedicated to the living memory of David Levine. Acknowledgments A second edition is a second chance to acknowledge and to thank those folks without whose support and help this book literally would have been impossible. First among them are Stacey, Robin, and Rachel Liberty. I must also thank everyone associated with my books, both at Sams and at Wrox press, for being professionals of the highest quality. The editors at Sams did a fantastic job, and I must especially acknowledge and thank Fran Hatton, Mary Ann Abramson, Greg Guntle, and Chris Denny. I have taught an online course based on this book for a couple years, and many folks there...
Words: 4907 - Pages: 20
...SEVENTH EDITION PROBLEM SOLVING AND PROGRAM DESIGN in C This page intentionally left blank SEVENTH EDITION PROBLEM SOLVING AND PROGRAM DESIGN in C Jeri R. Hanly, University of Wyoming Elliot B. Koffman, Temple University Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Editorial Director, ECS: Marcia Horton Editor-in-Chief: Michael Hirsch Senior Project Manager: Carole Snyder Director of Marketing: Patrice Jones Marketing Manager: Yezan Alayan Senior Marketing Coordinator: Kathryn Ferranti Director of Production: Vince O’Brien Managing Editor: Jeff Holcomb Associate Managing Editor: Robert Engelhardt Production Manager: Pat Brown Creative Director: Jayne Conte Designer: Suzanne Behnke Media Editor: Daniel Sandin Media Project Manager: John Cassar Cover Image: (c) michael Holcomb/Shutterstock.com Full-Service Project Management: Mohinder Singh/ Aptara®, Inc. Composition: Aptara®, Inc. Printer/Binder: Edwards Brothers Cover Printer: Lehigh-Phoenix Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on appropriate page within text. Photo Credits: Page 4: Fig. 0.1: akg-images/Paul Almasy/Newscom. Page 11: Fig. 0.4: © 2008 IEEE/Journal of Microelectromechanical Systems (2006). Page 15:...
Words: 158087 - Pages: 633
...CHAPTER 1 1.0 INTRODUCTION The Consumer Council of Zimbabwe has its origins deeply rooted in the great and noble cause of protecting and empowering consumers by monitoring product quality and service to ensure total adherence to reasonably accepted standards. It all began in 1955 when the first positive steps were taken to institute the formation of the vigilance committee, aimed at meeting protective needs of the consumer and to produce better understanding between producers and consumers. It was in 1975 when this committee was merged to form the present day Consumer Council Zimbabwe. Over the years the organisation has expanded its membership base and restructured its policies to meet the needs of today's consumers. The Consumer Council of Zimbabwe (CCZ) is responsible for overlooking products and services in Zimbabwe. At the moment complains are handled manually and thus they are documented in the order that they are reported such that they are to be attended to in the same order. When a consumer (customer) has a complaint he or she wishes to report to the body there is currently two ways to do so. The first one and the most common is that the complainant phones the Consumer Council of Zimbabwe to report his or her problem. The recipient then listens to the complaint and documents it for action to be taken. The complaints are attended to at a first come first served basis. The other way or method is that of complaint and suggestion boxes which are mounted on the premises...
Words: 13685 - Pages: 55
...Software Requirements Specification (SRS) Template Items that are intended to stay in as part of your document are in bold; explanatory comments are in italic text. Plain text is used where you might insert wording about your project. The document in this file is an annotated outline for specifying software requirements, adapted from the IEEE Guide to Software Requirements Specifications (Std 830-1993). Tailor this to your needs, removing explanatory comments as you go along. Where you decide to omit a section, you might keep the header, but insert a comment saying why you omit the data. CS3911 (Team Number) (Team Name) Software Requirements Specification Document Version: (n) Date: (mm/dd/yyyy) Table of Contents 1. Introduction 5 1.1 Purpose 5 1.2 Scope 5 1.3 Definitions, Acronyms, and Abbreviations 5 1.4 References 5 1.5 Overview 5 2. The Overall Description 6 2.1 Product Perspective 6 2.1.1 System Interfaces 6 2.1.2 Interfaces 6 2.1.3 Hardware Interfaces 6 2.1.4 Software Interfaces 7 2.1.5 Communications Interfaces 7 2.1.6 Memory Constraints 7 2.1.7 Operations 7 2.1.8 Site Adaptation Requirements 7 2.2 Product Functions 8 2.3 User Characteristics 8 2.4 Constraints 8 2.5 Assumptions and Dependencies 9 2.6 Apportioning of Requirements 9 3. Specific Requirements...
Words: 6285 - Pages: 26
...Microsoft-Access Tutorial Soren Lauesen E-mail: slauesen@itu.dk Version 2.4b: July 2011 Contents 1. The hotel system................................................... 4 2. Creating a database ............................................. 6 2.1 Create a database in Access ............................. 6 2.2 Create more tables ......................................... 10 2.3 Create relationships ....................................... 12 2.4 Look-up fields, enumeration type .................. 14 2.5 Dealing with trees and networks.................... 16 3. Access-based user interfaces ............................. 18 3.1 Forms and simple controls............................. 18 3.1.1 Text box, label and command button...... 18 3.1.2 Adjusting the controls............................. 20 3.1.3 Cleaning up the form .............................. 20 3.1.4 Shortcut keys for the user ....................... 22 3.1.5 Lines, checkbox, calendar....................... 22 3.1.6 Combo box - enumeration type .............. 24 3.1.7 Combo box - table look up ..................... 26 3.1.8 Control properties - text box................... 28 3.2 Subforms........................................................ 30 3.2.1 Subform in Datasheet view..................... 31 3.2.2 Adjust the subform ................................. 34 3.2.3 Mockup subform..................................... 36 3.2.4 Subform in Form view............................ 36 3.2.5 Summary of subforms...................
Words: 54671 - Pages: 219