CPE102 – LAB SORULARI (Solution)

$ 20.99
Category:

Description

1- 10 elemanlı tamsayı dizisine klavyeden değerler girilerek bir fonksiyona gönderilecek. Dizide yer alan en büyük ilk iki sayıyı bularak ekrana yazdıran fonksiyonu yazınız.
The 10-element integer array will be sent to a function by entering values from the keyboard. Write a function that finds the “biggest first two numbers” in the array and prints it to the screen.

2- Fonksiyona gönderilen string içerisindeki karakterleri alfabetik sıraya sokan programı yazınız.
Write a program that puts the characters in the string sent to the function in alphabetical order.
Örnek giriş : “Ahmet merhaba”
Sonu : “Aaabe ehhmmrt”
3- Kullanıcının gönderdiği kelime içerisinde kaç tane sesli harf olduğunu bulan fonksiyonu yazınız.
Write the function that finds how many vowels are in the word sent by the user.

4- Küçükten büyüğe doğru sıralı bir diziye, dizinin sırasını bozmayacak şekilde, verilen bir elemanı ekleyen fonksiyonu yazınız.
Write a function that adds a given element to an array in ascending order without changing the order of the array.
Girilen dizi : 1 3 5 7 9
Eklenecek sayi : 4
Dizinin son hali : 1 3 4 5 7 9

Reviews

There are no reviews yet.

Be the first to review “CPE102 – LAB SORULARI (Solution)”

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