You are hiring grad students to work for your company, which you have recently s
ID: 3536861 • Letter: Y
Question
You are hiring grad students to work for your company, which you have recently started. The Human Resources department has asked you to write a script that will help them determine the chances of an individual applicant getting a job after interviewing. The following table outlines the rules for determining the changes for the applicant to get a job:
Your script should repeatedly ask the user for a GPA value and give the student%u2019s chance of being hired. It should continue asking for GPA values until a number that is greater than 4.0 or smaller than 0.0 is entered.
Explanation / Answer
gpa= input('Enter Student Gpa:');
while(gpa<=4 && gpa>=0)
if gpa>=3.5
disp('Chance of Student selection is 90%');
elseif gpa>=3
disp('Chance of Student selection is 80%');
elseif gpa>=2.5
disp('Chance of Student selection is 70%');
elseif gpa>=2
disp('Chance of Student selection is 60%');
elseif gpa>=1.5
disp('Chance of Student selection is 40%');
else
disp('Chance of Student selection is 30%');
end
gpa= input('Enter Student Gpa:');
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.