Linn–Benton Community College
`
Fall 2013 Python Programming Project
Total Possible Points: 20
You are allowed to work with others on this project but your answers and program code will be your own. There are two modes in the Python Integrated DeveLopment Environment (IDLE): interactive and script mode as demonstrated. These programs will be written in script mode and saved as an “executable” program (Your instructor has already shown you how to do this). You will turn in these executable programs in a folder labeled with your code name into the drop box labeled “PythonProgramProject.” The programs will be named prog1, prog2, etc. The # symbol in Python is used to delineate a comment. Use it to write your name at the top of each program (Ex: #Bob Student) and also to meet the requirements outlined for prog1.
Do as much of the assignment as possible and turn in your programs to the drop box in a folder (use your code name for your folder and your given name at the top of the text file). Turn in your solutions to the on-line drop box labeled “Python Programs” by Tuesday, November 29th not later than 5:00pm. Late submissions are not allowed and will receive a zero grade. Use the handout to help you with this project.
1. (5pts) Use the for iterative structure within Python to program a loop that generates a list of odd numbers from 1 to 33 inclusive. Use the # syntax to Label the three necessary elements for a repetitive structure that we discussed in class and is in your text.
2. (5pts) Use the while loop structure within Python to program a loop that generates a list of even numbers from 2 to 32 inclusive. Use the # syntax to Label the three necessary elements for a repetitive structure that we discussed in class and is in your text.
3. (5pts) Write the code to allow a user to input three integer numbers. The program will then produce the average of those three numbers. Design your program with text prompts to make clear to the user what they are to do and the results produced.
4. (5pts) Use the conditional statement (if, if..else, etc) to write a program that allow a user to input the answer to the question: “What is your Age?”
If the input is 16 or greater the program will generate the following text message: “You are eligible to take the Drivers License Exam.”
If the input is 15 the program will generate the following text message: “You are eligible to take the Drivers Permit Exam.”
For any other age the program will generate the following text message: “You can walk, run, ride a bike, skateboard, etc: BUT YOU CAN NOT DRIVE LEGALLY”
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- sample exam 1 michigan state university
- linn benton community college
- ecs 89l computer science for biologists
- conditionals and flow control week 2 github pages
- using python to harness windows slav0nic
- instructor manual for introduction to computing and
- laboratory manual for computer programming with python and
- sample test questions test 1 university of florida
- dom pmt hv control board functional test and procedure
Related searches
- why community college is bad
- why community college is better
- why community college is beneficial
- gadsden state community college application
- community college philosophy statement sample
- gadsden state community college anniston al
- gadsden state community college bookstore
- gadsden state community college employment
- gadsden state community college nursing
- community college philosophy statement
- why community college is good
- community college teaching statement