#include < iostream.h >
main()
{
//declaire variable
float cgpa, total, total2;
cout<<"Muhammad FIrdaus Bin Hasmi"<
//input
cout<<"\nPlease enter your CGPA = ";
cin>>cgpa;
if (cgpa == 4.00)
{total = (100/100)*16000;
total2 = 16000 - total;}
else if (3.00<=cgpa<=3.99)
{total = (80/100)*16000;
total2 = 16000 - total;}
else if (2.00<=cgpa<=2.99)
{total = (40/100)*16000;
total2 = 16000 - total;}
else if (0<=cgpa<=1.99)
{total = (100/100)*16000;
total2 = 16000 - total;}
else {cout << "Invalid CGPA";}
//output
cout<<"Your CGPA is " << cgpa<
return 0;
}
No comments:
Post a Comment