The Language is Java. Sample Output: There is no given sample Output IsEqualToTest (30) Write a...

The Language is Java.

Sample Output:

There is no given sample Output

IsEqualToTest (30)

Write a simple generic version of method isEqualTo that compares its two arguments with the equals method and returns true if they’re equal and false otherwise. Use this generic method in a program that calls isEqualToTest with the built-in types Integer, String, Double and Object. The main reads in two Integer, and two Double values with autoboxing, as well as two String and calls the method. For Object just create two Object objects with no parameters. The method doesn’t need to include any correctness tests.

In: Computer Science

what is the correct name of the glycosidic bond in maltose?

what is the correct name of the glycosidic bond in maltose?

In: Chemistry

According to the Law of One Price, assuming there are no transport costs and freecompetition exists,...

According to the Law of One Price, assuming there are no transport costs and freecompetition exists, identical goods sold in different locations will have the same price.2Using the concepts of Arbitrage and Supply & Demand, explain why this must be thecase – at least in theory. Your answer should include a diagram. Why doesn’t the Lawof One Price hold in real life?

In: Economics

Two 2.0 cm -diameter disks face each other, 3.0 mm apart. They are charged to ±11nC....

Two 2.0 cm -diameter disks face each other, 3.0 mm apart. They are charged to ±11nC.

Part A

What is the electric field strength between the disks?

Part B

A proton is shot from the negative disk toward the positive disk. What launch speed must the proton have to just barely reach the positive disk?

In: Physics

Write a decrease-conquer algorithm to solve the following problem: input: a nonempty unsorted array A[lo..hi] of...

Write a decrease-conquer algorithm to solve the following problem:

input: a nonempty unsorted array A[lo..hi] of n distinct nonnegative integers;

output: the (left) median value of A[lo..hi].

What is the asymptotic running time of your algorithm ?

In: Computer Science

PLEASE DO THIS WITH PYTHON 3 Lab 4-2: Computing Tax The United States federal personal income...

PLEASE DO THIS WITH PYTHON 3

Lab 4-2: Computing Tax

The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married filing jointly, married filing separately, and head of household. The tax rates vary every year. Table 3.2 shows the rates for 2009. If you are, say, single with a taxable income of $10,000, the first $8,350 is taxed at 10% and the other $1,650 is taxed at 15%. So, your tax is $1,082.5.

Table 1

2009 U.S. Federal Personal Tax Rates

Marginal Tax Rate

Single

Married Filing Jointly or Qualified Widow(er)

Married Filing Separately

Head of Household

10%

$0 – $8,350

$0 – $16,700

$0 – $8,350

$0 – $11,950

15%

$8,351– $33,950

$16,701 – $67,900

$8,351 – $33,950

$11,951 – $45,500

25%

$33,951 – $82,250

$67,901 – $137,050

$33,951 – $68,525

$45,501 – $117,450

28%

$82,251 – $171,550

$137,051 – $208,850

$68,525 – $104,425

$117,451 – $190,200

33%

$171,551 – $372,950

$208,851 – $372,950

$104,426 – $186,475

$190,201 - $372,950

35%

$372,951+

$372,951+

$186,476+

$372,951+

You are to write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax. Enter 0 for single filers, 1 for married filing jointly, 2 for married filing separately, and 3 for head of household.

Here are sample runs of the program:

Sample 1:

Enter the filing status: 0

Enter the taxable income: 100000

Tax is 21720.0

Sample 2:

Enter the filing status: 1

Enter the taxable income: 300339

Tax is 76932.87

Sample 3:

Enter the filing status: 2

Enter the taxable income: 123500

Tax is 29665.5

Sample 4:

Enter the filing status: 3

Enter the taxable income: 4545402

Tax is 1565250.7

In: Computer Science

Peter and Blair recently reviewed their future retirement income and expense projections. They hope to retire...

