• Keine Ergebnisse gefunden

In the future the exercises must be done at home and will be discussed during the exercise class

N/A
N/A
Protected

Academic year: 2021

Aktie "In the future the exercises must be done at home and will be discussed during the exercise class"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Dirk Praetorius, Sommersemester 2018

Gregor Gantner 06.03.2018

Ubungen zur Vorlesung¨

Einf¨uhrung in das Programmieren f¨ur TM Serie 1

This exercise sheet will be discussed during the first exercise class.

Aufgabe 1.1. Create a subdirectoryserie01in your home directory at thelva.student.tuwien.ac.at server. Copy the source codes of the following exercises into this directory. In the future the exercises must be done at home and will be discussed during the exercise class. You have to ensure that you have copied the source code of your solved exercises to the server before the exercise class starts. If necessary, ask your tutor how to copy files from your desktop PC or laptop to the server. Have a look at the usage of thescpcommand.

Aufgabe 1.2. Write a program that reads in the lengtha∈Rand the widthb∈Rof a rectangle. The program should compute the area of the rectangle. The result should be printed on the monitor. Save your source code asrectangle.cinto the directoryserie01.

Aufgabe 1.3. You win x ∈R(x > 0) e in a game. You want to share this money with your n∈ N friends in a fair way. How much money y ∈ R do you and each of your friends get? Write a program that reads inx∈R, n∈Nand prints out y∈R. Save your source code as prize.cinto the directory serie01.

Aufgabe 1.4. What is a variable? What is a data-type? What is the difference between initialization and declaration of a variable? Why do we have different data-types for the representation of numbers?

Discuss in the group.

Referenzen

ÄHNLICHE DOKUMENTE

Check via assert if b ≤ c Write a main program which reads in the bounds and calls the function armstrong.. How did you test the correctness of

BoundaryConditions( const Grid& grid, const std::string filename) The constructor takes a constant reference to the grid and the name of a file which provides information about

In this exercise we want to show that the model construction for FO 2 -formulae from the lecture is optimal in the following sense: in general it does not suffice to take only

The crisis in eastern Ukraine has not changed the Czech Republic, Hungary and Slovakia’s perception of their relations with Russia, which continues to be defined primarily

Analysing the findings from field research in two sites in Eastern Nepal, Sunsari and Sankhuwasabha, 2 this report highlights boys’ and young men’s patterns of behaviour,

Compared to older American jets, to say nothing of the latest Russian and Chinese fighter designs, the F-35 is looking worse and worse.. "Can't turn, can't climb, can't run,"

a certain graph, is shown, and he wants to understand what it means — this corre- sponds to reception, though it involves the understanding of a non-linguistic sign;

 As action of the EMUG 2018, ENEA contacted all the EMUG Partner involved in Fusion related activity to collect the information about physical models necessary to be implemented