NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

static void Main(string[] args)
{
int final = -1;
double genelOrtalama = 0;
List<int> vizeler = new List<int>();
List<int> sozluler = new List<int>();
List<int> quizler = new List<int>();
List<int> uygulamalar = new List<int>();
List<int> odevler = new List<int>();
int secim = 0;
do
{
Console.Clear();
Console.WriteLine("[1] Vize Notu Ekle");
Console.WriteLine("[2] Final Notu Gir");
Console.WriteLine("[3] Sözlü Notu Ekle");
Console.WriteLine("[4] Quiz Notu Ekle");
Console.WriteLine("[5] Uygulama Notu Ekle");
Console.WriteLine("[6] Ödev Notu Ekle");
Console.WriteLine("[7] Notları Görüntüle");
Console.WriteLine("[8] Genel Ortalama Hesapla");
Console.WriteLine("[9] Çıkış");
Console.WriteLine("--------------------------");
Console.Write("Seçiminiz................:");
secim = Convert.ToInt32(Console.ReadLine());
switch (secim)
{
case 1:
if (vizeler.Count < 3)
{
Console.Write("Vize Notu gir....:");
int v = Convert.ToInt32(Console.ReadLine());
vizeler.Add(v);
}
else
{
Console.WriteLine("3'ten falza vize notu girilemez");
Console.ReadLine();
}
break;
case 2:
if (final == -1)
{
final = Convert.ToInt32(Console.ReadLine());
}
else
{
Console.WriteLine("Final Notu 1 kez girilebilir");
Console.ReadLine();
}
break;
case 3:
Console.Write("Sözlü Notu gir....:");
int s = Convert.ToInt32(Console.ReadLine());
sozluler.Add(s);
break;
case 4:
Console.Write("Quiz Notu gir....:");
int q = Convert.ToInt32(Console.ReadLine());
quizler.Add(q);
break;
case 5:
Console.Write("Uygulama Notu gir....:");
int u = Convert.ToInt32(Console.ReadLine());
uygulamalar.Add(u);
break;
case 6:
Console.Write("Ödev Notu gir....:");
int o = Convert.ToInt32(Console.ReadLine());
odevler.Add(o);
break;
case 7:
Show(vizeler, final, sozluler, quizler, uygulamalar, odevler);
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("Devam etmek için [ENTER] tuşuna basın");
Console.ReadLine();
break;
case 8:
if (vizeler.Count == 2 || vizeler.Count == 3)
{
if (final != -1)
{
if (sozluler.Count != 0)
{
if (quizler.Count != 0)
{
if (uygulamalar.Count != 0)
{
if (odevler.Count != 0)
{
genelOrtalama = OrtalamaHesapla(OrtalamaHesapla(vizeler), final, OrtalamaHesapla(sozluler), OrtalamaHesapla(quizler), OrtalamaHesapla(uygulamalar), OrtalamaHesapla(odevler));
Console.WriteLine("GenelOrtalama = " + genelOrtalama);
Console.ReadLine();
}

else
{
Console.WriteLine("Ödev notu eksik");
Console.ReadLine();
}
}
else
{
Console.WriteLine("Uygulama notu eksik");
Console.ReadLine();
}
}
else
{
Console.WriteLine("Quiz notu eksik");
Console.ReadLine();
}
}
else
{
Console.WriteLine("Sözlü notu eksik");
Console.ReadLine();
}
}
else
{
Console.WriteLine("Final notu eksik");
Console.ReadLine();
}
}
else
{
Console.WriteLine("Vize notu eksik...");
Console.ReadLine();
}
break;
case 9:
Console.WriteLine("Program sonlandı");
Console.ReadLine();
break;
default:
break;
}
} while (secim != 9);
}
public static void Show(List<int> VZ, int F, List<int> SZ, List<int> QZ, List<int> UYG, List<int> OD)
{
Console.Write("nVize Notları:t");
foreach (var item in VZ)
{
Console.Write(item + "t");
}
if (F == -1)
{
Console.Write("nFinal Notu:");
}
else
{
Console.Write("nFinal Notu:t" + F);
}
Console.Write("nSözlü Notları:t");
foreach (var item in SZ)
{
Console.Write(item + "t");
}
Console.Write("nQuiz Notları:t");
foreach (var item in QZ)
{
Console.Write(item + "t");
}
Console.Write("nUyg. Notları:t");
foreach (var item in UYG)
{
Console.Write(item + "t");
}
Console.Write("nÖdev Notları:t");
foreach (var item in OD)
{
Console.Write(item + "t");
}
}
public static double OrtalamaHesapla(List<int> liste)
{
int toplam = 0;
foreach (var item in liste)
{
toplam += item;
}
return toplam / liste.Count;
}
public static double OrtalamaHesapla(double VZ, int F, double SZ, double QZ, double UYG, double OD)
{
return VZ * 0.3 + F * 0.4 + SZ * 0.05 + QZ * 0.1 + UYG * 0.07 + OD * 0.08;
}
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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.