Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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 user specified value, and display the team information matching the criteria or a message if none found. Before the program exits, Cal an e u t n s display a message that the results were provided by your name Create functions to: e Display the welcome message Display results provided by e Compute and return the percentage wins Display the data for one teamm Display the data for all teams include a comment before each function to describe its processing parameters and return value. nclude 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. (IfF appropriate, state that the functions have no input parameters and no return value.) Include comments to document your code. 2Create 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 source code for the program Note: If you are using CodeBlocks, check that no lines are missing between the size is 'Letter and NOT A4" If you are using the Dev C/C+compiler, remember to include Include a comment containing your name, course, and date at the beginning of the source code Print a sample run (output) from your application (See instructions under Course Information) Staple the listing of the source code and output end of one page and the beginning of the next (Check that the paper stdlib hs and insert system@PAUSE) before the return from the main program ploa ie eriaten ecopy e the sure coe bor the spoiction t Blacisboard When complete Subrmit the assignment Turn in the printed documents on or before the due date. ete Submit the assignment Download attached NFLStandings 20171031.tit file. NFLStanding 20171031 tt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago