Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Design (using a flowchart and pseuodocode with C syntax - optional) and implement a modular program that will read the data from a file*
1. Design (using a flowchart and pseuodocode with C syntax - optional) and implement a modular program that will read the data from a file* into parallel arrays containing the league, division, team name, wins, losses, and ties. Call the function to determine and store the percentage wins. Allow the user to repeatedly query the team standings. Provide a menu that allows the user to display all team information, or search for a team by league, by division, by percentage wins above a user-specified value, or by percentage wins below a user-specified value, and display the team information matching the criteria or a message if none found. Before the program exits, call another function to display a message that the results were provided by your name.
Create functions to:
Display the welcome message
Display results provided by
Compute and return the percentage wins
Display the data for one team
Display the data for all teams
Include a comment before each function to describe its processing, parameters and return value.
Include a comment containing your name, course, and date at the beginning of the source code. Include a comment before each function to describe the processing, input parameters, and return value. (If appropriate, state that the functions have no input parameters and no return value.) Include comments to document your code.
2. Create a set of test data and expected results for each of the menu options. Run the program using each set of test data and compare against the expected results.
3. To submit your assignment:
Print source code for the program. Note: If you are using CodeBlocks, check that no lines are missing between the end of one page and the beginning of the next. (Check that the paper size is "Letter" and NOT "A4".) If you are using the Dev C/C++ compiler, remember to include and insert system("PAUSE"); before the return from the main program.
Include a comment containing your name, course, and date at the beginning of the source code.
*Download attached NFLStandings_20171031.txt file.
Note: This project demonstrates using files, input, calculations, decisions, loops, functions, arrays, and output in C.
NFLStandings_20171031.txt
Chiefs AFC West 6 2 0
Colts AFC South 2 6 0
Cowboys NFC East 4 3 0
Dolphins AFC East 4 3 0
Eagles NFC East 7 1 0
Falcons NFC South 4 3 0
Giants NFC East 1 6 0
Jaguars AFC South 4 3 0
Jets AFC East 3 5 0
Lions NFC North 3 4 0
Packers NFC North 4 3 0
Panthers NFC South 5 3 0
Patriots AFC East 6 2 0
Raiders AFC West 3 5 0
Rams NFC West 5 2 0
Ravens AFC North 4 4 0
Redskins NFC East 3 4 0
Saints NFC South 5 2 0
Seahawks NFC West 5 2 0
Steelers AFC North 6 2 0
Texans AFC South 3 4 0
Titans AFC South 4 3 0
Vikings NFC North 6 2 0
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