What is the change in enthalpy (in kJ) under standard conditions when 200.18 g of sodium sulfate dissolves in water?
In: Chemistry
I am tasked with creating a Java application that used 2 synchronized threads to calculate monthly interest and update the account balance
This is the parameters for reference to the code. Create a class
AccountSavings. The class has two instance variables: a double
variable to keep annual interest rate and a double variable to keep
savings balance. The annual interest rate is 5.3 and savings
balance is $100.
• Create a method to calculate monthly interest. • Create a method
to run two threads. Use anonymous classes to create these threads.
The first thread calls the monthly interest calculation method 12
times, and then displays the savings balance (the balance in 12th
month). After that, this thread sleeps 5 seconds. The second thread
calls the monthly interest calculation method 12 times, and then
displays the savings balance (the balance in 12th month). Before
the main thread ends, these two threads must be completed. • Add
your main method into the same class and test your threads. After
these two threads are executed, the savings balance must remain
same
I am getting an error when calling monthlyInterest method inside my runThread method. non-static method monthlyInterest() cannot be referenced from a static context and I cant seem to figure out how to fix the issue.
import static java.lang.Thread.sleep;
class AccountSavings {
double annualInterest=5.3;
double savings=100.00;
public void monthlyInterest(){
double monthlyRate;
monthlyRate = annualInterest/12;
double balance = 0;
balance+=savings*monthlyRate;
}
public synchronized static void
runThread(){
Thread t1;
t1 = new Thread(){
AccountSavings accountSavings= new AccountSavings();
@Override
public void run(){
for(int i=1;i<13;i++){
System.out.println("Balance after " + i + "month: " +
monthlyInterest());
}
try{sleep(5000);}
catch(InterruptedException e){e.printStackTrace();}
}
};
Thread t2= new Thread(){
AccountSavings accountSavings=new
AccountSavings();
@Override
public void run(){
for(int
i=1;i<13;i++){
System.out.println("Balance after " + i + " month: " +
monthlyInterest(balance));
}
try{sleep(5000);}
catch(InterruptedException
e){e.printStackTrace();}
}
};
t1.start();
t2.start();
}
public static void main(String[] args){
runThread();
}
}
In: Computer Science
In: Physics
Given the following thermochemical equations:
X2+3Y2 equals 2XY3 and Delta H =-340 kJ
X2+2 Z2 equals 2XZ2 and Delta H = -170 kJ
2Y2 + Z2 equals 2Y2Z and Delta H=-260kJ
Calculate the change in enthalpy for the following reaction
4XY3+7 Z2 equals 6Y2Z+4XZ2
In: Chemistry
Chamberlain
Enterprises Inc. reported the following receivables in its December
31, 2021, year-end balance sheet:
| Current assets: | |||
| Accounts
receivable, net of $35,000 in allowance for uncollectible accounts |
$ | 273,000 | |
| Interest receivable | 10,100 | ||
| Notes receivable | 370,000 | ||
Additional Information:
Required:
In addition to sales revenue, what revenue and expense amounts
related to receivables will appear in Chamberlain’s 2022 income
statement?
What amounts will appear in the 2022 year-end balance sheet for
accounts receivable and Calculate the receivables turnover ratio
for 2022.
In: Accounting
Using MATLAB to plot a communication system using PAM (binary) through AWGN discrete-time channel . PLZ show your code and plot.
In: Computer Science
On a frictionless surface, a block of mass m1 and velocity v1 = vi is moving to the right when it collides with a spring, of spring constant k, attached to the left side of a stationary block of mass m2. Both blocks are free to slide on the surface.
(a) Argue either from physical principles or with equations that the velocities of the two blocks are the same when the spring is at its maximum compression.
(b) What is the maximum compression of the spring, xmax?
(c) In terms of m1,m2, and v, what are the final velocities of the
two blocks after
they finish interacting?
In: Physics
xkl plans a new project that will generate 187000 of continious cash flow each year for 8 years and additionally 108000 at the end of the project . if the continiously compounded rate of interest is 4 % estimate the pressent value of the cash flows
answer is 1,358,677.35
but details on how i get there please no excel
In: Finance
a 0.1 kg ball traveling at 20m/s is caught by a catcher. in bringing the ball to rest, the mitt recoils for 0.01s. the absolute value of the average force applied to the ball by the glove is
In: Physics
modify the program to cast vptr as a float and as a double
build and run your program
THIS IS THE PROGRAM CODE:
#include <stdio.h>
void main (void)
{
int intval = 255958283;
void *vptr = &intval;
printf ("The value at vptr as an int is %d\n", *((int *) vptr));
printf ("The value at vptr as a char is %d\n", *((char *) vptr));
}
In: Computer Science
In an experiment designed to measure the speed of light, a laser is aimed at a mirror that is 52.0 km due north. A detector is placed 107 m due east of the laser. The mirror is to be aligned so that light from the laser reflects into the detector.
(a) When properly aligned, what angle should the normal to the
surface of the mirror make with due south?
(b) Suppose the mirror is misaligned, so that the actual angle
between the normal to the surface and due south is too large by
0.005
In: Physics
provide 5 ways/methods and explain them on how global warming can be reduced in the future?
In: Other
Research consistently shows that living in poverty negatively influences language development. Locate and summarize information that would support this assumption (e.g., journal articles, Centers for Disease Control [CDC], and/or World Health Organization [WHO]). What types of experiences or resources do you feel that children who live in poverty do not experience or receive but children from higher economic statuses benefit from?
In: Psychology
draw vsepr and valence bond picture for C2H2? label the bonds. for each sigma bond name the two orbitals that overlap to form it? for each pi bond name the two orbitals that overlap to form it. why are to pi ponds perpindicular to each other. why are quadruple bonds unlikely? Please label thank you.
In: Chemistry
In the earth's reference frame, a tree is at the origin and a pole is at x=31km. Lightning strikes both the tree and the pole at t=13?s. The lightning strikes are observed by a rocket traveling in the x-direction at 0.6 c.
What are the spacetime coordinates x? tree, x? pole for these two events in the rocket's reference frame?
What are the spacetime coordinates t? tree, t? pole for these two events in the rocket's reference frame?
In: Physics