
-----------------------------------
goblue21
Wed May 16, 2007 7:48 am

help with selection exercises
-----------------------------------
Please i need help for my computer programming class and our teacher never taught us this stuff heres the question:

Write a program to divide a class of students in two groups: those whose last names begin with A to H and those that begin with I to Z. Ask a person to enter their last name and the output a message indicating which group they are in. Repeat for each student.

any tips or code would be greatly appreciated. :D

-----------------------------------
goblue21
Wed May 16, 2007 8:31 am

Re: help with selection exercises
-----------------------------------
Alright i made some code and it seems to only be working for lower case and im trying to get upper case to work can someone please help.

var firstname, lastname : string


put "type your first name"
get firstname
delay (100)
put "type you last name"
get lastname
delay (100)

if lastname = "H" then
    put "you are in group two"
end if

-----------------------------------
DIIST
Wed May 16, 2007 5:21 pm

Re: help with selection exercises
-----------------------------------

if (lastname >= "a" and lastname = "A" and lastname 