Şimdi Ara

Bu soruları nasıl çözerim

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
1
Cevap
0
Favori
375
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
Öne Çıkar
0 oy
Sayfa: 1
Giriş
Mesaj
  • Ne kadarını biliyorsanız artık yapabildiğiniz kadar yardımınızı bekliyorum.

    1)Write a C++ program that checks if an entered number is prime or not.

    2)Write a C++ program that prints the prime numbers between 2 and 10000.


    3) Suppose that you are asked to develop a cell phone invoice calculator program.  There are two types of tariffs for users:  (1) the users that do not use any package are charged 0.15 TL/6 seconds  (2) the 'eco' package users will pay 19 TL fixed fee for first 50 minutes and 0.2 TL/6 seconds for extra talking time that exceeds 50 minutes  The program will get the total number of talking time in terms of minutes (double type) and then calculate and print the total amount that the user will pay for each tariff type.  Write the C++ source code of the above program.


    4)Write for and do-while structures to compute the following products.
    1 x (1 / 3) x (1 / 5) x ….x (1 / (n/2))
    where n is an integer entered by the user.

    5)Write a C++ program that gets a positive integer from the user. The number will be required until a positive number is entered. Find and print the factors of the entered number.

    6)The population of a town A is less than the population of town B.  However, the population of town A is growing faster than the population of town B.  Write a program that prompts the user to enter the population and growth rate of each town. The program outputs after how many years the population of town A will be greater than or equal to the population of town B and the populations of both the towns at that time.

    7) Write a program that gets an integer, say n, by the user.  The program than will get positive elements by the user until 0 is entered.  When 0 is entered, the program will display the position of the last occurance of n.

    8)Write a program that gets a number from the user and finds the sum of the prime numbers in its digits.



    _____________________________
    Im all in
    is not the game you play
    Go so hard everyday




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