Ask Computer Engineering Expert

Part 1-

a. What is the "brains" of the computer?

b. What is the largest non-stationary component inside a hard drive?

c. How many distinct patterns can be stored in (answer 3 numbers):

1 bit?

2 bits?

3 bits?

d. Sally has written 100 KB poetry. About how many bits is that?

e. Alice takes 10 images every day, 2.1 MB apiece. About how much space does 100 days of images take up in GB?

f. Bob has 87 GB of video of his 1 year old learning to walk. If he deletes 99% of it (saving 1%), about how much is left in MB?

Part 2-

a. Consider an ethernet LAN as shown in lecture. To receive data each computer listens for what sort of packet on the wire?

b. Circle any of the following which are invalid IP addresses:

1.200.3.4

5.254.155.55

259.200.1.1

200.3.400.5

None of the above are invalid

c. The first router to get a packet computes the end-to-end route for that packet. (true or false):

d. Give an example of a domain name:

Part 3-

a. Suppose Alice and Bob work at Stanford and use symmetric AES encryption to exchange encrypted .xlsx spreadsheet files containing sensitive data. Bob gets an encrypted file from Alice in email, decrypts it, and starts working with it. What are two security features provided by the AES encryption in this scenario:

b. Suppose you are looking at an ebay login page and you are trying to decide if it is legitimate vs. a phishing page. How do you check?

c. How is a zombie DDOS attack on www.example.com implemented by a bad guy (one sentence):

d. Suppose you have a pub/priv key pair and the pub key has been made public. How do you sign a document?

Part 4-

Write code to change every pixel in the image like this: multiply the red value by 10 and change the green value to be the half the blue value.

image = new SimpleImage("something.jpg");
for (pixel: image) {
// your code here

Part 5-

For this problem image and back that are images that are the same size. Change the blue value in every pixel in image to be the same as the blue value from the pixel at 0,0 in the back image.
image = new SimpleImage("image.jpg");
back = new SimpleImage("back.jpg");
for (pixel: image) {
// your code here

Part 6-

Write code to change the image like this: for every pixel where both the green and blue values are over 100, change the pixel green and blue values to 0. However, only do this change for pixels in a 100 pixel wide stripe running down the left side of the image. Pixels outside the stripe should not be changed.
image = new SimpleImage("something.jpg");

for (pixel: image) {
// your code here

Part 7-

Suppose we are doing experiments with a purple background for bluescreening. Write code that detects the background of the image by checking for pixels where both the blue and red values are greater than the average. Rather than copying over pixels from some other image, just set the detected background pixels to be pure black.
image = new SimpleImage("something.jpg");

for (pixel: image) {
// your code here

Part 8-

For this problem there are 2 images, called image and back that are the same size. Change the red/green/blue values in every pixel in image by adding 10% of the corresponding value from the pixel at the same x/y in the back image.
image = new SimpleImage("image.jpg");
back = new SimpleImage("back.jpg");
for (pixel: image) {
// your code here

Part 9-

For this problem, image is "bird-blue.jpg" showing a bird in front of a blue background, and back shows "stanford.jpg". Write code to detect the bird using the avg technique, and blend the pixels of the bird into the stanford image, dividing each bird pixel value by 5.
image = new SimpleImage("bird-blue.jpg");
back = new SimpleImage("stanford.jpg");
back.setSameSize(image);

for (pixel: image) {
// your code here

Part 10-

Write code to print all the rows (boy or girl) with rank over 900.
table = new SimpleTable("baby-2010.csv");
for (row: table) {

Part 11-

Do more boy names end in "i" or "t"? Write code to count both types of boy names and report the counts like this:
i: 6
t: 2
table = new SimpleTable("baby-2010.csv");
for (row: table) {

Part 12-

Write code that prints all of the boy rows and also the rows where the rank is less than 10 regardless of gender. Print the rows in the same order as they appear in the table (rank 1, rank 2, rank 3 .., rank 1000), printing each row once.
table = new SimpleTable("baby-2010.csv");
for (row: table) {

Part 13-

This problem uses fields "gender", "tv", and "soda" in the survey database. Suppose that the survey included a "gender" field set to either "boy" or "girl". Consider the people who answered "Modern Family" as their favorite TV show. Among them, count the boys and girls who answered "Coke" as their favorite soda, and report boy/girl counts separately like this:
boys: 6
girls: 8
table = new SimpleTable("survey-2012.csv");
table.convertToLowerCase();

for (row: table) {

Part 14-

For this problem, you have the following spreadsheet with raw data associating un-explained numbers with different types of food.

a. What exactly goes in the cell immediately below the Healthy numbers to compute their total?

b. What exactly goes in the cell immediately below the Awesome numbers to compute their total?

c. "Mystery points" is defined as double the Healthy total plus three times the Awesome total. What exactly goes in the cell to the right of "Mystery points:" to compute it?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91378938
  • Price:- $100

Guranteed 48 Hours Delivery, In Price:- $100

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As