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