Şimdi Ara

C PROGRAMCILARI HELP ME!!!

Bu Konudaki Kullanıcılar:
1 Misafir - 1 Masaüstü
5 sn
1
Cevap
0
Favori
150
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • arkadaslar c ile ilgili 3 tane sorum var ve bu programları yazmakta zorlanıyorum..lutfen ilgileniyorsanız yardımcı olun :(
    1. Write a program that initializes the array numbers of 20 integers between 0 and 10 ( 0 and 10 inclusive) using rand( ) function, then calls the functions findMax and findAv to find and display the maximum and the average values of the array elements.

    Note: Maximum and average values should be displayed in the main function!



    2. Write a program that initializes the array scores of 40 integers between 1 and 6, inclusive, using rand( ) function. There should be a function call to count( ) that accepts the array scores, its arraysize, and an integer search key value as its parameters, and returns the number of occurrences of the search key in the array. Function call statement should be as follows:



    result = count( scores, size, key) ; where result is an integer variable in main ( ),

    size is the array size of the array scores,

    key is the value to count in the array.



    3. Write a program that initializes the array scores of 25 integers between 0 and 10, using rand( ) function, then calls the integer function findmode to find and display the mode value of the array elements.



    Hint: Mode is the value that occurs most frequently among all array elements. You should find the frequencies of each element in scores and place them in a frequency array before determining the mode value.







  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.