NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

C-C++ CALISMA SORULARI

1. Girilen ikilik sayıyı onluk sayıya dönusturen algoritmanın akıs semasını ve c++ kodunu yazın.
2. Asagıdakı programın cıktısını yazın.

int i, j ;
for (i = 1 ; i < 5 ; i++) {
for (j = 0 ; j <= 5 ; j++) {
if ( (i + j) % 2 == 0 ) {
cout << “X”;
} else {
cout << “O”;
}
}
cout << endl;
}

3. Asagidaki for dongusunu "do-while" dongusu kullanarak yazin.
for(i=0;i<6;i++) cout << “i=”<<i;
4.Asagıdaki program parcasının sonucu nedir
B= 3;
A=++B;
İf (A==B) cout<<”1”,
Else cout <<”0”;

5. Fibonacci sayıları kendinden 2 onceki sayıların toplanmsı ile bulunur. Ornek:
1 1 2 3 5 8 13….
30a kadar olan fibonacci sayılarını bulan algoritma sahte kodunu (pseudo code) ve c++ kodunu yazın.
6. Rakamları yazı ile yazan programın akıs semasını ve c++ kodunu yazın. (ornek 110 - yuz on)
7. 38e kadar olan tamkare sayıları bulan algoritmanın akıs semasını ve c++ kodunu yazın.
8. Kelvin(k), fahrenhayt(f) ve celcius(c) sicaklik donusumlerini bulun. Donusum formullerı asagıdadır:
f=(180*c+3200)/100;
c=100*(f-32)/180;
k=c+273;
c=k-273;
k=100*(f-32)/180+273/180;
f=18*(k-273)/10+32/10;

9. İki sayının OBEB bulan algoritmanın akıs semasını ve c++ kodunu yazın.
10. Girilen saatin akrep ve yelkovan degerine gore akrep ve yelkovan arasındaki acıyı bulan algoritmanın akıs semasını cizin.
11. Ekrandan girilen ogrenci not degerine gore harf notu karsiligini bulan algoritma sahte kodu (pseudo kod) ve c++ kodunu yazın. (80-100 AA, 70-80 BA,60-70 BB,50-60 CC,40-50 DD)
12. Ekrandan girilen bir sayının asal olup olmadıgını bulan algoritmanın akıs seması ve c++ kodunu yazın.
13.Dikucgenın girilen dikkenarlarına gore hipotenusunu bulan algorıtma akıs semasını cizip, c++ kodunu yazın.
14. Yildiz ve bosluk kullanarak bir eskenar ucgeni asagidaki sekilde ekrana cikaran algoritmanın akıs semasını ve c++ kodunu yazın..
*
* * *
* * * * *
* * * * * * *
15. Ekrandn girilen n sayisina gore asagidaki toplamayi yapan algoritmanın akıs semasını ve c++ kodunu yazın:
Toplam = x + x^2/2! + x^3/3! + x^4/4!+ ……..x^n/n!
(^ isareti us alma icin kullanilmistir. )
16. Asagıdaki progerm parcasının sonucu nedir?
Int a=3; int b=2;
C = (a<b) ? a: b;
Cout << c;
17. Bir işci saat ucreti olarak 6ytl almaktadır. Ayrıca yemekve yol yardımı olarak 10ytl almaktadır. Ayda %8 oranında sigorta kesintileri olmaktadır. Ekrandan girilen aylık calısma saatine gore iscinin kesintilerden sonra eline gecen aylık parayı hesaplayan algoritmanın akıs semasını ve C++ kodunu yazın.
18. Ekrandan not ortalamsı alınacak ogrencı sayısı girilecektir. Daha sonra belirtilen ogrenci kadar not girilecektir. Girilen bu notların ortalamasını alan algoritmanın akıs semasını ve c++ kodunu yazın.
19. 1 den 10 kadar olan ve 3’e bolunebilen sayıların toplamını bulan algoritmanın akıs semasını ve c++ kodunu yazın.
20.Ekrandan girilen bir sayı, eger:
a) 5-10 arasında ise gırılen bu sayının karesini alıp ekrandan gosteren
b ) 5ten kucuk ise girilen sayının faktoriyel degerini alıp ekrandan gosteren
c) 10 dan buyuk ise sayıyı ikiye bolup, bir eksigini ekrana yazan programın c++ kodunu yazın.

21. Ekrandan girilen sayının tek veya cift oldugunu bulup ekrana “tek” veya “cift” yazan c++ programını yazın.

     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.