cse-110-homework-4 - a , ( a , a ) ) (2 points) 3....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: Student ID # CSE 110 Homework 4 Due: Friday, December 3, at the beginning of class, on paper. This assignment is worth a total of 12 points. You must show all work in order to receive any credit for your solutions. 1. Complete the computeSalary() method below, which calculates and returns an employee's weekly pay based on the rules below. (2 points) a. The normal pay rate for an employee is $8.00 per hour. b. Employees are paid at their normal rate up to and including 40 hours. c. Hours past 40 but below 50 are paid at 150% of the normal rate. d. Hours past 50 are paid at 200% of the normal rate. double computeSalary (int hours) { } 2. Consider the grammar S ( L ) S a L L , S L S Draw a parse tree for the sentence (
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a , ( a , a ) ) (2 points) 3. Translate the following bit pattern into a numeric (dotted quad) IP address. Use your Web browser to ±nd out where this address leads. What Web site does this address correspond to? (2 points) 11011000 00110100 10111010 01111000 4. Assume that a computer ʼ s memory is broken up into the following partitions (in the order given), and that we have the following list of programs to be loaded: 100K Process Name Memory Needed P1 150K P2 400K 500K P3 75K P4 350K 200K 600K BrieFy describe how the ±irst-±it, Best-±it, and Worst-±it algorithms would load these programs into memory. (2 pts each)...
View Full Document

This note was uploaded on 12/06/2011 for the course CSE 110 taught by Professor Shaunakpawagi during the Fall '08 term at SUNY Stony Brook.

Page1 / 2

cse-110-homework-4 - a , ( a , a ) ) (2 points) 3....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online