Sunday, June 12, 2011

C++ : Defining Day in C++

Download

I. ALGORITHM
{enter the numbers 1 through 7, will decide today on what isappropriate}

DECLARATION
day_to: integer
day: string
DESCRIPTION
read (day_to)
case (day_to) of
1: day <- 'Monday'2: day <- 'Tuesday'3: day <- 'Wednesday'4: day <- 'Thursday'5: day <- 'Friday'6: day <- 'Saturday'7: day <- 'Sunday;else day <- 'No'end casewrite (days)I. ALGORITHM{enter the numbers 1 through 7, will decide today on what isappropriate}DECLARATIONday_to: integerday: stringDESCRIPTIONread (day_to)case (day_to) of1: day <- 'Monday'2: day <- 'Tuesday'3: day <- 'Wednesday'4: day <- 'Thursday'5: day <- 'Friday'6: day <- 'Saturday'7: day <- 'Sunday;else day <- 'No'end casewrite (days)

Download

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More