fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. float due,credit,waiver,retake,credit_fee,a,retake_fee,extra_fee,b,aft_wa_credit_fee1,tot,mid,x,extra_waiver;
  6. float c,gpa_discount,actual_credit_fee;
  7. cout<<"Your previous due(if no due press 0):";
  8. cin>>due;
  9. cout<<"Your credit (Without retake credit):";
  10. cin>>credit;
  11. cout<<"Your waiver(type only int,not %):";
  12. cin>>waiver;
  13. cout<<"Caution if your previous semester GPA is 3.80+ you will get 5% extra waiver"<<endl;
  14. cout<<"Caution if your previous semester GPA is 4 you will get 10% extra waiver"<<endl;
  15. cout<<"your extra waiver(if no type 0):";
  16. cin>>extra_waiver;
  17. cout<<"Your total retake course credit(if no retake then press 0):";
  18. cin>>retake;
  19. cout<<"Extra any exclusive course fee(if no type 0):";
  20. cin>>extra_fee;
  21. cout<<endl<<endl<<endl;
  22.  
  23. retake_fee=retake*2800;
  24. credit_fee=credit*2800;
  25. a=100-waiver;
  26. b=a/100;
  27. aft_wa_credit_fee1=credit_fee*b;
  28. c=extra_waiver/100;
  29. gpa_discount=c*aft_wa_credit_fee1;
  30. actual_credit_fee=aft_wa_credit_fee1-gpa_discount;
  31.  
  32. tot=due+actual_credit_fee+5100+retake_fee+extra_fee;
  33.  
  34. cout<<"_____________________________"<<endl;
  35. cout<<"Your total bill is:"<<tot<<endl;
  36. cout<<"Bill History:"<<endl<<"Previous Due:"<<due<<endl<<"Credit Fee:"<<actual_credit_fee<<endl;
  37. cout<<"Retake fee:"<<retake_fee<<endl<<"Registration_fee:4000"<<endl<<"IT & Library fee:1000"<<endl;
  38. cout<<"Extra course fee:"<<extra_fee<<endl<<"Club Fee:100"<<endl;
  39. cout<<"_____________________________"<<endl;
  40. cout<<"You have to pay 11,100 before starting semester"<<endl;
  41. x=tot-11100;
  42. mid=x/2;
  43. cout<<"Before MID you have to pay:"<<mid<<endl;
  44. cout<<"Before FInal you have to pay:"<<mid<<endl;
  45. return 0;
  46. }
Success #stdin #stdout 0s 5464KB
stdin
Standard input is empty
stdout
Your previous due(if no due press 0):Your credit (Without retake credit):Your waiver(type only int,not %):Caution if your previous semester GPA is 3.80+ you will get 5% extra waiver
Caution if your previous semester GPA is 4 you will get 10% extra waiver
your extra waiver(if no type 0):Your total retake course credit(if no retake then press 0):Extra any exclusive course fee(if no type 0):


_____________________________
Your total bill is:5.03816e+18
Bill History:
Previous Due:5.03816e+18
Credit Fee:-4.36325e-21
Retake fee:8.66064e-38
Registration_fee:4000
IT & Library fee:1000
Extra course fee:1.54482e-05
Club Fee:100
_____________________________
You have to pay 11,100 before starting semester
Before MID you have to pay:2.51908e+18
Before FInal you have to pay:2.51908e+18