ST1(4483) / ST1G(8995) Assignment 1
Assignment 1 submission due date: Week 8 Friday 5 pm
Project 1: Payroll Calculato
· Learning Objective: Using Basic Python Input Output and Arithmetic Statements
Problem Description:
Write a Python program that reads the following information from user, and prints a payroll statement:
Employee’s name (e.g., Smith)
Number of hours worked in a week (e.g., 10)
Hourly pay rate (e.g., 60.75)
ATO tax withholding rate (e.g., 30%)
Medicare Levy rate (e.g., 2%)
Here is an example of Program Output:
Output
Enter employee's name: John Smith
Enter number of hours worked in a week: 10
Enter hourly pay rate: 60.75
Enter ATO tax withholding rate: 0.30
Enter Medicare Levy rate: 0.02
Employee Name: Smith
Hours Worked: 10.0
Pay Rate: $60.75
Gross Pay: $607.50
Deductions:
ATO tax (30.0%): $182.25
Medicare Levy (2.0%): $12.15
Total Deduction12: $194.3
Net Pay: $413.20
End Output
Project 2: Restaurant Selecto
· Learning Objective: Using Python Conditional and Branching Statements
Problem Description:
You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at a local restaurant. You are not sure if any of them have dietary restrictions, but your restaurant choices are as follows:
· Joe’s Gourmet Burgers—Vegetarian: No, Vegan: No, Gluten-Free: No
· Main Street Pizza Company—Vegetarian: Yes, Vegan: No, Gluten-Free: Yes
· Corner Café—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes
· Mama’s Fine Italian—Vegetarian: Yes, Vegan: No, Gluten-Free: No
· The Chef’s Kitchen—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes
Write a Python program that asks whether any members of your party are vegetarian, vegan, or gluten-free, to which then displays only the restaurants to which you may take the group.
Here is an example of the program’s output:
Here is another example of the program’s output:
Project 3: Population Tracke
· Learning Objective: Using Python Repetition and Loop Statements
Problem Description
Write a Python program that predicts the approximate size of a population of organisms.
The application should use text boxes to allow the user to enter the following information:
· starting number of organisms,
· the average daily population increase (as a percentage), and
· the number of days the organisms will be left to multiply.
For example, assume the user enters the following values:
Starting number of organisms: 2
Average daily increase: 30%
Number of days to multiply: 10
The program should display the following table of data
Project 4: Password Checke
· Learning Objective: Using Python Methods and Functions
Problem Description:
Some Websites impose certain rules for passwords, involving use of certain numbers and special characters.
Write a Python program that prompts the user to enter a password and displays "valid password" if the rule is follows rules of the company, or "invalid password" otherwise.
Write a method or a function for implementing the password checking rules for the method/function as follows:
· A password must have at least eight characters.
· A password must consist of only letters and digits.
· A password must contain at least two digits.
Sample 1
Enter a string for password: wewew43x
valid password
Sample 2
Enter a string for password: 343a
invalid password
Project 5: Turtle Graphics
· Objective: Using Turtle Graphics Class and its Methods
Problem Description
Write a program that displays a STOP sign, as shown in Figure below. The hexagon needs to be in red and the text needs to be in white colour.
Submission Requirements for all projects
Each Project needs to include following project deliverables:
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
Submit the following items for each Project:
1. Compile, Run, and Submit Google Colab Notebook or PyCharm project or Python files (you must submit this part, regardless of whether your code is working, not working, is complete or incomplete, co
ect, or inco
ect).
2. Include the Project deliverables (Problem Description, Analysis, Algorithm Design, Code, Testing, and working application screen shots in a Word file and submit it online, in Canvas Assignment 1 submission link before the due date (Week 8 Friday 5 pm).
ST1(4483) / ST1G(8995) Assignment 1 Marking Guide
Assignment 1 submission due date: Week 8 Friday 5 pm
Student Name:
Unit: 4483/8995
Student ID:
Assignment
Project ID
Assessment Criteria
Maximum
Marks
Mark
Obtained
Comments
Project 1
Payroll
Calculato
(20 Marks)
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
3
3
8
3
3
Project 2
Restaurant Selecto
(20 Marks)
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
3
3
8
3
3
Project 3
Population
Tracke
(20 Marks)
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
3
3
8
3
3
Project 4
Password Checke
(20 Marks)
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
3
3
8
3
3
Project 5
Turtle Graphics
Stop Sign
Display
(20 Marks)
1. Analysis:(Describe the problem including input and output in your own words.)
2. Algorithm Design: (Describe the major steps for designing the algorithm, for this problem solving.)
3. Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
4. Test Plan: (Describe how you test this program)
5. Application Testing screenshots:
3
3
8
3
3
Late Submission Penalty
Total Marks
100
Further Comments: