Below questions are translated from the book "Programlamaya ve veri Yapýlarýna Giriþ (C, C++ ve JAVA ile)" written by Þadi Evren ÞEKER. You can access further information by clicking here.
Aþaðýdaki sorular "Programlamaya ve veri Yapýlarýna Giriþ (C, C++ ve JAVA ile)" kitabýndan alýntýdýr. Kitap hakkýnda daha fazla bilgi için buraya týklayabilirsiniz..

1. Read three numbers from the user and chech whether these three numbers can be the edges of a perpendicular triangle ( You can use pisagor equation for this question, for example a2+b2=c2 )

2. Read a grade of student which is between 0 and 100 and convert this number to letter. You can use the below table for conversion:
AA 90 100
BA 80 90
BB 70 80
BC 60 70
CC 50 60
DC 40 50
DD 30 40
F 0 30


3. A company request you to code a program to calculate the overtime salary of a worker. Values are calculated in the following manner: until 10 hours of overtime is 1TL per hour. Overtime between 10 and 20 is 2TL per hour. Overtime between 20-40 is 4TL per hour. Finally overtime of 40 hours and over is 5TL per hour. Sample runs are given below:
Run1:
Enter overtime:5
Overtime Payment: 5 ytl
----
Run 2:
Enter overtime:15
Overtime Payment: 20 ytl
----
Run 3:
Enter overtime:50
Overtime Payment: 130 ytl