Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- using namespace std;
- #include <iomanip>
- #include <math.h>
- int main()
- {
- double income;
- double success;
- double salary;
- cin >> income;
- cin >> success;
- cin >> salary;
- double social = salary * 0.35;
- double excellent = success * 25;
- if (success >= 5.50)
- {
- if (excellent >= social || income > salary)
- {
- cout << "You get a scholarship for excellent results " << floor(excellent) << " BGN" << endl;
- }
- else
- {
- cout << "You get a Social scholarship " << floor(social) << " BGN" << endl;
- }
- }
- else if (income < salary && success > 4.50)
- {
- cout << "You get a Social scholarship " << floor(social) << " BGN" << endl;
- }
- else
- {
- cout << "You cannot get a scholarship!" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement