Discuss pros and cons of using twins to estimate the rate of return to school
In: Economics
John earned $59,000 of nominal income in 2017. The CPI is 242 for 2017.
John earned $60,000 of nominal income in 2018. The CPI is 252 for 2018.
(a) Calculate the percent change in John’s real income from 2017 to 2018. Please calculate your answer to the second decimal place (hundredths place). Show how you got your answer.
(b) Using the information above calculate the inflation rate from 2017 to 2018. Please show the work done to get your answer. Please calculate your answer to the second decimal place (hundredths place).
(c) If Bill lent Sue $20,000 from 2017 to 2018 and charged Sue a nominal interest rate of 5.00%, then please calculate the real interest rate that Bill earned for this loan. Please show how you got your answer. Please calculate your answer to the second decimal place (hundredths place)
(d) If Bill wanted to earn a real interest rate (return) of 5.00% for the loan mentioned above, then what nominal interest rate should he have charged Sue? Please show how you got your answer. Please calculate your answer to the second decimal place (hundredths place).
In: Economics
Write around 200 words only related to what do you understand about server virtualization.
In: Computer Science
According to Kaplan, why does nature have its restorative effect on people? Explain both how our attention normally operates and what nature does to improve the situation. Kaplan believes that restorative environments share three characteristics. Name and define these three characteristics and discuss why nature satisfies each. In what ways does Kaplan explain the negative effects of threatening or obnoxious environmental stressors?
In: Other
Write the balanced net ionic equation.
1.)solid Fe(OH)3and excess 3.0 M HC2H3O2
2.)0.10 M NaHCO3and excess 0.050 M H2SO4
In: Chemistry
Stoichiometry involving gases:
1. How many moles of oxygen gas are present in 4.48L of the gas at 750mm-Hg and 87 degrees C?
2. Propane is used in gas grills and combusted with oxygen to produce carbon dioxide and water vapor. If 2L of propane is combusted, what volume of oxygen is required and what volumes of water vapor and carbon dioxide are produced?
In: Chemistry
Write the Java program:
In this assignment, you will create a program implementing the functionalities of a standard queue in a class called Queue3503. You will test the functionalities of the Queue3503 class from the main() method of the Main class. In a queue, first inserted items are removed first and the last items are removed at the end (imagine a line to buy tickets at a ticket counter).
The Queue3503 class will contain:
a. An int[] data filed named elements to store the int
values in the queue.
b. An int data field named size that stores the number of
elements in the queue.
c. A no-arg constructor that creates a Queue object with default
capacity 0.
d. A constructor that takes an int argument representing the
capacity of the queue.
e. A method with signature enqueue(int v) that adds the
int element v into the queue.
f. A method with signature dequeue() that removes and
returns the first element of the
queue.
g. A method with signature empty() that returns true if
the queue is empty.
h. A method with signature getSize() that returns the size
of the queue (return type is hence
int)).
The queue class you develop should be tested using the following steps: (In other words, your program named Main will consist of the following)
a. Start your queue with an initial capacity of 8.
b. When the dequeue() method is called, an element from the queue
at the beginning of the queue must be removed.
c. The main() method in your Main class should consist of
statements to:
i. Create a queue object;
ii. Call enqueue() to insert twenty integers (taken from
the user) into the queue.
iii. After the above task is completed, include a for-loop that
will print out the contents of the queue.
d. After printing the queue filled with twenty integers,
call dequeue() repeatedly to remove the beginning element of the
queue.
e. Print the contents of the queue after removing every fifth
number.
f. For your reference, the execution of the Main program is shown
below. User inputs for populating the Queue is shown in the first
line. Next, your program outputs are shown.
*Make sure the code can run in Repl.it*
Points to think about
*Make sure the code can run in Repl.it*
Sample Run
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Initial content: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 16 17 18 19 20
In: Computer Science
Discuss how Nightingale used the three basic types of epidemiological investigation. The contagious diseases were primarily cholera and typhus; how are these diseases transmitted and prevented?
In: Anatomy and Physiology
what is JSON and why we use it, what the threats are and how we mitigate against them, how PHP sanitises the data, how MySQL save the data and how data gets from the server onto the web page.
In: Computer Science
You have a set of four drives configured as RAID-5.
Drive #3 has crashed, but you have the data from Drives 1, 2, and 4 as shown here:
Drive #1: 01001111 01101000 01001110 01101111
Drive #2: 01011001 01110101 01110000 00100001
Drive #3: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Drive #4: 01001111 01111100 01000111 01101111
What is the missing data in ASCII? Explain how you retrieved the information.
In: Computer Science
A mixture of 100g of water and 80g of phenol separates into two layers at 50 oC. One layer, L1, consists of 75.4% of water by mole number; the other , L2, contains 97.7% of water by mole number. How many moles of each constituents are in each phase?
In: Chemistry
A study of parental empathy for sensitivity cues and baby temperament (higher scores mean more empathy) was performed. Let x1 be a random variable that represents the score of a mother on an empathy test (as regards her baby). Let x2 be the empathy score of a father. A random sample of 37 mothers gave a sample mean of x1 = 69.72. Another random sample of 29 fathers gave x2 = 59.51. Assume that σ1 = 12.32 and σ2 = 11.55.
(a) Let μ1 be the population mean of x1 and let μ2 be the population mean of x2. Find a 95% confidence interval for μ1 – μ2. (Use 2 decimal places.)
| lower limit | |
| upper limit |
(b) Examine the confidence interval and explain what it means in the context of this problem. Does the confidence interval contain all positive, all negative, or both positive and negative numbers? What does this tell you about the relationship between average empathy scores for mothers compared with those for fathers at the 95% confidence level?
Because the interval contains only positive numbers, we can say that the mothers have a higher mean empathy score.Because the interval contains both positive and negative numbers, we can not say that the mothers have a higher mean empathy score. We can not make any conclusions using this confidence interval.Because the interval contains only negative numbers, we can say that the fathers have a higher mean empathy score.
In: Math
Shown below is a list of molecules that function in fruit fly development and a list of distribution patterns. Match the molecules to their normal distribution in fruit fly embryos.
|
|
(Put each letter to each Answer)
Two-dimensional gel electrophoresis is used to characterize the physical characteristics and expression levels of:
| A. |
proteins |
|
| B. |
lipids |
|
| C. |
microtubules |
|
| D. |
DNA polymorphisms |
|
| E. |
mRNA |
The end product of a multistep process that includes 1) digestion of genomic DNA by restriction enzymes, 2) ligation of this DNA into vectors, 3) transformation of bacteria with the recombinant DNA molecules, and 4) isolation of individual bacterial clones that carry this recombinant DNA.
| A. |
Genomic library |
|
| B. |
CD library |
|
| C. |
cDNA library |
|
| D. |
Gene expression |
|
| E. |
RNA library |
Long stretches of uninterrupted codons in genomic DNA are known as:
| A. |
open reading frames |
|
| B. |
amino acids |
|
| C. |
stop codons |
|
| D. |
translocations |
|
| E. |
point mutations |
In: Biology
In the Gui need a file in and out writter. That also takes from in file and out file. Write errors to no file found or wrong file. Clear button and Process buttons need to work.
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
import java.io.*;
import javax.swing.*;
@SuppressWarnings("serial")
public class JFileChooserDemo extends JFrame implements
ActionListener
{
private JTextField txtInFile;
private JTextField txtOutFile;
private JButton btnInFile;
private JButton btnOutFile;
private JButton btnProcess;
private JButton btnClear;
public JFileChooserDemo()
{
Container canvas = this.getContentPane();
canvas.setLayout(new GridLayout (3,1));
canvas.add(createInputFilePanel());
canvas.add(createOutputFilePanel());
canvas.add(createButtonPanel());
this.setVisible(true);
this.setSize(800, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public JPanel createInputFilePanel()
{
JPanel panel = new JPanel(new
FlowLayout(FlowLayout.LEFT));
panel.add(new JLabel("In File"));
txtInFile = new JTextField(60);
panel.add(txtInFile);
btnInFile = new JButton("In File");
panel.add(btnInFile);
btnInFile.addActionListener(this);
return panel;
}
public JPanel createOutputFilePanel()
{
JPanel panel = new JPanel(new
FlowLayout(FlowLayout.LEFT));
panel.add(new JLabel("Out File"));
txtOutFile = new JTextField(58);
panel.add(txtOutFile);
btnOutFile = new JButton("Out File");
panel.add(btnOutFile);
btnOutFile.addActionListener(this);
return panel;
}
public JPanel createButtonPanel()
{
JPanel panel = new JPanel(new
FlowLayout(FlowLayout.CENTER));
btnProcess =new JButton("Process");
btnProcess.addActionListener(this);
panel.add(btnProcess);
btnClear =new JButton("Clear");
btnClear.addActionListener(this);
panel.add(btnClear);
return panel;
}
public static void main(String[] args)
{
new JFileChooserDemo();
Scanner file = null;
PrintWriter fout= null;
try {
file = new Scanner(new
File("numbers.txt"));
fout = new PrintWriter("TotalSums.txt");
while(file.hasNext())
{
@SuppressWarnings("resource")
Scanner line = new
Scanner(file.nextLine());
int totalSum = 0;
while (line.hasNext()) {
int number = line.nextInt();
totalSum += number;
fout.print(number);
if (line.hasNext())
{
fout.print("+");
}
}
fout.println("=" + totalSum);
}
}
catch
(FileNotFoundException e)
{
System.out.println("NOT FOUND");
}
finally
{
if(fout!=null)fout.close();
}
if(file!=null)file.close();
}
public void clearInput()
{
txtInFile.setText(""); txtOutFile.setText("");
}
@Override
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == btnInFile)
{
JFileChooser jfcInFile = new
JFileChooser();
if(jfcInFile.showOpenDialog(this)
!= JFileChooser.CANCEL_OPTION)
{
File inFile =
jfcInFile.getSelectedFile();
txtInFile.setText(inFile.getAbsolutePath());
}
else
{
}
}
if(e.getSource() == btnProcess)
{
File file = new
File(txtInFile.getText());
try
{
Scanner fin =
new Scanner(file);
}
catch (FileNotFoundException
e1)
{
e1.printStackTrace();
}
}
}
}
In: Computer Science
Is groundwater quality affected by PCBs? state reasons
In: Chemistry