Answered step by step
Verified Expert Solution
Question
1 Approved Answer
User Write a Python program that prompts the user to enter the number of students studying science and the number of students studying arts in
User
Write a Python program that prompts the user to enter the number of students studying science and the number of students studying arts in a school. The program should calculate and display the percentage of science and arts students. If the percentage of science students is higher, the program should display the message 'Science is the more popular subject'. If the percentage of arts students is higher, it should display 'Arts is the more popular subject'. In case of an equal percentage, display 'Both subjects are equally popular'.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started