NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace notOrtalaması
{
class Program
{
static void Main(string[] args)
{
double vizeort = 0, sozluort=0, Quizort=0, Odevort=0, Uygulamaort=0, Genelort=0 ;
char secim;
Hesapla x = new Hesapla();
List<int> Vize = new List<int>();
List<int> Sozlu = new List<int>();
List<int> Quiz = new List<int>();
List<int> Uygulama = new List<int>();
List<int> Odev = new List<int>();
int final = -1;

do
{
Console.Clear();
Console.WriteLine("[1] Vize notu giriniz ");
Console.WriteLine("[2] Final notu giriniz ");
Console.WriteLine("[3] Sözlü notu giriniz ");
Console.WriteLine("[4] Quiz notu giriniz ");
Console.WriteLine("[5] Uygulama notu giriniz ");
Console.WriteLine("[6] Ödev notu giriniz ");
Console.WriteLine("[7] Ortalama hesapla ");
Console.WriteLine("[8] Notları görüntüle ");
Console.WriteLine("[9] Çıkış ");
secim = Convert.ToChar(Console.ReadLine());

switch (secim)
{
case '1':
if (Vize.Count <= 2)
{
Console.WriteLine("Vize notu giriniz ");
int Vize1 = Convert.ToInt32(Console.ReadLine());
Vize.Add(Vize1);
}
break;

case '2':
if (final == -1)
{
Console.WriteLine("Final notu giriniz ");
final = Convert.ToInt32(Console.ReadLine());
}
else if (secim == '2')
{
Console.WriteLine("Daha fazla final notu girilemez ");
}
Console.ReadLine(); break;

case '3':
Console.WriteLine("Sözlü notu girinzi ");
int sozlu = Convert.ToInt32(Console.ReadLine());
Sozlu.Add(sozlu); break;
case '4':
Console.WriteLine("Quiz notu girinzi ");
int quiz = Convert.ToInt32(Console.ReadLine());
Quiz.Add(quiz);
break;
case '5':
Console.WriteLine("Uygulama notu girinzi ");
int uygulama = Convert.ToInt32(Console.ReadLine());
Uygulama.Add(uygulama);
break;
case '6':
Console.WriteLine("Ödev notu girinzi ");
int odev = Convert.ToInt32(Console.ReadLine());
Odev.Add(odev);
break;
case '7':
vizeort = x.Ortalama(Vize);
sozluort = x.Ortalama(Sozlu);
Quizort = x.Ortalama(Quiz);
Odevort = x.Ortalama(Odev);
Uygulamaort = x.Ortalama(Uygulama);
Genelort = x.Ortalama(vizeort, final, sozluort, Quizort, Odevort, Uygulamaort);
Console.WriteLine("Genel ortalama " + Genelort);
if (Genelort <= 49)
{
Console.WriteLine("Öğrenci kaldı ");
}
else
{
Console.WriteLine("Öğrenci geçti ");
}
Console.ReadLine();
break;
case '8':
foreach (var item in Vize)
{
Console.WriteLine("Girilen vize notu " + item);
}
if (final == -1)
{
Console.WriteLine(" ");
}
else
{
Console.WriteLine("Final notu " + final);
}
foreach (var item in Sozlu)
{
Console.WriteLine("Girilen sözlü notu " + item);
}
foreach (var item in Quiz)
{
Console.WriteLine("Girilen quiz notu " + item);
}
foreach (var item in Odev)
{
Console.WriteLine("Girilen ödev notu " + item);
}
foreach (var item in Uygulama)
{
Console.WriteLine("Girilen uygulama notu" + item);
}
Console.ReadLine();
break;
default: break;
}
}
while (secim!= '9');
}
}
class Hesapla
{
public double Ortalama(List<int> L )
{
int toplam = 0;
foreach (var item in L )
{
toplam = toplam + item;
}
return toplam / L.Count;
}
public double Ortalama(double Vize , int Final, double Sozlu , double Quiz, double Odev, double Uygulama )
{
double Ort = Vize * 0.3 + Final * 0.4 + Sozlu *0.05 + Quiz * 0.1 + Odev * 0.08 + Uygulama * 0.07 ;
return Ort;
}
}
}
     
 
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.