Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function scolarship(input){
  2.     let income=Number(input.shift());
  3.     let averageEvaluation=Number(input.shift());
  4.     let minsalary=Number(input.shift());
  5.     let minsalarypercent=35/100*minsalary;
  6.     let max=averageEvaluation*25;
  7.     if(income<minsalary && averageEvaluation>=4.50){
  8.         console.log(`You get a  Social scholarship ${minsalarypercent} BGN`)
  9.  
  10.     } if(averageEvaluation>=5.50){
  11.         console.log(`You get a scholarship for excellent results ${Math.floor(max)} BGN`)
  12.     }
  13.      else {
  14.         console.log(`You cannot get a scholarship!`)
  15.     }
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement