Graded Problem Set #2.2
Conditionals

Background

These problems should be completed on your own. Unlike the practice problems, where you are allowed, and even encouraged, to talk about the process with your classmates, these should be attempted on your own. If you have difficulty with these, please reach out to me for assistance or guidance.

These problems will be completed using an editor such as Thonny or IDLE and submitted to Autolab for grading.

 

Activities

Please try to make your program output look as much like the example as possible and verify it works with the example input provided. If you have difficulty finding the information or understanding how to approach the problem, you should contact me.

To complete this activity, you will need to create the following scripts:

 


Cond G1

Bargain. Bargain. Who wants a bargain?

Crazy Als Bargain Barn sells bangles and baubles for cheap. Everything is normally 99 cents each . However, if you buy more than 25 things he sells them to you for 94 cents each.

Write a Python script that conforms to the following


Cond G2

How Cloudy is it?

Stormy Whether is the meteoroligist at the local TV station. [Sure, you laugh at that made up name, but do you think the local CBS guy's REAL name is Joe WINTERS?]

Write a Python script that conforms to the following


Cond G3

Can I retire yet?

Ike Witt is tired of teaching. He wants to know if he can afford to retire. To draw IPERS (Iowa Public Employees Retirement System) retirement one must meet at least one of three conditions:

Write a Python script that conforms to the following

 


Cond G4

Is it a Leap Year?

Dr. Cal Lender was just reading up about leap years and he was amazed to find that everything he ever thought about leap year was WRONG. It doesn't actually automatically happen EVERY 4 years.

In fact:

 

Write a Python script that conforms to the following