Pascal Movie Database Management
This document details several procedures written in Pascal for managing a movie database. The database is stored in a file of records, where each record represents a movie.
Data Structure
The code defines a pelicula (movie) record with the following fields:
codigo: integer (Movie ID)genero: string (Genre)nombre: string (Title)duracion: integer (Duration)director: string (Director)copias: integer (Number of Copies)precio: real (Price)
A constant valoralto is defined as 9999, used as a sentinel value.
And the file is defined as:
maestro= file of pelicula ;
Procedures
leerp(var p: pelicula)
Reads movie data from the input (keyboard) and stores it in the pelicula record p. It reads the codigo first. If it's not equal to...