Algoritma – LAB 5 (Solution)

$ 20.99
Category:

Description

1. Bilgisayara 0-100 arasında rastgele bir sayı tutturarak kullanıcı tarafından bu sayının klavyeden girilen değerlerle eşleştirilmesine, sayı bulunduğunda “tebrikler sayıyı ….. denemede buldunuz”, sayı bulunamadığında “….. . denemede sayıyı bulamadınız, tekrar deneyiniz” diye ekranda mesaj gösteren, 10 denemede sayı bulunamadığında “Üzgünüm, 10 denemede sayıyı bulamadınız” mesajını ekranda göstererek çıkış yapan programın algoritma ve akış diyagramını hazırlayınız. Not: Bilgisayara 0-100 arasında rastgele tutturacağımız sayı=x. Kullanıcının deneme sayısı= ds. Kullanıcının girdiği sayı= a olsun.
Computer holds a random number between 0-100. Match this number with the input from the keyboard which is user entered. If number is matched, show message on the screen as “Congratulations, you find in the trial of …”. If number is not matched, show message on the screen as “You can not find the number of … attempts, try again”. If number is not find with 10 attempts show message on the screen as “Sorry, You can not find the number of 10 attempts” and exit. Prepare the algorithm and flow chart of the program. Note: Random number produced with computer between 0-100 is x. The number of attempts of the user is ds. Number entered from user is a.
2. Klavyeden -1 girilene kadar okunan sayılardan 5’e, 2’ye ve hem 5 hem de 2’ye bölünenlerinin sayısını ayrı ayrı bulan algoritmanın sözde kodu, akış diyagramı ve analizini hazırlayın.
Prepare the analysis by drawing a flowchart of the algorithm that finds the count of numbers divided by 5, 2 and both 5 and 2 unless -1 is entered from the keyboard.

3. Klavyeden art arda girilen iki sayı birbirine eşit oluncaya kadar girilen sayıların ortalamasını alan algoritmanın sözde kodu, akış diyagramı ve analizini hazırlayın.
Prepare the analysis by drawing the flow diagram of the algorithm that takes the averages of the entered numbers until the two consecutive numbers from the keyboard are equal.

Reviews

There are no reviews yet.

Be the first to review “Algoritma – LAB 5 (Solution)”

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