UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

Reading/writing text in C (by keyboard/screen)

Previous activities

1.  The version control program Subversion

Resources

  • Shared folder to be used with Subversion here

Work Plan

  1. Try to crea an svn account in a free Internet server. A viable option would be riouxsvn.com, but there other free hosting services.

    Another option is to use redmine-IT with your IT account. Click on proyectos. Then, click on nuevo proyecto ("give a name"). Wait 20 minutes until the repository is created. Then, add your colleges to the repository. After that, select configuracion and repositorios. You will see the repository url you can use to check out your repository (e. g. https://svn.lab.it.uc3m.es/Redmine/prueba2013asng_XXXX)

  2. Create an AUTHORS file with your information. Upload the AUTHORS file to the svn server.

  3. Check that you may access the account with your two users. (second user: try to modify the AUTHORS file and add your information).

  4. Show in the screen the history of the file you just uploaded.

How long did this activity take you? mins.

2.  Calculate character frequency with getline

Resources

  • Subfolder Char_frequency in the shared folder.

    Available here

Work Plan

Using getline, modify the program called characters_frequencies.c, stored in folder Char_frequency, so that it allows the user to enter a text line. After introduce it, your program have to count the number of times every character appears on the text line. Character 'A' is considered the same as 'a' when counting. Note: It will be useful if you normalize the characters to lower case before counting, with the function int tolower(int c) from the library ctype.h.

When finished, if you are using svn, upload the file to the repository with svn commit.

How long did this activity take you? mins.