Questions
Data Network Design & Evaluation 1. User Requirements: Name three user requirements and explain them briefly....

Data Network Design & Evaluation

1. User Requirements: Name three user requirements and explain them briefly.

2. Application Requirements: Describe the different types of applications based on their performance requirements.

In: Computer Science

Complete the java program. /* Note: Do not add any additional methods, attributes. Do not modify...

Complete the java program.

/*

Note: Do not add any additional methods, attributes.

Do not modify the given part of the program.

Run your program against the provided Homework2Driver.java for

requirements.

*/

/*

Hint: This Queue implementation will always dequeue from the first element of

the array i.e, elements[0]. Therefore, remember to shift all elements

toward front of the queue after each dequeue.

*/

public class QueueArray<T> {

public static int CAPACITY = 100;

private final T[] elements;

private int rearIndex = -1;

public QueueArray() {

}

public QueueArray(int size) {

}

public T dequeue() {

}

public void enqueue(T info) {

}

public boolean isEmpty() {

}

public boolean isFull() {

}

public int size() {

}

}

Run this program ( Homework2Driver.java ) to test.

Comment out sections that you have not finished, so it does not

interfere your troubleshooting.

For example, commenting out parts 2 and 3 while testing part 1.

public class Homework2Driver {

public static void main(String [] args) {

int score = 0;

// Part 1: Array based Queue - QueueArray.java

QueueArray myQueueArray = new QueueArray(2);

myQueueArray.dequeue();

if (myQueueArray.isEmpty() && !myQueueArray.isFull() && myQueueArray.size()

== 0)

score += 6;

myQueueArray.enqueue("Orange");

myQueueArray.enqueue("Mango");

myQueueArray.enqueue("Guava"); // Note: with Queue size 2, this won't get

into the queue.

if (myQueueArray.isFull())

score += 6;

if (myQueueArray.dequeue().equals("Orange") && myQueueArray.size() == 1

&& !myQueueArray.isEmpty())

score += 6;

if (myQueueArray.dequeue().equals("Mango") && myQueueArray.size() == 0 &&

myQueueArray.isEmpty())

score += 6;

// Part 2: Linked List based Queue - QueueLinkedList.java

QueueLinkedList myQueueList = new QueueLinkedList();

myQueueList.dequeue();

if (myQueueList.isEmpty() && myQueueList.size() == 0)

score += 6;

myQueueList.enqueue("Apple");

myQueueList.dequeue();

myQueueList.enqueue("Orange");

myQueueList.enqueue("Lemon");

if (myQueueList.dequeue().equals("Orange") && myQueueList.size() == 1 && !

myQueueList.isEmpty())

score += 6;

if (myQueueList.dequeue().equals("Lemon") && myQueueList.size() == 0 &&

myQueueList.isEmpty())

score += 6;

// Part 3: Linked List based Stack - StackLinkedList.java

StackLinkedList myStack = new StackLinkedList();

myStack.pop();

if (myStack.isEmpty() && myStack.size() == 0)

score += 6;

myStack.push("Peach");

if (!myStack.isEmpty() && myStack.size() == 1)

score += 6;

myStack.pop();

myStack.push("Pineapple");

if (myStack.pop().equals("Pineapple") && myStack.isEmpty() &&

myStack.size() == 0)

score += 6;

System.out.printf("your score is %d/60 \n", score);

}

}

In: Computer Science

Problem 11-5 Sensitivity Analysis and Break-Even [LO1, 3] We are evaluating a project that costs $822,600,...

Problem 11-5 Sensitivity Analysis and Break-Even [LO1, 3]

We are evaluating a project that costs $822,600, has a nine-year life, and has no salvage value. Assume that depreciation is straight-line to zero over the life of the project. Sales are projected at 75,000 units per year. Price per unit is $53, variable cost per unit is $37, and fixed costs are $755,000 per year. The tax rate is 22 percent, and we require a return of 9 percent on this project.

   

a-1.

Calculate the accounting break-even point. (Do not round intermediate calculations and round your answer to the nearest whole number, e.g., 32.)

a-2. What is the degree of operating leverage at the accounting break-even point? (Do not round intermediate calculations and round your answer to 3 decimal places, e.g., 32.161.)
b-1. Calculate the base-case cash flow and NPV. (Do not round intermediate calculations. Round your cash flow answer to the nearest whole number, e.g., 32. Round your NPV answer to 2 decimal places, e.g., 32.16.)
b-2. What is the sensitivity of NPV to changes in the quantity sold? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)
c. What is the sensitivity of OCF to changes in the variable cost figure? (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and round your answer to the nearest whole number, e.g., 32. )

  

