Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad


ALGORITMOS Y PROGRAMACIÓN JAVA, Ejercicios de Algoritmos y Programación

PROGRAMACIÓN DE ALGORITMOS EN EL LENGUAJE DE JAVA

Tipo: Ejercicios

2019/2020

Subido el 16/03/2020

jereelyf-cardona
jereelyf-cardona 🇨🇴

1 documento

1 / 4

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
Universidad Autónoma de Colombia
Algorithms design
Course Project – 2018-2
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.
Juan quiere modificar un conjunto de archivos de texto, pero cree que las
herramientas del explorador de archivos son demasiado simples. Entonces, te
pide que lo ayudes desarrollando un software de administración de archivos. Este
software debe leer un conjunto de comandos de un archivo de texto y realizar
cambios en el almacén de archivos en el S.O. sistema de archivos.
The commands required by Juan are:
Los comandos requeridos por Juan son:
assign “filename” to var_identifier
asignar "nombre de archivo" a var_identifier
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.
Asigna el archivo con el nombre "nombre de archivo" a un identificador de
variable. El identificador de variable aquí definido puede ser utilizado por
otros comandos para leer o modificar el archivo.
create “filename” as var_identifier
crear "nombre de archivo" como var_identifier
Creates the file with name “filename” in the file system and assigns a variable identifier to
it.
Crea el archivo con el nombre "nombre de archivo" en el sistema de
archivos y le asigna un identificador de variable.
pf3
pf4

Vista previa parcial del texto

¡Descarga ALGORITMOS Y PROGRAMACIÓN JAVA y más Ejercicios en PDF de Algoritmos y Programación solo en Docsity!

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.

Juan quiere modificar un conjunto de archivos de texto, pero cree que las

herramientas del explorador de archivos son demasiado simples. Entonces, te

pide que lo ayudes desarrollando un software de administración de archivos. Este

software debe leer un conjunto de comandos de un archivo de texto y realizar

cambios en el almacén de archivos en el S.O. sistema de archivos.

The commands required by Juan are:

Los comandos requeridos por Juan son:

 assign “filename” to var_identifier

 asignar "nombre de archivo" a var_identifier

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.

Asigna el archivo con el nombre "nombre de archivo" a un identificador de

variable. El identificador de variable aquí definido puede ser utilizado por

otros comandos para leer o modificar el archivo.

 create “filename” as var_identifier

 crear "nombre de archivo" como var_identifier

Creates the file with name “filename” in the file system and assigns a variable identifier to it.

Crea el archivo con el nombre "nombre de archivo" en el sistema de

archivos y le asigna un identificador de variable.

 var_id1 = var_id

 var_id1 = var_id

Replaces content of file represented by variable var_id1 with content of file represented by var_id2.

Reemplaza el contenido del archivo representado por la variable var_id

con el contenido del archivo representado por var_id2.

 var_id1 = var_id2 + var_id

 var_id1 = var_id2 + var_id

Joins content of file represented by var_id2 with content of file var_id3, and result is saved in file with identifier var_id1.

Une el contenido del archivo representado por var_id2 con el contenido del

archivo var_id3, y el resultado se guarda en el archivo con el identificador

var_id1.

 var_id1 = sort var_id2asc

 var_id1 = sort var_id2asc

Gets content of file with identifier var_id2, sort it in ascending order (lexicographically), and puts result in file identified by var_id1.

Obtiene el contenido del archivo con el identificador var_id2, lo clasifica en

orden ascendente (lexicográficamente) y coloca el resultado en el archivo

identificado por var_id1.

 var_id1 = rem_doubles var_id

 var_id1 = rem_doubles var_id

Gets content of file represented by var_id2, remove duplicates from it, and puts result in file represented by var_id1.

Obtiene el contenido del archivo representado por var_id2, elimina

duplicados de él y coloca el resultado en el archivo representado por

var_id1.

EXAMPLE

The following list of commands gets file “test.txt” content, sort it, remove doubles, and puts result in a file “ans.txt”.

  • El software debe ser presentado por los autores en una sesión del curso.
  • El código debe ser original.
  • Todo el código fuente debe cargarse en GitHub al menos dos semanas antes de la presentación
  • Todo el código fuente debe estar escrito en inglés.