Question
(0) Write c++ program by reading multiple files: do not use array test1.txt Barryland, 1 ,5,7 Rabbitville,1,55,12,2,654,0, 3 , 79,711 Jelly Bean Forest,1,11,49,2,337,99,3,764,64091,4,79666,22278, 5 ,
(0)
Write c++ program by reading multiple files: do not use array
test1.txt
Barryland,1,5,7
Rabbitville,1,55,12,2,654,0,3,79,711
Jelly Bean Forest,1,11,49,2,337,99,3,764,64091,4,79666,22278,5,116364,56350
Earth,1,0,1,2,45,67
New Donut,1,555,231,2,6543,8790,3,4567,444
test2.txt
Barryland,52340
New Donut,9654
Rabbitville,1345
Jelly Bean Forest,5635099
Earth,1098
Output:
Enter the tests: test1.txt test2.txt
--------------------------------------------
File: test1.txt
Barryland has 1 districts
Rabbitville has 3 districts
Jelly Bean Forest has 5 districts
Earth has 2 districts
New Donut has 3 districts
File: test2.txt
Barryland has 52340 people
New Donut has 9654 people
Rabbitville has1345 people
Jelly Bean Forest has 5635099 people
Earth has 1098 people
Enter the tests: exit
--------------------------------
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