{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assignment question 1

# Assignment question 1 - Step 1 Is the month is January...

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

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).
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

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern