Instructions
Requirements and Specifications
- Problem 1: Create a list that contains a shopping list only (do not include the the number of the item as part of list) from a super market
- Problem 2: Create a loop to print the shopping list numbered.
Assessment Rubric | Accomplished | Developing |
Beginning |
Points Available |
Points Earned |
Comments |
---|---|---|---|---|---|---|
Write the pseudocodes describing how to calculate for Problem 1. |
Student effectively completed the assignment. |
Student partially completed the assignment. |
Student failed to complete the assignment. |
20 |
20 |
|
Create a flowchart illustrating how to program Problem 1. |
Student effectively completed the assignment. |
Student partially completed the assignment. |
Student failed to complete the assignment. |
20 |
20 |
|
Write the pseudocodes describing how to calculate for Problem 2. |
Student effectively completed the assignment. |
Student partially completed the assignment. |
Student failed to complete the assignment. |
20 |
20 |
|
Create a flowchart illustrating how to program Problem 2. |
Student effectively completed the assignment. |
Student partially completed the assignment. |
Student failed to complete the assignment. |
20 |
20 |
|
Write appropriate comments on the symbols in the flowchart. |
Student effectively completed the assignment. |
Student partially completed the assignment. |
Student failed to complete the assignment. |
20 |
20 |
|
Total |
100 |
100 |
Submission Instructions:
************
Create pseudocode and flowchart (using Microsoft PowerPoint) for the problems above. Upload here for grading.
Make sure each submission is labeled with the following:
Your Name
Course Name, Section (example: ENTD200 B002 Spr15)
Instructor name
Week #
Date completed
Source Code
def main():
"""
Problem 1
"""
# Create a list with items
items = [
["Ground Beef (1 kg)", 3.99],
["Box of cookies", 0.99],
["Beer Six pack", 5.49],
["Bottle of wine", 9.99],
["Pepsi (1 L)", 0.49],
["Pineapple", 1.0],
["Shampoo", 0.59]
]
"""
Problem 2
# Now, display items with their ids, name and price
print("{:<10s} {:>20s} {:>25s}".format("Id", "Name", "Price ($)"))
for idx, item in enumerate(items):
print("{:<10d} {:>20s} {:>25.2f}".format(idx, item[0], item[1]))
if __name__ == '__main__':
main()