do-case Programs

1) WAP to Print the day.
clear
input”Enter the Number of the Day ” to ch
do case
case ch=1
?”Sunday”
case ch=2
?”Monday”
case ch=3
?”Tuesday”
case ch=4
?”Wednesday”
case ch=5
?”Thursday”
case ch=6
?”Friday”
case ch=7
?”Saturday”
otherwise
?”Wrong Choice”
endcase

2) WAP to Print the Month.
clear
input”Enter the Number of the Day ” to ch
do case
case ch=1
?”January”
case ch=2
?”February”
case ch=3
?”March”                 
case ch=4
?”April”
case ch=5
?”May”
case ch=6
?”June”
case ch=7
?”July”
case ch=8
?”August”
case ch=9
?”September”
case ch=10
?”October”
case ch=11
?”November”
case ch=12
?”December”
otherwise
?”Wrong Choice”
endcase

3) WAP to print the Sum, Subtraction, Multiply, Division of two numbers.
clear
input”Enter A” to a
input”Enter B” to b

input”Enter Choice ” to ch
do case

case ch=1
c=a+b
?”Sum is”,c

case ch=2 
c=a-b
?”Subtraction is”,c

case ch=3
c=a*b
?”Multiply is”,c

case ch=4
c=a/b
?”Division is”,c

otherwise
?”Wrong Choice”
endcase

4) WAP to Print the entered alphabet is Vowel or Not Vowel
clear
accept”Enter the Number of the Day ” to ch
do case
case ch=’a’
?”Vowel”
case ch=’A’
?”Vowel”
case ch=’e’
?”Vowel”
case ch=’E’
?”Vowel”
case ch=’i’
?”Vowel”
case ch=’I’
?”Vowel”
case ch=’o’
?”Vowel”
case ch=’O’
?”Vowel”
case ch=’u’
?”Vowel”
case ch=’U’
?”Vowel”
otherwise
?”Not Vowel"
endcase

5) WAP to modify the database with the help of the program.
clear
?”PRESS 1 TO DISPLAY LIST”
?”PRESS 2 TO ADD MORE RECORDS”
?”PRESS 3 TO DELETE RECORDS”
?”PRESS 4 TO RECALL RECORDS ALL RECORDS”
?”PRESS 5 TO DELETE ONE RECORD PERMANENTLY”
input”Enter Choice” to ch
do case
case ch=1
list
case ch=2
append
case ch=3
delete all
list
case ch=4
recall all
list
case ch=5
input”Enter Record to be Deleted” to n
goto n
delete
pack
list
otherwise 
?”Wrong Choice”
endcase