1,518 Answered Questions for the topic computer science
01/29/15
Nested Functions
Hi, I know the general idea behind nested functions, and how one function can call another inside it. But this example, from Python, confuses me a bit. One function totalPct, is called using a...
more
Computer Science
12/08/14
automata question
Minimize the function E(x) = X4- 3 x3-15x -4 =0,using simulated annealing method. Take an initial random guess x1 between 0 and 10. Set the value of Temperature T= 100. Calculate E(x1). Choose...
more
12/02/14
java program a mp3 catalogue
Hi! i am new to programming and especially to Java. I have been given a task o complete which is to program a mp3 catalogue. An example could be like itunes where the songs are listed and could be...
more
11/14/14
How to I change a switch operation on a string to work in eclipse 1.6?
This is the code I have:
public static double monthly(String month) { switch (month) { case "01": return .5; case "07": return .5; default: return 1; } }
However, eclipse does't allow...
more
Computer Science Unix
11/13/14
What is the difference between the zsh shell and the bash shell?
What is the difference between the zsh shell and the bash shell?
What is so interesting about the zsh shell?
11/09/14
Find the smallest number k such that s(n) = O(n^k). (Big Oh)
Find the smallest number k such that s(n) = O(n^k). (Big Oh)
s(n) = sqrt(n^2-1)
11/09/14
How to calculate the CPU Efficiency for FCFS, SJF, Priority and RR?
I am working on CPU Scheduling and I have to calculate the CPU efficiency for each algorithm i.e. First Come Fist Serve, Shortest Job First, Priority and Round Robin. How can I do this?
10/21/14
Is the function injective or surjective?
Determine whether the function f: NxN --> Z with f(x,y) = (1-x^2)[y/3] is either:
a) injective
b) surjective
Injective function
A function f is said to be one-to-one, or...
more
10/21/14
Show that the function f: N * N - > N * N, f(x,y) = (x+y, 2x-3y) is one-to-one.
Show that the function f: N x N - > N x N, f(x,y) = (x+y, 2x-3y) is one-to-one.(A function f is said to be one -to -one , or injective , if and only if f ( a) = f ( b ) implies that a = b for...
more
Computer Science Extreme Point
10/12/14
Find extreme values!
y = 2/(x-2)^2 - (x). Find extreme values for this function (if there are any) and draw the function.
09/20/14
big O complexity
for(int i = 0; i < 1; i++)for(int j = 0; j < 1; j++)a = i;what is the big O of this fragment code.i said it will be O(n2), but my teacher said it is O(n)for(int i = 0; i < n*n; i++)for(int...
more
06/04/14
What would be five different states through which ports on a switch running STP can transition.
Sorry for the many questions, only asking cause like I said in my previous question my knowledge is little in the networking field and any help would be much appreciated.
How do you bypass the...
more
Computer Science
05/18/14
Write an assembly program that loads two numbers from memory, calculates their sum, and stores the sum to the memory.
Write an assembly program that loads two numbers from memory, calculates their sum, and stores the sum to the memory.
04/25/14
why would this show this error? and an example on how to fix it? i keep getting five of them
expectedprice = Integer.parseInt (inputprice);
expected
}
cannot resolve synbol
symbol ; method parseInt
location : class homeloan
moths = parseInt (Input Months)
possible loss of...
more
Computer Science Computer Programming
02/03/14
Need help in a software engineering question
You have called into a software company as an independent consultant .In recent months, the quality of the software being sold has taken a distinct drop. You have been asked to identify ways in...
more
Computer Science
11/07/13
what problem would arise if two real time operating systems are made to be hosted atop a hypervisor resident atop a quad core processor based computing system
what problem would arise if two real time operating systems are made to be hosted atop a hypervisor resident atop a quad core processor based computing system
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.