Loops and decisions
I want you to experiment with the structures for decisions and loops. You need to think up
examples that do not duplicate mine.
In at least one of the loops and one of the if programs, you should take in information at an HTML page
and pass the information to the cgi page.
Write a program or programs that illustrate the use of the loops we went over this week:
- use the do while
- use the while
- use the until
Write a program to solve these problems:
- Test for a state = MA and a salary > 60000 or a state = RI and a salary > 55000.
- Test for a state = MA and either a salary > 60000 or a pay per hour > 25.