
1
DEPARTMENT OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGIES
PROGRAMMING I - Course 2019/2020
Exercises 4
1. Design and implement a program in C language, which exclusively using
subprograms, ask integers from the keyboard and are storing them in an array
of 10 elements, then the screen showing the contents of the array created.
2. Design and implement a program in C language, using only subprograms, that
requested by keyboard animal names and are filling an array of 7 elements then
displaying them on screen properly.
3. Design and implement a program in C language, which exclusively using
subprograms, calculate the sum of the elements of an array of real numbers
provided by the user, considering maximum 30 elements.
4. Design and implement a program in C language to store in memory the hours
of study a student devoted to a particular subject for a week. Request data
appropriately to the user, calculate and display the average daily hours spent on
that subject. Also, indicate the day that has been more applied (maximum hours
of study) and less (fewer hours studying).
5. Design and implement a program in C language to store temperatures (Celsius)
registered in a city for a day, hour by hour (0-23). Enter temperatures from data
provided by the user, orderly display the temperatures, and calculate and display
on screen the maximum, minimum and mean temperatures.
6. Design and implement a program in C language, based on the structure created
in the previous exercise, create a system for storing temperatures (Celsius)
registered in a city for a week (each hour, each day) Enter the temperatures
requesting data appropriately to the user. Calculates and displays to the screen
the daily average temperatures, hourly average temperatures and weekly average
temperature.
7. Design and implement a program in C language where the user inputs the
weekly budget (in euros) and daily expenses in different concepts (eg:
transportation, food and leisure) for a week. Calculates and displays on screen
the total expenditure of the week, the weekly average daily spending and
spending on the various concepts and % of the weekly budget spent each day.