Question
Write a python program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program
Write a python program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program should allow the user to enter the total number of bottles returned for seven days (enforce a validation of your choice). The program will calculate the total number of bottles returned for the week and the amount paid out (the total returned times .10 cents). The output of the program should include the total number of bottles returned and the total paid out.
Feel free to create a more complex program as long as the basic features are there.
The python file should meet all of the following requirements:
A comment at the top with a brief description of the program, including Input List and Output List.
Full pseudocode should be included in the comments.
It must have input and output.
It must validate the user input. This means the user is not allowed to just enter any value. You must check the value, and ask the user to enter it again, and repeat this loop until the user enters a valid value.
Your program must use at least two types of loops in meaningful ways.
It should be organized into separate modules (one module for input, one module for output, and one module for each separate calculation or action that the program is to perform [that is, each module should be "cohesive" and should only do one thing]).
Use parameters and arguments to pass values into your modules (don't use global variables if you can).
The Python code should run correctly, and the logic should match your pseudocode.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started