Instructions - Computer Science 101

advertisement
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
Background Information
In Major League Baseball today, there is a great disparity in
relative wealth amongst the 30 teams that make up the American
and National Leagues. While some teams, such as the New York
Yankees and Boston Red Sox, come from large markets and have
large revenue streams, others, like the Kansas City Royals, come
from small areas and are relatively poor.
Major League Baseball has implemented a revenue sharing plan
that is designed to support poorer teams, but there are still
substantial differences in how much money each team spends on player salaries. In
2010, the New York Yankees spent $206 million on payroll but the Pittsburgh
Pirates only spent $35 million. As a result, the Yankees have a roster stocked with
well-known stars while many of the Pirates players are straight out of the farm
leagues.
Problem Statement
In this assignment, students will analyze baseball win/loss statistics and
championship records to see what impact a team’s payroll size has on its on-field
performance.
Instructions
IMPORTANT: Complete the below steps in the order they are given. Completing the
steps out of order may complicate the assignment or result in an incorrect result.
1.
Download the following files onto your computer:
a.
teams.xml – Information on each Major League Baseball team [1].
Table: Teams
Field Name
TeamAbbrv
TeamName
League
Type
Short Text
Short Text
Short Text
Division
Number
Introduction to Computer Applications
West Virginia University
Page 1 of 9
Description
Primary key. Abbreviation for team.
Name of team.
Name of league (American or National) in
which this team plays.
Name of division (East, Central, or West) in
which this team plays.
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
b.
c.
statistics.xml – Information on win/loss and championship records [2],
[3].
Table: Statistics
Field Name
Year
TeamAbbrv
Wins
Type
Number
Short Text
Number
Losses
Number
Championship
Short Text
Description
Part of composite key. Year of the statistics.
Part of composite key. Team abbreviation.
Number of games won by this team in this
year.
Number of games lost by this team in this
year.
Championship, if any, won by this team in
this year.
salaries.xml – Salary data for each team [4].
Table: Salaries
Field Name
Year
TeamAbbrv
MedianSalary
TotalSalary
Type
Number
Short Text
Currency
Currency
Description
Part of composite key. Year of the statistics.
Part of composite key. Team abbreviation.
Median player salary.
Total of all player salaries.
d.
baseball.txt – Report text file to format in Word.
e.
batter.png – Image of a baseball for use in PowerPoint.
Microsoft Access Portion
2.
Begin by creating a new Microsoft Access database named
lastname_firstname_bsp.accdb .
3.
Import the structure and data of the tables from teams.xml, statistics.xml,
and salaries.xml into your new database.
4.
Create the appropriate relationships for the following tables. Enforce referential
integrity, but do not enable cascade updates or cascade deletes.
a.
Teams and Statistics
b.
Teams and Salaries
c.
Salaries and Statistics
Introduction to Computer Applications
West Virginia University
Page 2 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
5.
Create separate queries to provide the information requested below. Name
each query after the step in which it appears (e.g., name the query in Step 5a
as Query5A ).
HINT: Run your queries to test them. Make sure that they display all and only
the records that you would expect to appear.
a.
Create a query that lists each team’s full name, the year, and the total
salary amount. Include a calculated field that computes the win ratio.
You can calculate the win ratio using the formula:
[π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . π‘Šπ‘–π‘›π‘ ]
([π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . π‘Šπ‘–π‘›π‘ ] + [π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . πΏπ‘œπ‘ π‘ π‘’π‘ ])
Format the calculated field as a fixed-type number with 3 decimal places.
Sort by year and then by team name, both in ascending order.
HINT: This query will show 300 records and 4 fields.
b.
Create a new query. For each league division, list the league name,
division name, the average of its median salary, the average of its total
salary, the sum of its wins, and the sum of its losses. Include a calculated
field that computes the win ratio.
You can calculate the win ratio using the formula:
π‘†π‘’π‘š([π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . π‘Šπ‘–π‘›π‘ ])
π‘†π‘’π‘š([π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . π‘Šπ‘–π‘›π‘ ] + [π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ . πΏπ‘œπ‘ π‘ π‘’π‘ ])
HINT: Since we are providing the sum function in the formula for the
calculated field, please change the Total line to be Expression for the
wins ratio.
Format the sums as standard-type numbers with no decimal places.
Format the calculated field as a fixed-type number with 3 decimal places.
Sort by total salary in ascending order.
HINT: This query will show 6 records and 7 fields.
Introduction to Computer Applications
West Virginia University
Page 3 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
c.
We want to compare the average total salary amounts for each year to
compare spending by teams that won each championship versus those
that did not. For this query, copy-and-paste the below SQL code:
SELECT Salaries.Year, Statistics.Championship,
Avg(Salaries.TotalSalary) AS AvgOfTotalSalary
FROM Teams INNER JOIN (Salaries INNER JOIN Statistics ON
(Salaries.TeamAbbrv = Statistics.TeamAbbrv) AND (Salaries.Year
= Statistics.Year)) ON (Teams.TeamAbbrv =
Statistics.TeamAbbrv) AND (Teams.TeamAbbrv =
Salaries.TeamAbbrv)
GROUP BY Salaries.Year, Statistics.Championship
ORDER BY Salaries.Year, Statistics.Championship;
IMPORTANT: Do not make any modifications to this query other than
entering the above SQL code.
HINT: This query will show 40 records and 3 fields.
6.
Using the Form Wizard, create a form with subform. The main form should
display the full team name. The subform must display a datasheet with all
Statistics table fields.
Name the main form TeamData and the subform TeamDataSubform .
7.
Using the Report Wizard, create a report to show the results of Query5B.
Display all fields from the query.
Group by league and sort by division in ascending order. Use a stepped layout
and landscape page orientation. Name the report LeagueSummary .
Ensure the full widths of all columns are visible on the report.
8.
Run the Compact and Repair Database utility on your database. Ignore any
errors you receive when running the utility.
Microsoft Excel Portion
9.
Create a new Microsoft Excel workbook named
lastname_firstname_bsp.xlsx .
10. We must adjust the sheets in our workbook.
a.
Rename Sheet1 to Team Salaries .
b.
Add a new sheet named Championship Salaries .
Introduction to Computer Applications
West Virginia University
Page 4 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
11. We need to import the results of our Microsoft Access queries into the new
Microsoft Excel workbook.
a.
We want to import the results of Query5B into the Team Salaries sheet.
This query returns a summary of each team’s spending on salaries and
how many games they won.
Using the DATA ribbon, import the data from Query5B of your Microsoft
Access database and place it starting in cell A1. View the data as a table.
b.
We wish to import the results of Query5C into the Championship Salaries
sheet. This query returns information on the average total salaries for
winners of championship.
Using the DATA ribbon, import the data from Query5C of your Microsoft
Access database and place it starting in cell A1. View the data as a table.
12. We must apply some formatting to clean up the visual appearance of the table
on the Team Salaries sheet.
a.
Format the table using a style of your choice other than the default table
style.
b.
For the table, turn on the First Column option.
c.
Format the cells as indicated below:
i.
C2 through D7: currency with no decimal places
ii.
G2 through G7: number with 3 decimal places
13. We would like to create a chart to display information on the respective team
salaries of each league division.
Create a new 2-D clustered column chart based on cells A1 through B7 and D1
through D7 of the Team Salaries sheet. Move the chart to a new sheet named
Team Salaries Chart.
Specify appropriate chart and axis titles. Turn off display of the legend.
14. To better understand our data, we wish to create a PivotChart with an
associated PivotTable.
a.
Create a new PivotChart and PivotTable based on the data in cells A1
through C41 of the Championship Salaries sheet. Place the PivotTable on
a new sheet named Championship PivotTable and move the PivotChart to
a new sheet named Championship PivotChart.
Introduction to Computer Applications
West Virginia University
Page 5 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
b.
c.
On the PivotTable, do the following:
i.
Add the year as a Rows field.
ii.
Add the championship type as a Columns field.
iii.
Add the total salary average as a Values field.
We need to perform some formatting on the PivotTable.
i.
Format the cells as indicated below:
(1) Division, League, None, World Series, and Grand Total
columns: currency with no decimal places
ii.
d.
AutoFit the widths of columns A through F.
We must perform some formatting on the PivotChart.
i.
Ensure the chart is a 2-D clustered column chart.
ii.
Specify appropriate chart and axis titles.
Microsoft Word Portion
15. Create a new Microsoft Word document named
lastname_firstname_bsp.docx .
16. Insert a cover page using the built-in Sideline style. On the cover page, include
the information noted below.
a.
Company: The words Computer Science 101 Section followed by the
section number in which you are enrolled.
b.
Title: Baseball
c.
Subtitle: A Brief Historical Analysis
d.
Author: Your first and last name.
e.
Date: The current date.
17. Insert a second page if one does not already exist. On it, copy-and-paste the
contents of the file baseball.txt.
NOTE: The imported text file contains directions and comments (inside of “<>”
symbols) for use in formatting the document. You should remove these
directions and comments once you have applied the formatting specified.
18. Where indicated, include the chart from the Team Salaries Chart in your
Microsoft Excel workbook. Size the chart to be 4-inches high and 6.5-inches
wide. Be sure to include a caption for the chart.
Introduction to Computer Applications
West Virginia University
Page 6 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
19. At the end of the document, we wish to create a bibliography page.
a.
Define the following website sources as reference for your report.
i.
ii.
b.
Type: Web site
◊
Name of web page: Major League Baseball
◊
Name of web site: Wikipedia
◊
Date: June 19, 2010
◊
Date accessed: June 19, 2010
◊
URL:
http://en.wikipedia.org/wiki/Major_League_Baseball
Type: Book
◊
Author: Tygiel, Jules
◊
Title: Past Time: Baseball as History
◊
Year: 2000
◊
City: New York
◊
Publisher: Oxford University Press
Where indicated on the last page, insert a Bibliography-style bibliography
using an APA style.
20. We must finish formatting the document.
a.
Apply the formatting and changes to your report text as specified by the
included comments.
Remove the included comments from your document once you have
applied the required formatting.
b.
Ensure your document conforms to the following requirements:
i.
Modify the Normal formatting style to specify Verdana 11-point as
the default font.
ii.
In the right-hand corner of the header on all pages after the cover
page, list your last name followed by the page number. The page
number should begin at 1 on the first actual page of text (the page
after the cover page).
iii.
The first line of your text paragraphs should be indented by 0.5inch. Do not indent the cover page, headings, images, captions,
equations, or bibliography.
iv.
Except on the cover page, use double line spacing.
Introduction to Computer Applications
West Virginia University
Page 7 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
v.
Ensure that there is no (0-point) line spacing before and after each
paragraph except on the cover page.
vi.
Use 1.0-inch margins on all sides.
vii.
Delete any duplicate line breaks.
NOTE: This includes spaces between paragraphs and spaces
between or after headings.
Microsoft PowerPoint Portion
21. Create a new Microsoft PowerPoint presentation named
lastname_firstname_bsp.pptx .
22. In the presentation, create the following slides:
a.
Title Slide-type slide listing a title for the presentation, your name, course
section, and date.
b.
There is nothing to do for this step. Please proceed to the next step.
c.
Title and Content-type slide titled Team Salaries by Championship
Type. Include the chart from the Championship PivotChart sheet in your
Microsoft Excel workbook.
23. Create Title and Content-type slides to answer four of the five below analysis
questions, one question per slide. Title the slide with the name of the question
being answered (e.g., “Question A”).
a.
Is there a relationship between team salary spending and championships
won?
b.
The league division a team is in roughly correlates with its location in the
country. Is there a pattern between salary spending by division and where
the teams are located? Why might this be?
c.
How does a team’s salary spending impact the amount of wins it receives?
Is it possible for a team to have good performance but low salaries?
d.
Some teams have high total salary spending, but the median of their
salaries is fairly low. How could this be?
e.
Why might it be difficult for a relatively poor, low-spending team to be
able to increase its salary spending?
24. We wish to apply formatting to the presentation. Use your best judgment to
create a professional-looking presentation.
a.
Apply one design theme of your choice to all slides.
b.
Apply an animation of your choice to the Team Salaries by Championship
Type chart.
c.
Apply slide transitions of your choice to all of your slides.
Introduction to Computer Applications
West Virginia University
Page 8 of 9
Version 8.8
Modified 10/3/2015
EXAM REVIEW PROJECT INSTRUCTIONS
Final Exam Review
Baseball Salary Problem
d.
Edit the parent (top-most) slide master to add the batter.png image to
the bottom-left corner of your slides. Size the image to be 0.5-inches high
by 0.5-inches wide.
NOTE: Depending on the design theme used, the image may not appear
on title slides. This is acceptable as long as the image is correctly added
to the slide master.
e.
Add your name, an automatically-updating date, and the slide number to
the footer of all slides except the title slide.
Assignment Requirements
You must submit all four files (Microsoft Access, Microsoft Excel, Microsoft
PowerPoint, and Microsoft Word) for this assignment.
Grading Rubric
This assignment is worth 150 points and will be graded based upon the listed
components. Instructors may adjust point values as they deem appropriate.
Step 3
Steps 4a-c
Steps 5a-c
Step 6
Step 7
Steps 10a-c
Steps 11a-b
Steps 12a-c
Step 13
3 points
5 points total
6 points each
5 points
5 points
3 points total
7.5 points total
5 points total
7.5 points
Steps 14a-d
Step 16
Step 17
Step 18
Steps 19a-b
Steps 20a-b
Steps 22a-c
Steps 23a-e (pick 4 of 5)
Steps 24a-e
10 points total
7.5 points
5 points
5 points
10 points total
9.5 points total
9 points total
7.5 points each
5 points total
References
[1] “Current Major League Baseball franchises,” Wikipedia. Available:
https://en.wikipedia.org/w/index.php?title=Current_Major_League_Baseball_fra
nchises&oldid=675940837.
[2] “MLB Regular Season Standings,” ESPN.com. Available:
http://espn.go.com/mlb/standings.
[3] “World Series Winners, Stats, and Results and Postseason Series,” BaseballReference.com. Available: http://www.baseball-reference.com/postseason/.
Accessed: Oct. 03, 2015.
[4] “MLB Salaries,” USA TODAY. Available:
http://www.usatoday.com/sports/mlb/salaries/.
Introduction to Computer Applications
West Virginia University
Page 9 of 9
Version 8.8
Modified 10/3/2015
Download