In: Finance

When and how should you use rapid prototyping in the agile process? Please answer it based...

When and how should you use rapid prototyping in the agile process? Please answer it based on using scrum agile process and with complete detail about 1 page

In: Computer Science

4. (20 marks) A English word is palindrome if its characters read the same backward as...

4. A English word is palindrome if its characters read the same backward as forward. For example, civic is palindrome. Describe a recursive algorithm for determining a word w of length n is palindrome or not. Analyze its time complexity using a recursion tree. Implement your algorithm in Java

In: Computer Science

5. (20 marks) Write a recursive Bubble Sort algorithm that takes an array A of n...

5. Write a recursive Bubble Sort algorithm that takes an array A of n numbers as input. Analyze its time complexity using a recursion tree. Implement your algorithm in Java

In: Computer Science

What is the philosophy of KPMG in producing the above goods and/or services?

What is the philosophy of KPMG in producing the above goods and/or services?

In: Operations Management

Section 1.0: MATLAB Fundamentals Step 1.1 Open the MATLAB application Step 1.2 In the Command Window,...

Section 1.0: MATLAB Fundamentals Step 1.1 Open the MATLAB application Step 1.2 In the Command Window, type the following: x=8 % percentage sign denotes comment y=9 % variable y set to 9 x+y % add variable x + y clear %clears the workspace window clc % clears the command window Note: the % sign indicates a user comment. In the Command Window, you should see your answer : ans=17 In the Workspace window, observe "ans", "x" and "y" Step 1.3 In the Command Window, type pi %this returns the value of Pi = 3.1416 2*pi % multiples pi by 2 Step 1.4. Carry Signal Representation: To represent a carrier, we can use either a sine or cosine: s(t)=A*sin(2πft ± φ), or s(t)=A*cos(2πft ± φ). Except for the phase angle difference of 90 degrees or π/2 radians, there are no other differences between the two equations. We will explore the phase angle difference. First we need to define the variables of the signal as a function of time (t): Define the variables clear clc A=5 % this is the signals peak amplitude f=100 % frequency in Hertz phase=0 %phase angle in radians t=2.5e-03 %time in seconds which is the variable s=A*sin((2*pi*f*t)+phase) %carrier signal equation Note: if you make an error in typing the equation, you can use the arrow up key which will bring up your last entry. You can then make a correction to the equation vice re-typing the entire equation. You should get the answer: s=5? Check this on your calculator. Does the answer on your calculator match MATLAB's? Note: If your result is s=1.37e-01, then your calculator is set for degrees and not radians. Remember, our signal equation is in radians, which means that our phase angle will also be in radians and not in degrees. 3 Step 1.5 Now you will define a time axis from which you will be able to plot a simple sine wave. In order to define the x axis, we must provide a starting point, the increments in-between the start and end points, and end time for the plot (t=0:0.0001:0.01)- i.e., plot starts at t=0 seconds, with a point plotted every 0.0001 seconds, and ends at t=0.01 sec. Enter the following: clc clear A=5 f=100 sphase=0 t=0:0.0001:0.01 %the colon separates beginning, increment and end points s=A*sin((2*pi*f*t)+sphase) subplot(1,2,1) %subplot allows you to place two graphs for comparison in a 1x2 matrix plot(t, s) %graphically plots the sine wave 's' You should see the following sine wave plot: Step 1.6 Now we compare the sine wave next to a cosine wave. Enter the following into the Command Window (note: the “clear” command resets all of the variables): clc clear A1=5 A2=5 f1=100 f2=100 sphase=0 bphase=0 t=0:0.0001:0.01 s=A1*sin((2*pi*f1*t)+sphase) subplot(1,2,1) plot(t, s) %Add the following code to plot the cosine function: b=A2*cos((2*pi*f2*t)+bphase) %carrier signal equation but using cosine instead subplot(1,2,2)%subplot allows you to place two graphs for comparison in a 1x2 matrix plot(t, b) %graphically plots the cosine wave 'b' 4 You should see the following sine wave plot: We see that the cosine wave on the right has shifted 90 degrees to the left. Another way to interpret this is by saying that the cosine wave , since it has a peak amplitude earlier than the sine wave,"leads" the sine wave by 90 degrees or +1.57 radians. Step 1.7 Now let's shift the cosine wave form, b(t), by -90 degrees, or -π/2 radians (entered as “-pi/2” in MatLab code): clc clear A1=5 A2=5 f1=100 f2=100 sphase=0 bphase=-pi/2 t=0:0.0001:0.01 s=A1*sin((2*pi*f1*t)+sphase) subplot(1,2,1) plot(t, s) b=A2*cos((2*pi*f2*t)+bphase) subplot(1,2,2) plot(t, b) Note: If using the MATLAB's command window vice script, you must execute the above command lines in the command window. If you are using the MATLAB scripting function, change the values within the code variables and re-run the script. You should see that both s(t) and b(t) appear the same - i.e., both look like sine waves. Since the cosine wave had to shift -90 degrees in phase in order to look like the sine wave, we can say that the cosine wave "leads" the sine wave by 90 degrees. We can also say that the sine wave "lags" the cosine wave by 90 degrees. 5 Step 1.8 Now let’s return the cosine phase angle back to 0 radians, and plot both the sine and cosine waves onto a single graph for comparison. The red plot is the cosine wave while the blue plot is the sine wave. The cosine plot leads the sine plot by 90 degrees or π/2 radians. (Note: Make sure to close the plot window before running the script!) clc clear A1=3 A2=5 f1=150 f2=150 sphase=0 bphase=0 t=0:0.0001:0.01 s=A1*sin((2*pi*f1*t)+sphase) b=A2*cos((2*pi*f2*t)+bphase) yyaxis left %this command places the y scale on the left side plot(t,s) ylim([-8 8]) ylabel('s=A1*sin((2*pi*f1*t)+sphase)') yyaxis right %this command places the y scale on the right side plot(t, b) ylim([-8 8]) ylabel('b=A2*cos((2*pi*f2*t)+bphase)') xlabel('Time (seconds)') title('Sine and Cosine Waveforms') 6 Step 1.9 Using the MatLab code in step 1.8, modify the sine sphase, by +90 degrees or +pi/2 radians, and keep the cosine wave, bphase, at 0 degrees phase angle. Also raise the amplitude of the sine wave to A1=5. Question 1.9 Select the best answer regarding your observation from step 1.9. a. both s(t) and b(t) appear as identical sine waves b. both s(t) and b(t) appear as identical cosine waves c. both s(t) and b(t) appear as cosine waves; however, their amplitudes differ d. s(t) appears as a cosine wave while b(t) appears as a sine wave Plot 1.9 - Sine Cosine Wave Plot Submission: Submit (i.e., copy/paste) the MATLAB plots from step 1.9 above into the “IT300 Virtual Lab Plot Submission” document template. Note: After executing the plot command, go to the plot and perform a "copy figure" under the "Edit" menu. Paste this figure into the assignment "IT300 Virtual Lab Plot Submission v13" on Bb Assignments/Virtual LAB folder. Step 1.10 Now plot the following carrier waves s(t) and b(t). Place both plots onto a single graph as you did in steps 1.8 and 1.9. (hint: note the form for sinusoidal wave, s(t)=Asin(2πft ± φ) and b(t)=Acos(2πft ± φ)) s(t) = 4sin(2π250t) b(t) = 5cos(π500t -π/2) Question 1.10 What are the differences between the two plots a(t) and b(t) from step 1.10? a. s(t) and b(t) have different frequencies b. s(t) and b(t) differ in phase angle, and both appear as cosine waves c. s(t) and b(t) differ in amplitude, and both appear as sine waves d. s(t) and b(t) are identical in amplitude, frequency, and phase angle 7 Plot 1.10 - Sine Cosine Wave Plot Submission: Submit (i.e., copy/paste) the MATLAB plots from step 1.10 above into the “IT300 Virtual Lab Plot Submission” . Step 1.11 Set the phase angles for s(t) to pi/2 radians, and b(t) phase to 0. Set the frequency for s(t) equal to 600 Hz and b(t) equal to 300 Hz (note: keep all other variables the same). Question 1.11 Select the correct observation for s(t) and b(t) a. plots are same in amplitude b. plots are same in frequency c. both plots appear as cosine waves with different frequencies d. all are correct Plot 1.11 - Sine Cosine Wave Plot Submission: Submit (i.e., copy/paste) the MATLAB plots from step 1.11 above into the “IT300 Virtual Lab Plot Submission” .

