![]() If all of the data is valid, it returns True, otherwise it returns False.Ī main function that prompts the user for pertinent data (applicant name, math SAT score, reading SAT score, writing SAT score, and class rank. ![]() Your solution MUST contain the following functions:Ī function called admissionStatus(sat_math,sat_reading,sat_writing,class_rank) that accepts four parameters (as shown) and returns a string "Accept", "Reject", or "Waitlist"Ī function called isvalid(sat_math,sat_reading,sat_writing,class_rank) that returns True or False, depending on whether the input data are valid. In any other instance, the applicant is placed on a waiting-listĭa program to replace the spreadsheet (with several functions) to determine if a student will be accepted, rejected or wait-listed. If two or more of the test scores are less than 400 or the class rank is greater than or equal to 75, they are rejected. If the average test score is greater than 650 and the class rank less than or equal to 25, they are accepted. If any test score is below 300, then they are rejected If any test score is 800, then they are accepted If the input data is invalid (SAT less than 200 or greater than 800, or a class rank that is not a positive integer) then they are rejected These rules are applied in the priority order shown here (1, 2, 3, etc.). The criteria for admission are based on the scores on the three parts of the SAT, and rank in the high school graduating class the exact criteria are given below. I am only confused about part 4 (written below) I am not sure what it's asking for and am wondering if someone could explain what is meant by "helper functions," and what I am supposed to compose. ![]() I have already completed the first three parts I am only posting the entire question here to help clarify it. I am not looking for help on this assignment.
0 Comments
Leave a Reply. |