


Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Prepara tus exámenes
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Prepara tus exámenes con los documentos que comparten otros estudiantes como tú en Docsity
Encuentra los documentos específicos para los exámenes de tu universidad
Estudia con lecciones y exámenes resueltos basados en los programas académicos de las mejores universidades
Responde a preguntas de exámenes reales y pon a prueba tu preparación
Consigue puntos base para descargar
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Comunidad
Pide ayuda a la comunidad y resuelve tus dudas de estudio
Ebooks gratuitos
Descarga nuestras guías gratuitas sobre técnicas de estudio, métodos para controlar la ansiedad y consejos para la tesis preparadas por los tutores de Docsity
PROGRAMACIÓN DE ALGORITMOS EN EL LENGUAJE DE JAVA
Tipo: Ejercicios
1 / 4
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!



Universidad Autónoma de Colombia Algorithms design Course Project – 2018- DESCRIPTION Juan wants to modify a set of text files, but he thinks file explorer’s tools are too simple. So, he asks you to help him by developing a file management software. This software must read a set of commands from a text file and performs changes in files store in the S.O. file system.
The commands required by Juan are:
It assigns the file with name “filename” to a variable identifier. The variable identifier here defined can be used by other commands to read or modify the file.
Creates the file with name “filename” in the file system and assigns a variable identifier to it.
Replaces content of file represented by variable var_id1 with content of file represented by var_id2.
Joins content of file represented by var_id2 with content of file var_id3, and result is saved in file with identifier var_id1.
Gets content of file with identifier var_id2, sort it in ascending order (lexicographically), and puts result in file identified by var_id1.
Gets content of file represented by var_id2, remove duplicates from it, and puts result in file represented by var_id1.
The following list of commands gets file “test.txt” content, sort it, remove doubles, and puts result in a file “ans.txt”.