Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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 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%.(1 point)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions