Question: Wite a program that asks the user for the number of in - state students and the number of outof - state students registered in

Wite a program that asks the user for the number of in-state students and the number of outof-state students registered in a class.
Then, it displays the percentage of in-state and out-of-state students in the class.
Hint: Suppose there are 35 in-state and 15 out-of-state students in a class.
There are 50 students in the class.
The percentage of in-state students can be calculated as 3550=0.7, or 70%.
The percentage of out-of-state students can be calculated as 1550=0.3, or 30%.
 Wite a program that asks the user for the number of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!