Sheridan College
1
Faculty of Applied Science & Technology
School of Mechanical and Electrical Engineering Technology
COURSE: ENGR11833D- Computer Programming
LECTURER: Dr. Ameera Al-Karkhi
ASSIGNMENT PROJECT NUMBER: 1 ASSIGNMENT TYPE: (INDIVIDUAL)
ISSUE DATE: 1st October 2021
SUBMISSION DATE: 22nd October 2021
PENALTIES FOR LATE HAND-IN:
(after which maximum obtainable mark is 50%)
ABSOLUTE DEADLINE: 22nd October 2021
(after which mark is 0%)
PLAGIARISM: Students are reminded that plagiarism (copying) is a serious disciplinary matter. Checks are
egularly made for misuse of the web and other existing materials.
Sheridan College
2
Project 1- Computer Programming Course
Introduction
This project aims to help the student in practicing the fundamental of conditional statements (if/else and
switch statements) and loops by designing and implementing a menu-driven program. A menu-driven
program is a program that obtains input from a user by displaying a list of options (the menu) from which the
user indicates their choices.
The program has two levels of menus. At the top menu, your designed program asking the user to select a
specific decade: the 1980s, the 1990s, or the 2000s as shown in the attached tables. After the user picks one
option from 1, 2, 3 for the chosen decade or 4 to quit the program, another sub menu sends the program to
the next level of menus. The user then gets information about for example sports (specifically baseball is
selected in this application), the movies, or U.S. presidents (see the attached tables). Within each option
section of code, a conditional test should be performed to the user’s entry to present the information they
want to see.
Objectives:
â–ª To be familiar with different C statements and concepts, especially if and switch statements and
Loops.
â–ª To be familiar with syntax and structure of C-programming
â–ª To learn problem solving techniques using C-programming
Notes:
â–ª Please follow the general reporting style, solution conventions and submission instructions as
provided earlier.
â–ª Students are encouraged to complete the related programming labs and exercises prior to solving this
project.
â–ª You would need to use exit(1) in your program and would require you to include #include
.
Requirements:
â–ª Answer the following problem(s) in a project report document and upload to Slate. Include the design
(text or flowcharts), codes and output screenshots of your solutions in your submission.
Sheridan College
3
The 1980's (Baseball) The 1980's (The Movies) The 1980's (US Presidents)
World Series Champions of the
1980s:
1980: Philadelphia Phillies
1981: Los Angeles Dodgers
1982: St. Louis Cardinals
1983: Baltimore Orioles
1984: Detroit Tigers
1985: Kansas City Royals
1986: New York Mets
1987: Minnesota Twins
Oscar-Winning Movies in the
1980s:
1980: Ordinary People
1981: Chariots of Fire
1982: Gandhi
1983: Terms of Endearment
1984: Amadeus
1985: Out of Africa
1986: Platoon
1987: The Last Emperor
1988: Rain Man
1989: Driving Miss Daisy
US Presidents in the 1980s:
1980: Jimmy Carter
XXXXXXXXXX: Ronald Reagan
1989: George Bush
The 2000's (Baseball) The 2000's (The Movies) The 2000's (US Presidents)
World Series Champions of the
2000s:
2000: New York Yankees
2001: Arizona Diamondbacks
2002: Anaheim Angels
2003: Florida Marlins
2004: Boston Red Sox
2005: Chicago White Sox
2006: St. Louis Cardinals
2007: Boston Red Sox
2008: Philadelphia Phillies
2009: New York Yankees
Oscar-Winning Movies in the
2000s:
2000: Gladiator
2001: A Beautiful Mind
2002: Chicago
2003: The Lord of the Rings: The
Return of the King
2004: Million Dollar Baby
2005: Crash
2006: The Departed
2007: No Country for Old Men
2008: Slumdog Millionaire
2009: The Hurt Locker
US Presidents in the 2000s:
2000: Bill Clinton
XXXXXXXXXX: George Bush
2009: Ba
ack Obama
The 1990's (Baseball) The 1990's (The Movies) The 1990's (US Presidents)
World Series Champions of the
1990s:
1990: Cincinnati Reds
1991: Minnesota Twins
1992: Toronto Blue Jays
1993: Toronto Blue Jays
1994: No World Series
1995: Atlanta Braves
1996: New York Yankees
1997: Florida Marlins
1998: New York Yankees
1999: New York Yankees
Oscar-Winning Movies in the
1990s:
1990: Dances with Wolves
1991: The Silence of the Lambs
1992: Unforgiven
1993: Schindler's List
1996: The English Patient
1997: Titanic
1998: Shakespeare in Love
1999: American Beauty
US Presidents in the 1990s:
XXXXXXXXXX: George Bush
XXXXXXXXXX: Bill Clinton
Sheridan College
4
Ru
ic
Unsatisfactory (0-40%) Satisfactory (40-60%) Good (80%) Excellent (100%)
Requirements/
Co
ect run
50%
• Similar solution is
found on the internet
or submitted by
another student
• Completed less than
50% of the
equirements.
• Does not execute due
to e
ors.
• No testing has been
completed.
• Completed most of the
equirements.
• Executes without
e
ors.
• Some testing has been
completed, but did not
cover all cases.
• Completed all the
equirements, but
solution can be
improved
• Codes execute without
e
ors
• Thorough testing has
een completed; all
possible test inputs
were examined
• Executes without e
ors
• Excellent UI (representation
of input and output).
• Thorough testing has been
completed and output
from all test cases is
included.
Solution
efficiency
20%
• A difficult, non-easily-
comprehendible, or
inefficient solution.
• Prompts/hints/messag
es to user are
misleading or non-
existent.
• A logical solution that is
easy to follow but it is
not the most efficient
• Prompts/hints/message
s to user contain little
information, poor
design.
• Solution is efficient and
easy to follow
• Hints, and messages to
user are
understandable,
proper use of symbols
or spacing in output
• Solution is efficient, easy to
understand, and maintain
• Excellent prompts/ hints/
messages to user
• All aspects of solution were
well considered, nothing
to improve
Coding Standards
10%
• Poor use of indentation
• Disorganized code
• Poor use of variables
(global variables,
ambiguous naming)
• Indentation/White
spacing makes
program readable.
• Organized work.
• Good use of variables
• Good use of indentation
• Organized work.
• Good use of variables
(no global variables,
unambiguous naming)
• Excellent use of indentation
• Creatively organized work.
• Excellent use of variables
(no global variables,
unambiguous naming).
Clarity and
documentation
10%
• No code documentation
included.
• No comments on main
sections/subsections
of code
• Basic documentation
has been completed
• Purpose is noted for
each function/method
• Clearly documented.
• Specific purpose is
noted for each
function and control
structure.
• Clearly and effectively
documented including
descriptions of all
variables.
• Specific purpose is noted for
each section, control
structure, I/O code