Peter and Blair recently reviewed their future retirement income and expense projections. They hope to retire in 29 years and anticipate they will need funding for an additional 21 years. They determined that they would have a retirement income of $62304 in today's dollars, but they would actually need $45000 in retirement income to meet all of their objectives. Calculate the total amount that Peter and Blair must save if they wish to completely fund their income shortfall, assuming a 4 percent inflation rate and a return of 8 percent. The total amount that Peter and Blair must save if they wish to completely fund their income shortfall, assuming a 4 percent inflation rate and a return of 8 percent is $______________

In: Finance

Byzantine Generals Problem and Solutions  Based on the proposed solutions use any code you want to...

Byzantine Generals Problem and Solutions 

Based on the proposed solutions use any code you want to demonstrate one of the solutions.

Include documentation describing your code

include comments in your code describing each step

In: Computer Science

All of these problems involve preparation and use of a vaccine solution that contains an active...

All of these problems involve preparation and use of a vaccine solution that contains an active agent in an aqueous solution. The active agent in the vaccine degrades in aqueous solutions with first-order kinetics. The half-life of the active agent in water 25o C is 8.4 hours. The vaccine should be administered at a concentration of at least 20 μg/L to be fully effective.

1. Calculate the rate constant, k1, at 25o C. Be sure to include the units.

2. Suppose a stock solution of the vaccine with a concentration of 25 μg/L is prepared in a clinic at 8:30 am. The clinic plans to store this solution at 25o C and use it for all of the patients that are seen for morning appointments between 9:00 am – 12:00 noon. Is this a good practice? Justify your answer. Will the vaccine be effective for all of these patients? If not, at what time will the concentration of the active agent fall below the effective level?

3. The half-life of the active agent is measured at 4o C and found to be 11.5 hours. What is the activation energy for the degradation reaction?

4. A stock solution of the vaccine is prepared at 8:30 am and stored in a refrigerator at 4o C. It will be used for all of the patients with morning appointments between 9:00 am – 12:00 noon. However, the last patient of the morning was delayed and did not arrive until 12:30 pm. What is the concentration of the active agent in the stock solution at that time? Can the vaccine still be used?

In: Chemistry

Consider the following: C= 116 + 0.8 (Y - T) - 1000r I= 140 - 2000r...

Consider the following: C= 116 + 0.8 (Y - T) - 1000r

I= 140 - 2000r G= 165 T= 30 + 0.25Y

EX= 100; IM= 110 + 0.2Y

L= 5Y - 100000r M= 60000 P= 100 rrr= 0.2

IS: Y = 1/0.6 (387 - 3000r) Y = 645 - 5000r

LM: Y = 1/5 (600 + 100000r) Y = 120 + 20000r

a) If G increases by 30, is it an expansionary, or a contractionary (pick one) fiscal policy? By how much does the IS and LM curves shift and by how much does Y change?

How much is the crowding out effect? Is the budget balanced? If Fed monetizes the additional budget deficit to eliminate crowding out, do they need to buy bonds, or sell bonds?

b) If the Fed purchases securities worth of 2500; is it an expansionary, or a contractionary (pick one) monetary policy? If there is no leakage of excess reserves, then by how much does it change the money supply? By how much do the IS and LM curves shift and by how much does Y change?

In: Economics

0.80 grams of KHP is titrated with 20 mL of the unknown NaOH solution. What is...

0.80 grams of KHP is titrated with 20 mL of the unknown NaOH solution. What is the molarity of the NaOH solution in mol/mL?

In: Chemistry

We have discussed three methods of horizontal gene transfer. Correctly match the method with its name....

We have discussed three methods of horizontal gene transfer. Correctly match the method with its name.

Uptake of DNA from the environment

  

DNA transfered into the bacterial genome from a virus.

  

Transfer of a plasmid between two cells connected by a pilus

A.

Conformation

B.

Transformation

C.

Transduction

D.

Convection

E.

Translation

F.

Conjugation

In: Biology

Investigation B, The Braun Electroscope        The Braun electroscope consists of a metal disc at the...

Investigation B, The Braun Electroscope

       The Braun electroscope consists of a metal disc at the upper end of a metal rod insulated from the case of the instrument. The rod supports a light metal vane free to rotate about a horizontal axis. When the electroscope is charged the vane swings from its normal vertical position to a near equilibrium position. The angle it makes with the vertical is proportional to the charge of the electroscope.

