CMPS 173, Fall 2008, Assignment 18, Final Exam (550 points)
- Fun data that we need: (25)
- Name,
- W number
- Favorite Christmas movie
Part 1: Excel (120 points)
Use Excel to answer the following questions. Use Blackboard to send me your program when you are complete.
- Make a plot of the equation Y = x2 + 5x (20)
- Start the X values at –10, end them at 10
- Use the X/Y Scatter chart to graphically display the data, make sure to include a chart title and label the x and y axis.
- Create a millimeters to inches conversion table. (20)
- Start the table at 0 millimeters and end it at 100 millimeters, go in increments of 20 millimeters.
- Use the equation: inches = millimeters/25.4
- Make a pie chart with the following data (label it): (10)
Weekly Food Intake of My Cat
Item / Ounces
Cat food / 70
Bugs / 10
Pieces of the couch / 20
Wife’s Jewelry / 5
His Hair / 20
My Eyebrows / 5
- You took two versions of a quiz that will be averaged together. Given that you scored a 22 on version 1 and 99 on version two, answer the following questions: (20)
- What it the average score of the two versions of the quiz?
- Using a weighted average, what is the average if the second quiz is worth 85%.
- Using the following precipitation data taken from measurements at a WKIKME weather station in New Orleans, answer the questions below. (50)
November. January
0 0
1 0
1.5 0
1 0
0 0
0 0
0 .1
0 .1
.5 .5
0 1
.1 2
0 6
0 1
0 1
0 .5
0 0
0 0
.1 0
1 0
2 0
2 1
2.3 6
1 1
1 1
0 .5
0 .1
.1 .1
0 .1
0 0
0 0
- Which month has more rain on a daily average?
- Make a line plot of the precipiation for each month.
- Find the following statistical measures for each data set:
- Median
- Mode/Modes
- In which month is the precipitation more consistently around the average precipitation for that month?
- What is your proof?
- What are the outliers in:
- November?
- January?
Part 2: Fundamentals of Computing (130 points)
- Work the following math problems (10)
- (24 * 16) / (1240 * 42) =
- 3.141592650 * 2-1 * 2 =
- 111 =
- What are the steps you do in order to take the inverse of a binary number (what are the steps in the 2’s complement process). (10)
- Convert the following hexadecimal numbers to decimal. (20)
- 10a
- 10
- 30
- Convert the following unsigned binary numbers to hex and then to decimal. (40)
- 1100
- 0010 1001
- 0001 0001 1010
- Using 4 bit 2’s complement binary numbers count from -8 to 7. (10)
- Work the following 5 bit two’s complement math problems. (40)
- 00111 + 01000
- 01100 – 00101
- 00001 - 11111
- 11111 + 01011
- 01001 – 00111
Part 3: Computer System Basics (165 points)
- Given the circuit below: (30)
- Write an equation for X.
- If A = 1, B = 0 and C = 1, what is X?
- If A = 1, B = 1, and C = 1, what is X?
- Given that we are using EVEN parity with 4 data bits, fill in the blanks in the table. (15)
Parity Bit / Data Bits
1 / 0 / 0 / 0
0 / 1 / 0 / 0
1 / 0 / 1 / 0
- What is the difference between error checking that uses parity bits and error checking that uses a checksum. (10)
- Draw circuits for the following equations: (30)
- X = NOT((A OR B) OR (NOT(A AND C)))
- X = (A AND B) OR (NOT (C AND D))
- X = NOT(NOT(A) OR NOT(B))
- Define the following: (20)
- Bit
- Byte
- What are the 4 types of functions that a CPU can execute? (20)
- Given that A = 0; B = 0; and C = 1, find the value of X in the following equations: (20)
- X = NOT(A AND B) AND C
- X = (A AND B) AND (NOT(C))
- X = NOT((A OR B) AND (NOT(C)))
- If computer A sends the data in the table below to computer B: (20)
- Which packets need to be resent?
- What is the error free percentage of data transmitted?
Packet # / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10
8 / 12 / 8 / 14 / 2 / 3 / 88 / 7 / 18 / 60
10 / 19 / 13 / 9 / 1 / 1 / 12 / 11 / 43 / 46
checksum / 18 / 31 / 21 / 23 / 21 / 13 / 100 / 18 / 62 / 106
Part 4: Programming in BASIC (110 points)
- Write an IF statement that prints out the number x it is between 40 and 50, if the number is not in this range print a message to the user letting them know the number is out of range. (20)
- What is the purpose of the DO …… LOOP UNTIL statement? (10)
- How is the DO …… LOOP UNTIL statement different from the FOR …NEXT statement? (10)
- Write a series of statements that calculates the average of the cubes of the numbers between 10 and 50. (30)
- Write a piece of code that uses a loop to: (40)
- Requests a number from the user
- Tells the user what number they entered.
- Prints out the cube of that number.
- Stops asking for numbers if the user enters a number that is not in the 0 to 100 range.
- Tells the user how many numbers they entered.
2