Answered step by step
Verified Expert Solution
Question
1 Approved Answer
f user enters 1 , the program is to display content of txt file if user enters 2 , the program
f user enters the program is to display content of txt file
if user enters the program is to ask the user to enter name of team in lowercase letters Next the program is to do the following
if the team name exists in the file, the program is to display the years the team won.
if the team name was not found in the file, the user is to be notified and the menu is to be displayed again
if user enters the program is to ask the user to enter the year. The program is to then do the following:
if an incorrect year is entered, the program is to notify the user and ask them to reenter year valid year
if the user enters a valid year, the program is to display the name of the team that won that year.
if user enters the program is to create two files a csv file and a txt file
the txt file is to list team names each team only ONCE and in the next column it's to display the name of times each team won.
Information should be written in a tabular format and the txt file MUST have a title. See example below
Name the txt file "Winners.txt
the csv file is to have two columns Team Name Won
Team names are to be listed under the "Team Name" column, each team once only
The number of times each team won should be listed under the "Won" column.
Name the csv file "winners.csv
if user enters the program notifies the user that the program will stop and then terminates.
if user enters something other than numbers through the program is to notify the user that their entry was invalid and then displays the menu again.
The program is to only terminatestop if the user enters
Submit your finished code solution files through the MPro assignment link posted below. Make sure you submit a zipped folder containing the following:
The txt file the program is reading
the winners.csv file the winners.txt file
The codeshould be two files if program is modularized
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