Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Understand international investment and collaboration. LO1

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

What are the role of supervisors ?

Answered: 1 week ago