Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function scolarship(input){
- let income=Number(input.shift());
- let averageEvaluation=Number(input.shift());
- let minsalary=Number(input.shift());
- let minsalarypercent=35/100*minsalary;
- let max=averageEvaluation*25;
- if(income<minsalary && averageEvaluation>=4.50){
- console.log(`You get a Social scholarship ${minsalarypercent} BGN`)
- } if(averageEvaluation>=5.50){
- console.log(`You get a scholarship for excellent results ${Math.floor(max)} BGN`)
- }
- else {
- console.log(`You cannot get a scholarship!`)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement