63 126
Assignments Done
99,1%
Successfully Done
In July 2018

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
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions