Here are some problems for you to try. Use them for exam preparation. Solve them using functions and arrays. A user friendly menu and documentation are important as well.
This style of question will be on the second half of the exam. To prepare for the first half, review the quiz preparation page.
1. You have been asked to write an application for the Sunny Day Full-Tackle Ultimate Frisbee team's season. Your application should ask for the total points in a game. There are 4 games in a season. Calculate the total points per season and the average points per game. Your menu should also allow the user to edit a score.
Your OUTPUT should look like this:
Game 1 10 pts
Game 2 11 pts
Game 3 7 pts
Game 4 3 pts
Total pts 31
Avg pts 7.75
2. You have been asked to write an appointment application for the Sunny Day Vet Clinic. Your application should be able to hold one appointment per quarter of the day, for 1 day only. Your application should be able to add, edit, delete and show all appointments. Please include a user friendly menu. Your customer would appreciate error checking.
Your OUTPUT should look like:
All Appointments
***************
Early Morning: Fluffy
Late Morning: Sam
Early Afternoon: Spot
Late Afternoon: King
MENU
*****
(A)dd
(E)dit
(D)elete
(S)how All Appointments
(H)elp
(Q)uit
3. You have been asked to write an application for the Sunny Day Grocery Store's Express Lane. Your application should be able to hold the cost of 8 items before tax. Your program will allow input for 1-8 items, and then calculate the sub total (total before tax), tax (13%), and the total (tax + sub-total). Your application will output a receipt for the customer. Please note that the sample output indicates that the customer only had 6 items.
Item 1 : $12.95
Item 2 : $ 0.87
Item 3 : $15.25
Item 4 : $ 8.67
Item 5 : $ 4.82
Item 6 : $ 9.95
Sub-Total : $ 52.51
Tax : $ 6.83
Total : $ 59.34
4. You have been asked to write an application for the Sunny Day Bakery. Your application should be able to hold the current quantity of muffins in the bakery's display window. The bakery makes 7 types of muffins every day. The day always starts off with 5 of each muffin type. Write a program which allows you to remove a muffin as it is purchased. Store and display the individual totals when the user wants to see them. Store the orders as they are purchased. Display the purchase sequence when the user wants to see it. Sample output:
Quantity Left:
Bran: 4
Chocolate: 3
Blueberry: 1
Carrot: 2
Lemon: 4
Banana: 1
Leftover-Supreme: 5
Purchase Sequence for Today:
Banana, Lemon, Bran, Banana, Banana, Chocolate, Banana, Blueberry, Carrot, Blueberry, Chocolate, Carrot, Blueberry, Blueberry, Carrot
5. Write an application that helps examine the spending patterns of a client at the Sunny Day Bank. The application should prompt the user for the amount spent on food, clothing, entertainment, and rent. The application should then displays a table showing the percentage of expenses in each category.
Sample Input:
Enter the amount spent last monthly on the following items:
Food: $250
Clothing: $250
Entertainment: $250
Rent: $1250
Sample Output:
Category Budget
Food 12.50 %
Clothing 12.50 %
Entertainment 12.50 %
Rent 62.50 %
6. The Sunny Day Cell Phone Company needs an application that helps track the time spent on a cell phone. The application should prompt the user for the amount of time spent on social media, a search engine, the camera, and texting. The application should then display a table showing the percentage of time spent in each category.
This is a SAMPLE input and output run:
Enter the amount of time spent today on your cell phone today:
Social Media: 100 minutes
Search: 25 minutes
Camera: 5 minutes
Texting: 35 minutes
Category Time Spent
******************************
Social Media 60%
Search 15%
Camera 0.03%
Texting 21%
Part A:
25 Multiple Choice (Knowledge 25%). Concept questions.
25 Multiple Choice (Thinking 25%). These are mini walk-throughs like you had in quiz week. Mini code puzzles.
Part B
One word problem. See above for multiple examples. Assessed with Communication (20%) and Application (30%) categories from the Programming Rubric.
If you can't see the document, please read: You Do Not Need Permission To View Any Documents.