Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Python Programs for Beginners #1

Open
Satishrajc opened this issue Jan 7, 2016 · 1 comment
Open

Simple Python Programs for Beginners #1

Satishrajc opened this issue Jan 7, 2016 · 1 comment

Comments

@Satishrajc
Copy link
Owner

to help myself.

@nmcginty
Copy link

nmcginty commented Feb 5, 2016

#Write a function perishable that has one parameter
#number of items in the store
#The function reads the bar code (integer)
#for each item and its price(float)
#All perishable items in the store have EVEN bar codes
#The function finds and returns the number of
#Perishable items that cost under 2 dollars

#Write main that reads the number of items in the store
#calls function perishable to find number of perishable
#items that cost under 2 dollars
#if there are no such items program prints error message
#Can randomly generate data

#Bonus functions also finds the average price for all
#perishable items and average for all non perishable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants