Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that asks the user for the number of in - state students and the number of outof - state students registered in
Write a program that asks the user for the number of instate students and the number of outofstate students registered in a class.
Then, it displays the percentage of instate and outofstate students in the class.
Hint Suppose there are instate and outofstate students in a class.
There are students in the class.
The percentage of instate students can be calculated as or
The percentage of outofstate students can be calculated as or point
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