CSIS 201 Assignments


Generally, work will be submitted electronically by:

Unless otherwise specified, programs will be submitted as source code (e.g., p1.py) and written assignments will be submitted in PDF format. For programs consisting of multiple files, programs will be submitted as a compressed archive (e.g., p8.zip or p8.tar.gz). No handwritten work will be accepted.

Ensure that you comply with the following for each file of your source code or PDF:

See hello.py for a trivial example of a program in the proper format.

New assignments are added as the semester progresses. Check back often.

Assigned Due Date Assignment
8/26 8/30 @
11:55 PM
Assignment: Algorithmic paper (20 points)
Write a one-page paper detailing the steps required to tie a shoe or button a dress shirt. Submit your PDF on the FoxTALE site above.
8/26 8/30 @
11:59 PM
Assignment: Ch 1 Reading (55 points)
Do the Chapter 1 Participation (orange) activities.
8/26 9/5 @
11:59 PM
Assignment: Ch 1 Coding (14 points)
Do the Chapter 1 Challenge (blue) activities.
8/26 9/6 @
11:59 PM
Assignment: Ch 2 Reading (94 points)
Do the Chapter 2 Participation (orange) activities.
8/31 9/7 @
11:55 PM
Program 1 (40 points)
Write a program that displays the following information:
  • Your name
  • Your address, with city, state, and zipcode
  • Your phone number
  • Your major
8/31 9/7 @
11:55 PM
Program 2 (40 points)
Write a program to determine and display the annual profit of a company (total sales * profit percentage). The user will input both total sales and annual profit percentage. The user will enter details in the following order:
  • Total sales (1 float)
  • Profit percentage (1 float, e.g., 0.35 to indicate 35%)
9/3 9/11 @
11:59 PM
Assignment: Ch 2 Coding (19 points)
Do the Chapter 2 Challenge (blue) activities.
9/3 9/13 @
11:59 PM
Assignment: Ch 3 Reading (66 points)
Do the Chapter 3 Participation (orange) activities.
9/17 9/17 Lab 1: Receipt lab (40 points)
Write a program that accepts three item names, along with corresponding prices, and displays a sales receipt. Use this example as a guideline for your receipt output. You may find Python's string format specification mini-language helpful for formatting your output using the str.format() method.
9/10 9/18 @
11:59 PM
Assignment: Ch 3 Coding (25 points)
Do the Chapter 3 Challenge (blue) activities.
9/7 9/19 @
11:55 PM
Program 3 (40 points)
A cookies recipe calls for the following ingredients:
  • 1.5 cups of sugar
  • 1 cup of butter
  • 2.75 cups of flour
The recipe produces 48 cookies with these ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies. The user will enter the number of cookies desired (1 integer).
9/7 9/19 @
11:55 PM
Program 4 (40 points)
Write a program that asks the user for the number females and the number of males registered in a class. The program should then display the percentages of females and males in the class. The user will enter details in the following order:
  • Number of females (1 integer)
  • Number of males (1 integer)
Hint: Suppose there are 12 females and 8 males in a class. There are 20 students total in the class. The percentage of females can be calculated as 12/20 = 0.6, or 60%. The percentage of males can be calculated as 8/20 = 0.4, or 40%.
9/10 9/21 @
11:59 PM
Assignment: Ch 4 Reading (116 points)
Do the Chapter 4 Participation (orange) activities.
9/10 10/2 @
11:59 PM
Assignment: Ch 4 Coding (33 points)
Do the Chapter 4 Challenge (blue) activities.
9/25 10/11 @
11:55 PM
Program 5: Hot Dot Cookout Calculator (60 points)
Assume that hot dogs come in packages of 10, and hot dog buns come in packages of 8. Write a program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should display the following details, in the following order: The minimum number of packages of hot dogs required, the minimum number of packages of hot dogs buns required, the number of hot dogs that will be left over, and the number of hot dog buns that will be left over. The user will enter details in the following order:
  • Total attendance (1 integer)
  • Hot dogs per person (1 integer)
