cs1311 spring 2001 45.0 points due 09:00:00 AM Jan 19, 2001 Please make sure that ALL essays, short answers, definitions, and explanations are in your own words. NO credit will be given for answers taken directly from the book, lecture notes, etc... Turn in this assignment electronically using WebWork [p1] 5.0 points Explain the difference between a data type and a variable. Give an example (in english) of when each would be used, and illustrate your answers with pseudo-code declarations. [p2] 10.0 points For each of the following, write the appropriate variable or constant declaration: a. For holding the value of a course name; b. For holding the value of a student's letter grade; c. For holding the value of a student's quiz percentage; d. To specify whether a student passed or not; e. To specify the number of minutes in a year. [p3] 10.0 points Consider the following code fragment: ------------------------------------------------------- first, last isoftype String print( "Please enter your first and last names") read( first ) read( last ) if( (first = "David") OR (first = "Bill" ) ) then print( "a ") if( last = "Smith" ) then print( "tall " ) else print( "short " ) endif print( "lecturer" ) else if( last = "Jones" ) then print( "a Welshman" ) else print( "a dog owner" ) endif endif ------------------------------------------------------- What is the answer when the values of first and last entered are: a. Bill Sykes b. Bill Leahy c. Fred Jones d. David Smith e. David Jones [p4] 10.0 points Write an algorithm which will prompt the user for three numbers, read in the numbers, and print out their sum and average. Be sure to use good documentation in your answer. [p5] 10.0 points Write an algorithm which will ask the user to input 3 numbers, find the middle value (not the largest or smallest) of three numbers, and print the value back to the user.