Question: Languages. (C++ ARRAYS TASK) Help me with this task. I'm learning C++. Please don't provide just the answer. Languages that are used by so few

  1. Languages. (C++ ARRAYS TASK)

Help me with this task. I'm learning C++. Please don't provide just the answer.

Languages that are used by so few people that they are in danger of extinction are called endangered. In UNESCO's list of endangered world languages, they are divided into the following five groups: vulnerable languages; endangered languages; languages at high risk of extinction; critically endangered and dead languages. Each of these language groups includes people who speak up to 10,000, 10,000 to 100,000, or more than 100,000 people, or people whose exact number of speakers is unknown.

Make a program that calculates the total number of languages in each endangered language group.

The data.txt file contains the number of languages in which:

speaks 0- 9,999 people;

speaks from 10,000 to 9,999 people;

speaks to more than 100,000 people;

The exact number of people speaking is unknown.

On the individual lines in the Results.txt file, list the total number of languages in each endangered language group.

Initial data:

339 150 106 6

409 151 60 28

430 47 11 38

508 15 0 52

221 1 0 9

Results:

601

648

526

575

231

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 Programming Questions!