Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- double salary, grades, minSalary;
- cin >> salary >> grades >> minSalary;
- cout.setf(ios::fixed);
- cout.precision(0);
- if(grades >= 4.5 && salary < minSalary)
- {
- if(salary < minSalary && grades < 5.5)
- {
- double scholarship = grades * 25;
- cout << "You get a scholarship for excellent results " << scholarship << " BGN" << endl;
- }
- double socialScholarship = minSalary * 0.35;
- cout << "You get a Social scholarship " << socialScholarship << " BGN" << endl;
- }
- else
- {
- cout << "You cannot get a scholarship!" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement