Answer to Question #85859 in C++ for Jason

Question #85859
Read the results of the election into the array from a text file where each line has the city name, district name and the number of votes the three parties received, below:
city1 district1 232000 145000 13450
cityt2 district2 123500 217800 150000
city1 district3 10500 23000 5500
city3 district4 120450 113000 203000
After the array has been read, do the following according to the user’s input:
List: Input the city name, and list all the information about the districts of the city.
District: Input a district’s name and output which party has won the election in that district
City: Input a city’s name and output which party won the election in that city
Quit: End the program
Run
List | District | City | Quit
Enter your choice of action: List
Enter city name: city1
City: city1
District: district1 Party1: 2320 Party2: 1450 Party3: 13450
District: district3 Party1: 105 Party2: 230 Party3: 5500
List | District | City | Quit
Enter your choice of action: Quit
1
Expert's answer
2019-03-06T14:44:06-0500
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-85859.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS