Start time:
Mi 31 Jan 2018 09:50:53
End time:
So 06 Mai 2018 09:45:53

Assignments: 8

Task 01 - Hello World! (Slides 14-26)
Create and launch the Hello World program.
Task 02 - Basic I/O (Slides 27-46)
Create a C++ program that ... Prints the following line: Insert your age: Reads an int from std::cin and stores it in a variable named age Prints the following line: Insert your...
Task 0301 - Command line arguments (Slides 53-65)
Implement a program which expects an integer as command line argument, representing a temperature value in degree Celsius (° C), and which converts the value into degrees Fahrenheit (° F). The...
Task 0302 - Command line arguments (Slides 53-65)
Create a program with an integer command line argument n , which reads n floating point numbers from std::cin . The program should compute and print the sum of the numbers read. Hint: You...
Task 0401 - Functions (Slides 66-78)
Create a program that prints the value of π. Define π as constexpr using the formula π = 4arctan(1) .
Task 0402 - Functions (Slides 66-78)
Create a function that returns the value of f(x) = sin(x) /x. The value for x = 0 is 1.
Task 0403 - Functions (Slides 66-78)
Implement the bisection method to find one n for which function f(x) is zero. The idea is the following:Given a continuous function on an interval [a,b] . If the sign of f(a) is different...
Task 0404 - Functions (Slides 66-78)
Generalize the previous algorithm to find multiple x values for which a function f(x) is zero. In order to do so, divide the interval into n pieces (e.g., n=10 ) and call your previously...