Answer to Question #52371 in Python for Oz

Question #52371
Magazines accept and publish articles. Depending on the percentage of accepted articles, they are classified into four categories:

Acceptance Rate Category
25% or less Highly selective
more than 25%, but 50% or less Selective
more than 50%, but 75% or less accepted Moderately selective
more than 75% Not selective

Write code to accept the acceptance rate and print one of the following messages as per the above table.

Highly selective
Selective
Moderately selective
Not selective
1
Expert's answer
2015-05-01T12:29:57-0400
s = input("Enter acceptance rate or 'end': ")
while s != 'end':
rate = float(s)
if rate <= 25:
print("Highly selective")
elif rate <= 50:
print("Selective")
elif rate <= 75:
print("Moderately selective")
else:
print("Not selective")

s = input("Enter acceptance rate or 'end': ")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS