i want to pseudo code for this problem! plz h

November 8, 2011 at 09:36:58
Specs: Windows XP
pseudo code that requests an integer value representing the month of the year and gives the number of days in that month

See More: i want to pseudo code for this problem! plz h

Report •


#1
November 8, 2011 at 14:31:15
@echo off
:begining
cls
echo WELCOME TO THE DISPLAY THE DAYS IN THE MONTH SYSTEM
ECHO PLEASE TYPE 0 to END THIS PROGRAM
set /p monthe=please enter a 2 didget month
set /a monthes=%monthe%
if %monthes% EQU 0 GOTO REALLYTHEEND
if %monthes% EQU 1 goto section1
if %monthes% EQU 2 goto section2
if %monthes% EQU 3 goto section3
if %monthes% EQU 4 goto section4
if %monthes% EQU 5 goto section5
if %monthes% EQU 6 goto section6
if %monthes% EQU 7 goto section7
if %monthes% EQU 8 goto section8
if %monthes% EQU 9 goto section9
if %monthes% EQU 10 goto section10
if %monthes% EQU 11 goto section11
if %monthes% EQU 12 goto section12
GOTO beginging
:section1
ECHO JANUARY HAS 31 DAYS
PAUSE
goto ending
:section2
ECHO FEBUARY HAS 28 DAYS UNLESS IT IS A LEAP YEAR
PAUSE
goto ending
:section3
ECHO MARCH HAS 31 DAYS
PAUSE
goto ending
:section4
ECHO APRIL HAS 30 DAYS
PAUSE
goto ending
:section5
ECHO MAY HAS 31 DAYS
PAUSE
goto ending
:section6
ECHO JUNE HAS 30 DAYS
PAUSE
goto ending
:section7
ECHO JULY HAS 31 DAYS
PAUSE
goto ending
:section8
ECHO AUGUST HAS 31 DAYS
PAUSE
goto ending
:section9
ECHO SEPTEMBER HAS 30 DAYS
PAUSE
goto ending
:section10
ECHO OCTOBER HAS 31 DAYS
PAUSE
goto ending
:section11
ECHO NOVEMBER HAS 30 DAYS
PAUSE
goto ending
:section12
ECHO DECEMBER HAS 31 DAYS
PAUSE
goto ending

pause


:ending
goto begining

:REALLYTHEEND
ECHO THANKYOU FOR CHOOSING YOUR MONTHES HAVE A NICE DAY
PAUSE

mike


Report •
Related Solutions


Ask Question