CPE102 – 7. HAFTA SORULAR (Solution)

$ 20.99
Category:

Description

1- Klavyeden girilen iki sayının toplamını hesaplayıp ekrana yazdıran programı C dili ile yazınız.
Write the program with the C language, which computes the sum of the two numbers entered on the keyboard.
2- Klavyeden A ve B tamsayı değişkenlerinde tutulan iki sayı giriliyor. A ve B değişkenlerinin değerlerini kendi arasında yer değiştirerek ekrana yazdıran programı C dili ile yazınız.
Two numbers are entered from the keyboard with integer variables A and B. Write the program with the C language, which changes the values of the A and B variables between them.
3- Klavyeden bir öğrenci için öğrenci no, vize ve final girildiğinde, öğrencinin vize notunun %40’ı ve final notunun %60’ı alarak geçme notunu hesaplayan ve öğrencinin numarası ile birlikte ekrana sonucu yazdıran programı C dili ile yazınız.
Student ID, visa and final information are entered from the keyboard for a student. Write the program in C language, which calculates the passing grade by taking 40% of the student’s midterm and 60% of the final grade.
4- Klavyeden bir dairenin yarıçap bilgisi ve işlem türü girildiğinde işlem türü 1 ise dairenin çevresini hesaplanıp yazdıran 2 girilirse alanının hesaplayıp yazdıran, bunların dışındaki girişler için “Yanlış giriş” mesajı vererek sonlanan programı C dili ile yazınız.
The radius information and the operation type of a circle are entered from the keyboard. If the operation type is 1, the perimeter of the circle is calculated and printed, and if the operation type is 2, the area is calculated and printed.
“Wrong Input” will be written on the screen for input values other than these. Write the C code according to these requests.
5- Klavyeden girilen bir para miktarını en az banknot kullanarak oluşturmak istediğimizde içinde kaç tane 100, 50, 20 ve 10’luk olduğunu bulan programı C dili ile yazınız. Not: Klavyeden girilen para miktarı 10’un katları olmalıdır.
The amount of money entered from the keyboard is desired to be created using the minimum number of banknotes. For this purpose, the number of each banknote (100, 50, 20 and 10) must be determined for the amount entered. Note: The amount of money entered on the keyboard must be multiples of 10.

Reviews

There are no reviews yet.

Be the first to review “CPE102 – 7. HAFTA SORULAR (Solution)”

Your email address will not be published. Required fields are marked *