A student has two lenses, one of focal length 5.5 cm and the other with focal length 15 cm.
Find the maximum magnification produced by each of these lenses.
M1, M2?
In: Physics
Show and explain each step (neatly in complete sentences), indicate units, and specify the correct number of significant figures. A friend wants to sell you a catalyst that allows benzene to be formed by passing H2 (g) over graphite at 25 ˚C and 1 atm. Should you buy? Explain.
In: Chemistry
In: Computer Science
Terminology: 1.Thickness of internal coating of an analytical column (meaning, the purpose and the range of them (in um) 2.Carrier gas in GC and Eluent in LC ( general purpose, what is the general carrier media, gas or eluent, for GC amd LC 3. Isocratic and gradient program of HPLC 4. FID detector (full name, flow of the gases for flame, best use for what compounds)
In: Chemistry
In: Computer Science
You have looked at the current financial statements for Reigle
Homes, Co. The company has an EBIT of $2,930,000 this year.
Depreciation, the increase in net working capital, and capital
spending were $229,000, $94,000, and $435,000, respectively. You
expect that over the next five years, EBIT will grow at 20 percent
per year, depreciation and capital spending will grow at 25 per
year, and NWC will grow at 15 per year. The company currently has
$15,900,000 in debt and 465,000 shares outstanding. After Year 5,
the adjusted cash flow from assets is expected to grow at 3 percent
indefinitely. The company’s WACC is 8.3 percent and the tax rate is
35 percent.
What is the price per share of the company's stock? (Do not
round intermediate calculations and round your answer to 2 decimal
places, e.g., 32.16.)
Share price
$
In: Finance
What is the circuit diagram of password based door lock system project by using interface 8088 microprocessor with peripherals Ics ( PPI , PIT and PIC ) and what is code by using assembly language ?
notes:
1- this question related to microprocessor Interface subject
.
2- I need answer after 4 hour very necessary , please
In: Computer Science
java programming
You will be given two interfaces and two abstract classes, FileTextReader, FileTextWriter, AbstractFileMonitor, and AbstractDictionary. Your job is to create two classes the first class should be named FileManager, the second class should be named Dictionary. The FileManager will implement the interfaces FileTextReader and FileTextWriter and extend the clas AbstractFileMonitor. Your class signature would look something like the following:
public class FileManager extends AbstractFileMonitor implements FileTextReader, FileTextWriter{...
The constructor signature of the FileManager should look like the following:
public FileManager(String filePath){...
The Dictionary will extend the abstract class AbstractDictionary. Your class signature would look something like the following:
public class Dictionary extends AbstractDictionary {...
The constructor signature of the Dictionary should look like the following:
public Dictionary(String path, FileManager fileManager) throws IOException {...
Please read the programmatic documentation of the two interfaces and abstract classes to gain an understanding of what each function should do. This assignment will test your knowledge of reading and writing to a text file, implementing interfaces, extending abstract classes, throwing exceptions and working with collections specifically sets.
This project is accompanied by two test classes, ManagerTest, and DictionaryTest. They will test the functionality of the functions in the interfaces and the abstract methods of classes. Its recommended that you implement the FileManager before working on the AbstractDictionary.
Abstract Dictionary
package homework;
import java.io.IOException;
import java.util.Objects;
import java.util.Set;
* A class that holds a collection of words read from a text
file. The collection of words is used in the methods of this
class
* methods provided in this class.
public abstract class AbstractDictionary
{
private final FileTextReader
FILE_READER;
private final Set ALL_WORDS;
/**
* Creates an abstract dictionary of words using the
text file at the specified path.
* @param path a path to a text file containing a
dictionary of words
* @param dictionaryFileReader the FileReader used to
read from the text file at the specified path
* @throws IOException thrown if there is a problem
reading the file at the path
*/
public AbstractDictionary(String path,
FileTextReader dictionaryFileReader) throws IOException {
Objects.requireNonNull(dictionaryFileReader, "The File reader can
not be null");
Objects.requireNonNull(path, "The
path can not be null");
FILE_READER = dictionaryFileReader;
ALL_WORDS =
FILE_READER.getAllLines(path);
}
/**
* Returns a set of all the words contained in the
dictionary text file.
* @return a set containing all the words in the
dictionary file.
*/
public Set getAllWords(){
return ALL_WORDS;
}
/**
* Counts the number of words in this Dictionary that
start with the specified prefix and have a length that is equal or
greater
* than the specified size. If size the specified size
is less than 1 then word size is not taken into account.
* @param prefix the prefix to be found
* @param size the length that the word must equal or
be greater than. If a value less than 1 is specified, all words
regardless of their
* characters size should be considered. In other words
if the size parameter is < 1 word size is disregarded in the
calculations.
* @param ignoreCase if true this will ignore case
differences when matching the strings. If false this
considers
* case differences when matching the strings
* @return The number of words that start with the
specified prefix
* @throws IllegalArgumentException if the specified
string is null or empty (Meaning contains no characters or only
white space or blank)
*/
public abstract int countWordsThatStartWith(String prefix, int size, boolean ignoreCase) throws IllegalArgumentException;
/**
* Tests if this Dictionary contains at least one word
with a length equal to or greater than the specified size that
starts with the specified prefix.
* If size the specified size is less than 1 then word
size is not taken into account.
* @param prefix the prefix to be found
* @param size the length that the word must equal or
be greater than. If a value less than 1 is specified, all words
regardless of their
* characters size should be considered. In other words
if the size parameter is < 1 word size is disregarded in the
calculations.
* @param ignoreCase if true this will ignore case
differences when matching the strings. If false this
considers
* case differences when matching the strings
* @return The number of words that start with the
specified prefix
* @throws IllegalArgumentException if the specified
string is null or empty (Meaning contains no characters or only
white space)
*/
public abstract boolean
containsWordsThatStartWith(String prefix, int size, boolean
ignoreCase) throws IllegalArgumentException;
* Returns a set of all the words within in this
Dictionary that start with the specified prefix and have a length
that is equal or greater
* than the specified size. If size the specified size
is less than 1 then word size is not taken into account.
* @param prefix the prefix to be found
* @param size the length that the word must equal or
be greater than. If a value less than 1 is specified, all words
regardless of their
* characters size should be considered. In other words
if the size parameter is < 1 word size is disregarded in the
calculations.
* @param ignoreCase if true this will ignore case
differences when matching the strings. If false this
considers
* case differences when matching the strings
* @return A list of all strings that start with the
specified prefix
* @throws IllegalArgumentException if the specified
string is null or empty (Meaning contains no characters or only
white space)
public abstract Set
getWordsThatStartWith(String prefix, int size, boolean ignoreCase)
throws IllegalArgumentException;
}
AbstractFileMonitor
package homework;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.DigestInputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
* A class with methods to monitor a text file.
public abstract class AbstractFileMonitor {
private MessageDigest messageDigest;
private int currentCheckSum;
private boolean hasChanged = false;
private long nextUpateTime = 0;
public AbstractFileMonitor(String path){
setFilePath(path);
}
* Updates the variables that correspond to the file
being monitored
* This function has been throttled such that it will
only update values every 250 ms. In other words successive calls to
this
* function in time intervals that are less than 250 ms
will yield no change.
* @throws IOException Thrown if any type of I/O
exception occurs while writing to the file
* @throws IllegalStateException If the {@link
#setFile(String)} method in not invoked with a proper file prior to
invocation of this
* @throws NoSuchAlgorithmException If the computer's
OS is missing the SHA-256 hashing algorithm
* method. In other words if no file is currently set
to be monitored.
public void update() throws IOException,
IllegalStateException, NoSuchAlgorithmException {
if(messageDigest ==
null){
messageDigest =
MessageDigest.getInstance("SHA-256");
}
if(nextUpateTime >
System.currentTimeMillis()) {
hasChanged =
false;
return;
}
nextUpateTime =
System.currentTimeMillis() + 250;
File file = new
File(getFilePath());
if(!file.exists())
return;
try (DigestInputStream dis = new DigestInputStream(new
FileInputStream(getFilePath()), messageDigest)) {
while (dis.read() != -1) ;
messageDigest = dis.getMessageDigest();
}
StringBuilder result = new StringBuilder();
for (byte b : messageDigest.digest()) {
result.append(String.format("%02x", b));
}
hasChanged = currentCheckSum !=
result.toString().hashCode();
currentCheckSum = result.toString().hashCode();
}
* Tests if the file being monitored has changed since
the last time {@link #update()} was invoked
public boolean hasChanged(){
return hasChanged;
}
public abstract void setFilePath(String path);
public abstract String getFilePath() throws
IllegalStateException;
}
FileTextReader
package homework;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Set;
public interface FileTextReader{
public String readText(String path) throws
IOException;
* @throws IOException Thrown if any type of I/O
exception occurs while writing to the file
public Set getAllLines(String path) throws
IOException;
* @throws IOException Thrown if any type of I/O
exception occurs while writing to the file
public String getLastLine(String path) throws
IOException;
}
FileTextWriter
package homework;
import java.io.IOException;
public interface FileTextWriter {
* @throws IOException Thrown if any type of I/O
exception occurs while writing to the file
* @throws IllegalArgumentException if the specified
string is null or empty (Meaning contains no characters or only
white space)
public void writeToFile(String string,
String path) throws IOException,
IllegalArgumentException;
}
In: Computer Science
Why is it significant that arginine vasopressin is expressed in squirrel monkeys and the amino acid sequence is identical to humans?
In: Biology
In the sigma-model of spontaneous symmetry breaking, we have degenerate vacuum states. But if we don't pick up a particular value of VEV, we won't have any symmetry breaking. As I read from a book, in field theory at finite volume, there would be no problem; but at infinite volume, we are forced to choose a value of the ? field. But why?
In: Physics
Calculate the Kovats retention index for an unknown using the following retention times: 1.8 min for CH4, 11.7 min for octane, 14.4 min for the unknown, and 18.5 min for nonane.
In: Chemistry
the following selected financial statement information is for Stevens Company
December 31
2017 2016 Changes in assets
Current Assets
Cash $ 86,000 $71,000
Accounts receivable 24,000 20,000
Merchandise inventory 20,000 27,000
Prepaid expenses 10,000 8,000
Current Liabilities
Accounts payable 41,000
44,000
Income taxes payable 6,000 11,000
Other data for the Year Ended December 31, 2017
From the income statement:
Net income $146,000
Depreciation expense 32,000
Loss on sale of equipment
9,000
From accounting records:
Capital expenditures 44,000
Required:
a. Using the indirect method, prepare the operating
activities section of the statement of cash flows for Stevens
Company for the year ended December 31, 2017.
b. Calculate the following cash measures:
(1) Operating cash flow ratio (round to
the nearest tenth of a percent).
(2) Capital expenditure ratio (round to
the nearest tenth of a percent).
(3) Free cash flow
In: Accounting
A ball is thrown straight up from the edge of the roof of a building. A second ball is dropped from the roof a time of 1.16 s later. You may ignore air resistance.
a. If the height of the building is 19.0 m , what must the initial speed be of the first ball if both are to hit the ground at the same time?
b. Consider the same situation, but now let the initial speed v0 of the first ball be given and treat the height h of the building as an unknown. What must the height of the building be for both balls to reach the ground at the same time for v0 = 9.00 m/s .
c. If v0 is greater than some value vmax, a value of h does not exist that allows both balls to hit the ground at the same time. Solve for vmax.
d. If v0 is less than some value vmin, a value of h does not exist that allows both balls to hit the ground at the same time. Solve for vmin.
In: Physics
| Buffer A | Buffer B | |
| Mass of NaC2H3O2 | 0.2449 | 2.449 |
| Volume of buffer | 100 | 100 |
| M of concentration HC2H3O2 | 0.1 | 0.1 |
| Initial pH of buffer | 3.93 | 4.02 |
| V of 0.50 NaOH increase by 2 units | 2.2 | 17.3 |
| V of 0.50 HCl decrease by 2 units | 1.7 | 4.5 |
| V of 0.50 NaOh at eqievalence point | 2.33 | 19 |
A)Buffer capacity has a rather loose definition, yet it is an important property of buffers. A commonly seen definition of buffer capacity is:
In: Chemistry
In the story "Superman and Me" by Sherman Alexie, The story opens by giving some reason people need to read. Which of those reasons do you think apply to Alexie? Why does he need to read?
In: Psychology