Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MEDIU is keeping track of number of students from each country. The Education Ministry has set a quota of 5 0 % of any individual

MEDIU is keeping track of number of students from each country. The Education Ministry has set a quota of 50% of any individual country, which means, no one country to have students more than 50% of the total number of students. Write a program that uses arrays to store the names of the countries (top ten countries) with another array for the number of students from the related country.The below arrays are related to mean there are 89 students from Africa, 27 from UAE and so on.SampleThe program should do the following :Display the country with the highest number of students.Identify whether the country from 1. has exceeded the 50% quota. If so, display an alert statement.Display all countries with the number of students when the program ends.Requires :Arraysbasic input/output for arraylogic (selection structure)loops (for, while, or do-while.)

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions