Conditional, If...Then, yes/no

This assignment tests your ability to write programs using If...Then statements. Begin by carefully studying our notes on If...Then statements and If...Then...Else statements.

When you fully understand those notes, write a program that does exactly what this greeting program does. Test it with a variety of inputs like "yes," "Yes," "no," "No," "No way," "sure," "yep, " and "sure am" to be sure your program behaves the same as mine. (It treats all inputs that start with n or N as negative).

You might find it helpful to make a flowchart of the program before writing it.

Turn in a screen shot of the program executing and its listing.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.