Project#3 Using Loops and Reading
in File
1. Create pseudocode or
flowchart for the following problem
a. Pseudocode must be on a separate Word .doc or .docx.
b. Flowchart must be created in visio
or Lucidchart and saved to a PDF document.
2. Create and test the Python for the problem.
3. Create a folder called yourInitials_P3 and put
all files in the folder.
4. Zip the folder(name
should be yourInitials_P3.zip
5. Upload the one zipped file with the correct name
to the google drive in the projects file.
The RSC Bookstore is having a three-day sale during which the price of any unsold t-shirt drops 15 percent each day. For example, t-shirt that costs $15.00 on the first day costs 15 percent less, or $12.75, on the second day. On the third day, the same item is 15 percent less than $12.75, or $10.84. Design a python script that will read in a txt file with 5 different t-shirt prices. Output is the price of each item on each day, one through three. Print the original price and the price on the 2nd and 3rd days.
1. Read the file t-shirtPrices.txt into an array.
2. Use a loop to read each element and print the 3 prices.
Rubric:
1. 10 pts. - Pseudocode or flowchart (everything correct, variables follow through and logic) or comments in the script.
2. 10 pts. – Python coded and logic correct(uses array and loop) or if
12 pts. – runs correctly and output displayed correctly
3. 3 pts. – file zipped correctly with the correct name.