Answer:
harris_poll_ranking = int(input("Enter team's Harris Poll ranking [1 - 2,850]: "))
coaches_poll_ranking = int(input("Enter team's Coaches Poll ranking [1 - 1,475]: "))
computer_ranking = float(input("Enter team's computer ranking [0 - 1]: "))
harris_poll_score = harris_poll_ranking / 2850
coaches_poll_score = coaches_poll_ranking / 1475
bcs_score = harris_poll_score / 3 + coaches_poll_score / 3 + computer_ranking / 3
print(bcs_score)
Explanation:
*The code is in Python.
Ask the user to enter the harris_poll_ranking as int, coaches_poll_ranking as int and computer_ranking as float
Calculate the harris_poll_score, divide the harris_poll_ranking by 2850
Calculate the coaches_poll_score, divide the coaches_poll_ranking by 1475
Calculate the bcs_score, harris_poll_score, coaches_poll_score and computer_ranking by 3 and sum them
Print the bcs_score
If you include all zeroes, then it should be 1,000,000,000. Otherwise it’s 999,999,999.
Think of how between 0-9 theres 10 numbers, and use that logic towards 000000000-999999999
Answer:
a) range check
Explanation:
Validation can be defined as an automatic computer check that is designed to ensure any data entered is sensible, consistent, feasible and reasonable.
Basically, there are five (5) main validation methods and these includes;
I. Presence check: checks that the user enters (inputs) data into the field. It ensures a field isn't accidentally left blank.
II. Length check: checks that the data entered isn't too short or too long. It ensures that the data meets the minimum characters.
III. Type check: checks that the data entered is in the right format. For example, string, integer, float, etc.
IV. Check digit: checks that the digit entered is acceptable and consistent with the rest of the digits.
V. Range check: checks that the data entered is between the accepted lower (minimum) and upper (maximum) level.
Hence, range check is a validation type you would use to check that numbers fell within a certain range.
For example, 0 < x > 1000 is a range check.