1            A. Ground the electroscope by touching the disc.

B. Bring a negatively charged rod near the disc of the electroscope.

C. Remove the rod.

2            A. Ground the electroscope.

B. Bring a negatively charged rod near the disc of the electroscope.

C. Touch the rod to the disc. This is charging by contact.

D. Remove the rod.

3   A. Charge the electroscope as in 7, by contact.

B. Bring the negatively charged rod to within 5 cm. of the disc of the electroscope.

C. Bring the negatively charged rod as close to the disc as possible without a spark jumping from the rod to the disc.

D. Remove the rod.

4   A. Charge the electroscope as in 7, by contact.

B. Bring a positively charged rod to within about 5cm. of the disc of the electroscope.

C. Bring a positively charged rod as close to the disc of the electroscope as possible without a spark jumping from the rod

D. Remove the rod.

5     A. Ground the electroscope.

      B. Bring a negatively charged rod near the disc of the electroscope.

      C. keeping the rod near the disc, ground the telescope.

      D. Keeping the rod near the disc, removes the grounding connection.

      E. Remove the rod. The electroscope has been charged by induction.

6     A. Charge the electroscope by induction as 10 observing carefully the charging distance between rod and disc when the electroscope is grounded.

B. Bring a negatively charged rod near the disc. Draw diagrams for the following cases:

1) Rod beyond the charging distance.

2) Rod at charging distance.

3) Rod inside the charging distance.

C. Remove the rod.

7      A. Charge the electroscope by induction as in 10.

       B. Bring a positively charged rod near the electroscope.

       C. Remove the rod.

Note: the experiments above might be repeated, replacing a positive with a negative rod and a negative with a positive rod. In all cases the charge distribution would be opposite to that for the above experiments.

8. Charge the electroscope positively by induction. Record the electroscope positively by induction. Record the effect of bringing the hand near the knob of the electroscope.

Charge the electroscope negatively by induction. Record the effect of bringing the hand near the electroscope. Diagrams need not be drawn for this part.



I have no idea about this lab report!!~
The prof reuqire us to explain which situation !~~ Please help

In: Physics

Direct Labor Variances The following data relate to labor cost for production of 7,200 cellular telephones:...

Direct Labor Variances

The following data relate to labor cost for production of 7,200 cellular telephones:

Actual: 4,840 hrs. at $12.8
Standard: 4,760 hrs. at $13.1

a. Determine the direct labor rate variance, direct labor time variance, and total direct labor cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number.

Rate variance $   
Time variance $   
Total direct labor cost variance $   

b. The employees may have been less-experienced or poorly trained, thereby resulting in a   labor rate than planned. The lower level of experience or training may have resulted in   efficient performance. Thus, the actual time required was   than standard.

In: Accounting

**C++ only, standard library. We are supposed to create a tower of hanoi program and do...

**C++ only, standard library.

We are supposed to create a tower of hanoi program and do a sequence of 100 disks. We are supposed to run the program and then answer two questions:

1) How long does your computer take to run(time)?

2) If I could move 1 disk per second how long would it take?

Here is my program so far:

void towerOfHanoi(int numDisks, char from_rod, char to_rod, char aux_rod)
{
int count=0;
if (numDisks == 1)
{
//cout << "Move disk 1 from rod " << from_rod <<
// " to rod " << to_rod<<endl;
return;
}
towerOfHanoi(numDisks - 1, from_rod, aux_rod, to_rod);

//cout << "Move disk " << numDisks << " from rod " << from_rod <<
//" to rod " << to_rod << endl;
towerOfHanoi(numDisks - 1, aux_rod, to_rod, from_rod);
}
  
// Driver code
int main()
{
int numDisks; // Number of disks
  
cout<<"This program solves the Hanoi Tower puzzle"<<endl<<endl;
  
cout<<"Enter the number of disks to calculate: ";
cin>>numDisks;
  
towerOfHanoi(numDisks, 'A', 'C', 'B'); // A, B and C are names of rods
return 0;
}
  

In: Computer Science