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
- 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
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