CSC 171 - Introduction to Computer Programming

Lab Assignment #5 - Non-binary Decisions Non-binary Decisions

Due Thursday, September 14, 2023

We can create non-binary decisions by using if-elif-else

We can also specify this pseudocode:

  
	IF x < 0
	    THEN print “Negative”
	ELSE IF x > 0
	    THEN Print “Positive”
	ELSE  Print “Zero”
  

You are going to write a program where you will be asked to enter a weekly salary:

Write pseudocode for the program, draw a flow chart for the program and then write the program.

[Back to the Lab Assignment List]