Exercises Homework 5. Algorithmisation Practice Ján Dugáček October 5, 2018 Ján Dugáček 5. Algorithmisation Practice Exercises Homework Table of Contents 1 Exercises 2 Homework Ján Dugáček 5. Algorithmisation Practice Exercises Homework Exercises 1 Write a program that reads two files containing vectors and writes their element-by-element sum 2 Write a program that reads a file containing a matrix and outputs a transposed matrix 3 Write a program that will read two files containing matrices and write the matrix product in a third file 4 Write a program that reads a file containing values of a function and outputs its local minima and maxima Ján Dugáček 5. Algorithmisation Practice Exercises Homework Advanced Exercises 1 Write a program that reads a matrix from a file and computes its determinant 2 Write a program that checks if a matrix is invertible 3 Write a program that reads a file containing a table, removes elements that contains letters and replaces them with interpolated values Ján Dugáček 5. Algorithmisation Practice Exercises Homework Exercises #2 1 Write a program that reads a file defining a function and outputs the function smoothed 2 Write a program that outputs steps of Conway’s Game of Life, eath input from user causes it to make a step 3 Write a program that prints a cross (using spaces and some letter) with edge size set by user input Ján Dugáček 5. Algorithmisation Practice Exercises Homework Homework Write a program that reads two files containing functions defined as dependences of y on x and outputs their intersections You have two weeks to do it Ján Dugáček 5. Algorithmisation Practice