Презентация Programming Logic and Design. Chapter 7. File Handling and Applications онлайн
На нашем сайте вы можете скачать и просмотреть онлайн доклад-презентацию на тему Programming Logic and Design. Chapter 7. File Handling and Applications абсолютно бесплатно. Урок-презентация на эту тему содержит всего 35 слайдов. Все материалы созданы в программе PowerPoint и имеют формат ppt или же pptx. Материалы и темы для презентаций взяты из открытых источников и загружены их авторами, за качество и достоверность информации в них администрация сайта не отвечает, все права принадлежат их создателям. Если вы нашли то, что искали, отблагодарите авторов - поделитесь ссылкой в социальных сетях, а наш сайт добавьте в закладки.
Презентации » Устройства и комплектующие » Programming Logic and Design. Chapter 7. File Handling and Applications
Оцените!
Оцените презентацию от 1 до 5 баллов!
- Тип файла:ppt / pptx (powerpoint)
- Всего слайдов:35 слайдов
- Для класса:1,2,3,4,5,6,7,8,9,10,11
- Размер файла:865.89 kB
- Просмотров:94
- Скачиваний:0
- Автор:неизвестен
Слайды и текст к этой презентации:
№3 слайд
![Understanding Computer Files](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img2.jpg)
Содержание слайда: Understanding Computer Files
Computer file
A collection of data stored on permanent storage devices such as DVDs, USB drives, and reels of magnetic tape
Text files (numbers, names, salaries) that can be read by a text editor
Binary files (images and music)
File size measured in bytes
Byte (one character), kilobyte (thousands of bytes), megabyte (millions of bytes), gigabyte (billions of bytes), terabyte (trillions of bytes)
№6 слайд
![Performing File Operations](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img5.jpg)
Содержание слайда: Performing File Operations
Use data files in your programs
Declaring a file
InputFile employeeData
OutputFile updatedData
Opening a file
open employeeData "EmployeeData.dat"
Reading data from a file
input name from employeeData
input address from employeeData
input payRate from employeeData
№11 слайд
![A Program that Performs File](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img10.jpg)
Содержание слайда: A Program that Performs File Operations
Backup file
A copy that is kept in case values need to be restored to their original state
Called a parent file
A newly revised copy is a child file
Sorting
The process of placing records in order by the value in a specific field or fields
№12 слайд
![Understanding Sequential](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img11.jpg)
Содержание слайда: Understanding Sequential Files and Control Break Logic
Sequential file
Records are stored one after another in some order
Understanding control break logic
A control break is a temporary detour in a program
A control break program uses a change in a value to initiate special actions or processing
A control break report groups similar data together
Input records must be in sequential order
№14 слайд
![Understanding Sequential](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img13.jpg)
Содержание слайда: Understanding Sequential Files and Control Break Logic (continued)
Examples of control break reports
All employees listed in order by department number, with a new page started for each department
All books for sale in a bookstore listed in order by category (such as reference or self-help), with a count following each category of book
All items sold in order by date of sale, with a different ink color for each new month
№19 слайд
![Merging Sequential Files](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img18.jpg)
Содержание слайда: Merging Sequential Files
Merging files
Combining two or more files while maintaining the sequential order
Examples
A file of current employees in ID number order, and a file of newly hired employees also in ID number order
A file of parts manufactured in the Northside factory in part-number order, and a file of parts manufactured in the Southside factory also in part-number order
№22 слайд
![Mainline logic similar to](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img21.jpg)
Содержание слайда: Mainline logic similar to other file-processing programs, except for handling two files
Mainline logic similar to other file-processing programs, except for handling two files
With two input files, must determine when both files are at eof
Define a flag variable to indicate that both files have reached eof
Must define two input files
Read one record from each input file
№26 слайд
![Master and Transaction File](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img25.jpg)
Содержание слайда: Master and Transaction File Processing
Some related files have a master-transaction relationship
Master file
Holds relatively permanent data
Transaction file
Contains temporary data to be used to update the master file
Update the master file
Changes to values in its fields based on transactions
№27 слайд
![Master and Transaction File](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img26.jpg)
Содержание слайда: Master and Transaction File Processing (continued)
Examples
A library maintains a master file of all patrons and a transaction file with information about each book or other items checked out
A college maintains a master file of all students and a transaction file for each course registration
A telephone company maintains a master file of every telephone line (number) and a transaction file with information about every call
№32 слайд
![Random Access Files Batch](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img31.jpg)
Содержание слайда: Random Access Files
Batch processing
Involves performing the same tasks with many records, one after the other
Uses sequential files
Real-time applications
Require that a record be accessed immediately while a client is waiting
Interactive program
A program in which the user makes direct requests
№34 слайд
![Summary Computer file A](/documents_6/fcfd1fb18aa608e44881ddab78d9de89/img33.jpg)
Содержание слайда: Summary
Computer file
A collection of data stored on a nonvolatile device in a computer system
Data items are stored in a hierarchy
Using a data file
Declare, open, read, write, close
Sequential file: records stored in some order
Merging files combines two or more files
Maintains the same sequential order
Скачать все slide презентации Programming Logic and Design. Chapter 7. File Handling and Applications одним архивом:
Похожие презентации
-
Programming logic and design seventh edition. Chapter 5. Looping
-
Programming Logic and Design Seventh Edition. Chapter 4. Making Decisions
-
Programming Logic and Design Seventh Edition. Chapter 1. An Overview of Computers and Programming
-
Programming Logic and Design Seventh Edition
-
Prolog. A general-purpose logic programming language associated with artificial intelligence and computational linguistics
-
Sport Ambiance v2 Website and application redesign
-
File systems and directories. (Chapter 11)
-
Microsoft official course. Creating methods, handling exceptions, and monitoring applications. (Module 2)
-
Mathematical functions, characters, and strings. Introduction to Java Programming
-
Internet and Java Foundations, Programming and Practice