In: Computer Science

Use the following information to answer questions 1-3. Mitts Beverage Inc. manufactures and distributes fruit juice...

Use the following information to answer questions 1-3.

Mitts Beverage Inc. manufactures and distributes fruit juice products. Mitts is considering the development of a new prune juice product. Mitts’ CFO has collected the following information regarding the proposed project:

· The company already owns a section of land where the facility could be built. The land is estimated to have a after tax market value of $1 million. The company plans to sell the land if it is not used for this project.

· The project will require that the company spend $1 million today (t = 0) to purchase a new machine. For tax purposes, the equipment will be depreciated on a straight-line basis. The company plans to use the machine for all 3 years of the project. At t = 3, the equipment is expected to have no salvage value.

· The project will require a $400,000 increase in inventory and $200,000 increase in accounts payable at t = 0. The cost of the net operating working capital will be fully recovered at t = 3.

· The project's incremental sales are expected to be $1 million a year for three years (t = 1, 2, and 3).

· The project’s annual operating costs (excluding depreciation) are expected to be 60% of sales.

· The company’s tax rate is 40%.

· The company’s interest expense each year will be $300,000.

· The project’s discount rate is 10%.

1. What is the initial investment for the project?

2. What is the annual expected incremental operating cash flow for years 1-3?

3. What is the project’s NPV?

