COSC 146
Can You Do The Following (or......what might I need to know for a quiz):


Can you write a complete perl program that:

1) Asks the user to enter two numbers and figures out the larger of the two numbers and prints it out on the screen

2) Asks the user to enter three numbers and figures out the largest of the three numbers and prints it out on the screen

3) Repeat question 2 , except using names (strings)

4) Calculates the sum 2+4+6+.............+100

5) Calculates the sum  5+10+15+20+.........+505

6) Given an average, assign a grade as follows:

                average >= 90         'A'
                80<=average<90     'B'
                70<=average<80     'C'
                 average<70             'D'



Other things:

6) Convert the binary number 101011 to decimal

7) Do you understand the difference between eq and == ?

8) Can you identify syntax errors in a program ?