Assignment question 1

Assignment question 1 - Step 1: Is the month is January,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
START NO NO YES YES YES END Is the month February? The Month has 30 days. Is the month is April, June, September, November? The Month has 31 days. he month is January, March, May, July, August, October, or December? 1) Write a program to print out the number of days in the month given the name of the month. Assume February has 28 days. (You should not need to use 12 if – else if statements).
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Step 1: Is the month is January, March, May, July, August, October, or December? If No, go to Step 2. If yes, there are 31 days, end. Step 2: Is the month is April, June, September, November? If No, go to Step 3. If Yes, there are 30 days, end. Step 3: Is the month February? If No, go back to Step 1. If Yes, there are 28 days, go to Step 4. Step 4: End...
View Full Document

This note was uploaded on 04/02/2008 for the course COMP APPS 170 taught by Professor Gayatreeganu during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online