In: Finance

In the documentary “The Corporation”, the standard metaphor for a corporation is that of an apple...

In the documentary “The Corporation”, the standard metaphor for a corporation is that of an apple within a barrel where most apples are good and just a few bad. Can you think of another metaphor for a corporation? What does this metaphor mean to you?

In: Operations Management

Tough Decisions This week’s lecture focused on problem solving and decision making. What are some of...

Tough Decisions

This week’s lecture focused on problem solving and decision making. What are some of the toughest decisions you’ve had to make in your life? What techniques (as explored in the Week 5 reading) did you use at the time to make them? Would you do anything differently now? Feel free to explore decisions you’ve had to make in your schooling, career (past or present), family life and with friendships.

Your work should be at least 500 words, but mostly draw from your own personal experience. This should be written in first person and give examples from your life. Be sure if you are using information from the readings that you properly cite your readings in this, and in all assignments.

PLEASE IN YOUR OWN WORDS!!!! NO PLAGIARISM!!!!!

In: Psychology

ANSWER ALL QUESTIONS THOROUGHLY PLEASE What is cybersecurity in healthcare? What is the rationale and significance...

ANSWER ALL QUESTIONS THOROUGHLY PLEASE

What is cybersecurity in healthcare? What is the rationale and significance of this issue? Include any pertinent statistical figures or data surrounding cybersecurity in healthcare.

Address implications that are felt because of cybersecurity in healthcare. What are the overall implications for patients, providers (both clinical and managerial), and other stakeholders?

In: Nursing

C. In 1790 Benjamin Franklin left the equivalent of $4,600 (actually 1,000 British pounds) each to...

C. In 1790 Benjamin Franklin left the equivalent of $4,600 (actually 1,000 British pounds)

each to the cities of Philadelphia and Boston. He stipulated that the money be invested

and that the principal not be touched for 100 years.

  1. If the money had been invested at 4%, compounded yearly, how much would each city have had in 1890?  _____________________

  2. How much if it had been invested at 5%, compounded yearly? __________________


D. A genie popped out of a bottle and offered you one of three choices:

  1. $5,000 today.

  2. $10,000 10 years from now.

  3. a 12-year annuity, paying $1,000 a year starting at the end of this year.

Your required rate of return is 9%. Which alternative is worth more to you?_____________________

In: Finance

public int static mirroringIt(String str){ return n; } implement this function so its takes ONE string...

public int static mirroringIt(String str){

return n;

}

implement this function so its takes ONE string and remove the characters so it becomes a mirrored word.

example:

Input: qswwbi

Output: 4

remove q s b i

"wow" is a mirror word.

output : 0

Input : "if"

output : 1

remove either I or f because it's two words.

don't use 3rd parties library or java.util.

In: Computer Science

Ammonia is a weak base with a Kb of 1.8×10^-5. A 140.0-mL sample of a 0.175...

Ammonia is a weak base with a Kb of 1.8×10^-5. A 140.0-mL sample of a 0.175 M solution of aqueous ammonia is titrated with a 0.106 M solution of the strong acid HCI. The reaction is

NH3(aq)+HCl(aq)→NH+4(aq)+Ci−(aq)NH3(aq)+HCl(aq)→NH+4(aq)+Ci−(aq)

Compute the pH of the titration solution before any acid is added, when the titration is at the half-equi valence point, when the titration is at the equivalence point, and when the titration is 1.00 mL past the equivalence point

In: Chemistry