Homework Answers

Math 50414
Physics 44332
Chemistry 40988
Economics 30643
Programming & Computer Science 26876
Biology 8109
Engineering 6056

Questions answered by Experts: 207 418

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Determine the mass of a moving object with a velocity of 35 m/s and a kinetic energy of 58 J.


One component of an ideal binary solution has a pure component vapor pressure equal to one-fourth the total pressure of the vapor mixture. The component constitutes 20 mole % of liquid phase. What is its mole fraction in the vapor phase?

The following code is supposed to take input from the user and print out each entry and add them together with a final print out of the total of all input numbers. The code does exactly that, but I don't get how it prints each input without the writeline being inside the loop. If I move the writeline into the loop, it double prints the input. Any help understanding this would be greatly appreciated. Thanks


Sub Main()

    Dim sum As Integer

    Dim inValue As Integer

    Console.WriteLine("Enter a number: ")


    Do

      inValue = Console.ReadLine()

      If inValue <> -1 Then

        sum += inValue

      End If

    Loop Until inValue = -1


    Console.WriteLine(sum)


    Console.WriteLine("press enter to exit")

    Console.ReadLine()

  End Sub


Four point charges are equally separated by 1.00 m in air. If q1=3.0nC, q2=2.0nC, and q4=-5.0nC. What is the electric field at a point halfway between q2 and q3?


How much work is done on the block if a 10.0 kg block was accelerated at 5.0 m/s2 with a distance of 2.5 m across a frictionless table?


How much work is done on the block if a 10.0 kg block was accelerated at 5.0 m/s2 with a distance of 2.5 m across a frictionless table?


How many moles of H2SO4 are present in 1.63 liters of a 0.954 M solution?


In 2010, President Barack Obama and Congress enacted a healthcare reform bill in the United States. Two goals of the bill were to provide more Americans with health insurance (via subsidies for lower-income households financed by taxes on higher-income households) and to reduce the cost of healthcare (via various reforms in how healthcare is provided). a. How do these goals relate to equality and efficiency? b. How might healthcare reform increase productivity in the United States? c. How might healthcare reform decrease productivity in the United States?


(a) 

Describe an algorithm that sorts an input array A[1 · · · n] by calling a subroutine

SQRTSORT(k), which sorts the subarray A[k + 1 · · · k +√n] in place, given an arbitrary integer k between 0 and n −√n as input. (To simplify the problem, assume that √n is an integer.) Your algorithm is only allowed to inspect or modify the input array by calling SQRTSORT; in particular, your algorithm must not directly compare, move or copy array elements.

How many times does your algorithm call SQRTSORT in the worst case? Give pseudocode. You cannot use anything other than calling the SQRTSORT routine and maybe some loops. But write a few sentences justifying your approach.


(b)

Prove that your algorithm from part (a) is optimal up to constant factors. In

other words, if f(n) is the number of times your algorithm calls SQRTSORT, prove that no

algorithm can sort using o(f(n)) calls to SQRTSORT. We are assuming that

these algorithms cannot do anything other than calling SQRTSORT repeatedly.




Let n = 2^l − 1 l for some positive integer l. Suppose someone claims to hold an unsorted array A[1 · · · n] of distinct l-bit strings; thus, exactly one l-bit string does not appear in A. Suppose further that the only way we can access A is by calling the function

FETCHBIT(i, j), which returns the jth bit of the string A[i] in O(1) time. Describe an algorithm to find the missing string in A using only O(n) calls to FETCHBIT. Again, give either pseucode or write a generic description.

Demonstrating the algorithm on a specific example will not fetch any marks.


LATEST TUTORIALS
APPROVED BY CLIENTS