9/25 10/11 @
11:55 PM
Program 6: Change Maker Program (60 points)
Write a program that accepts a sales amount (in dollars) and an amount tendered (in dollars) and then displays to the screen the change (in dollars) along with only the correct denominations of money returned. Your output needs to be grammatically correct (e.g., "2 quarters", "1 quarter").

A sample run is listed below. The highlighted text indicates user input.

 Welcome to my Change Program
Enter the sales price (xx.xx): $3.46
Enter the amount tendered (xx.xx): $5.00

Your change is: $1.54
You will receive:
1 - Dollar Bill
2 - Quarters
4 - Pennies
Implementation notes:
  • You may be off by a penny due to floating point precision errors...don't worry about that for this program.
  • Using integer division or modular division on floats loses lots of grade points! Operators // and % may only be used on integers, regardless what Python actually allows.
  • You must use only these denominations when making change: penny, nickel, dime, quarter, one dollar bill, five dollar bill, ten dollar bill, twenty dollar bill, fifty dollar bill, and one hundred dollar bill.
9/25 10/8 @
11:59 PM
Assignment: Ch 5 Reading (65 points)
Do the Chapter 5 Participation (orange) activities.
9/25 10/16 @
11:59 PM
Assignment: Ch 5 Coding (18 points)
Do the Chapter 5 Challenge (blue) activities.
10/2 10/22 CodingBat 1: Logic-1 (50 points)
Complete any five (5) problems from the Logic-1 section on CodingBat. Ensure you have properly set the "Teacher Share" preference to report your progress to your instructor.
10/8 10/19 @
11:55 PM
Program 7: Budget Analysis (100 points)
Write a program that asks the user to enter the amount that they budgeted for the month. A loop should then prompt the user to enter there expenses, one at a time and to enter 0 to quit. When the loop finishes, the program should display the the amount of budget left. (a negative number indicates the user is over budget and a positive number indicates the user is under budget) The program should prompt the user to run the program again. The user will enter details in the following order:
  • Total amount budgeted (1 float)
  • Expense amounts (unknown number of floats, 0 to quit)
  • "Run again?" response (1 string, Y for "yes, run again" and N for "no, quit")
Notes:
  • If Y is entered to run again, the same input types are entered for each additional run.
  • You must validate inputs and reject negative monetary amounts. Make the user re-enter a valid amount.
10/8 10/19 @
11:55 PM
Program 8: Distance Traveled (100 points)
The distance a vehicle travels can be calculated as follows: distance = speed x time For example, if a train travels 40 miles per hour for three hours, the distance traveled is 120 miles. Write a program that asks the user for the speed of a vehicle (in miles per hour) and the number hours it has traveled. It should then use a loop to display the distance the vehicle has traveled for each hour of that time period. For example: The highlighted text indicates user input.

 Welcome to my Distance Calculator
Enter the vehicle speed: 40
Enter the hours traveled: 3

Hour Distance
----------------------
1 40
2 80
3 120
Do you want to run again? (Y/N): N
The program will prompt the user to run the program again after each run. The user will enter details in the following order:
  • Vehicle speed in MPH (1 integer)
  • Number of whole hours traveled (1 integer)
  • "Run again?" response (1 string, Y for "yes, run again" and N for "no, quit")
Notes:
  • If Y is entered to run again, the same input types are entered for each additional run.
  • You must validate inputs and reject negative speed and negative hours traveled. Require user to re-enter any bad input.
10/8 10/22 @
11:59 PM
Assignment: Ch 6 Reading (58 points)
Do the Chapter 6 Participation (orange) activities.
10/8 10/30 @
11:59 PM
Assignment: Ch 6 Coding (20 points)
Do the Chapter 6 Challenge (blue) activities.

This page was last modified on 2018-10-08 at 20:34:26.

George Fox University · 414 N Meridian St · Newberg, Oregon 97132 · 503-538-8383
Copyright © 2015–2018 George Fox University. All rights reserved.
Your IP: 54.161.116.225