#include <iostream>
#include <string.h>
using namespace std;
int main()
{
setlocale(LC_ALL,"Turkish");
int vize,final,ort,butunleme,yeniort;
string ad,soyad;
cout<<"Öğrencinin Adını Giriniz:";
cin>>ad;
cout<<"Öğrencinin Soyadını Giriniz:";
cin>>soyad;
while (true)
{
cout<<"Vize Notunu Giriniz:";
cin>>vize;
cout<<"Final Notunu Giriniz:";
cin>>final;
ort=(vize*0.4)+(final*0.6); //Vizenin katkısı %40, Finalin ise %60'dir.
cout<<"Ortalama:"<<ort<<endl;
if(ort>=90 && ort<=100)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve AA notuyla geçtiniz."<< endl;
}
else if(ort>=80 && ort<=89)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve BA notuyla geçtiniz."<< endl;
}
else if(ort>=70 && ort<=79)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve BB notuyla geçtiniz."<< endl;
}
else if(ort>=65 && ort<=69)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve CB notuyla geçtiniz."<< endl;
}
else if(ort>=60 && ort<=64)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve CC notuyla geçtiniz."<< endl;
}
else if(ort>=59 && ort<=55)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve DC notuyla bütünlemeye kaldınız."<< endl;
goto baslangic;
}
else if(ort>=50 && ort<=54)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve DD notuyla bütünlemeye kaldınız."<< endl;
}
else if(ort>=40 && ort<=49)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve FD notuyla bütünlemeye kaldınız."<< endl;
}
else
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<ort<<" ortalama ile ve FF notuyla bütünlemeye kaldınız."<< endl;
}
baslangic:
if(ort<60)
{
cout<<"Bütünleme Notunu Giriniz:";
cin>>butunleme;
yeniort=(vize*0.4)+(butunleme*0.6);
if(yeniort<45)
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<yeniort<<"ile FD ile kaldınız."<<endl;
}
else
{
cout<<"Sevgili....."<<ad<<soyad<<"....."<<yeniort<<"ile geçtiniz."<<endl;
}
}
}