President Wilson declared the United States neutral when WWI first broke out, but eventually led the country into war. Why did the United States decide to participate in the war and what effect American entry have on the allied war effort?
In: Psychology
Python3 question.
Suppose that a graph represent as adjacency matrix, how could it perform DFS by using stack.
Graph is a undirect and unweighted graph.
In: Computer Science
1. A CSTR and a PFR of equal volume (VCSTR = VPFR = V) are used to degrade a compound in a first-order manner under steady-state conditions.
(a) If the CSTR gives a 80% degradation what is the efficiency of the PFR?
(b) If instead of one CSTR of volume V, you use 5 CSTRs in series, each having a volume of 0.2V, what would be the overall degradation efficiency?
(c) Show that the overall efficiency will be equal to that of the PFR (volume V) if you use an infinite number (n→∞) of CSTRs in series each having a volume of V/n.
In: Chemistry
K-Log produces cereals that are sold in boxes labeled to contain
390 grams. If the cereal
content is below 390 grams, K-Log may invite auditor’s scrutiny.
Filling much more than 390 grams costs
the company since it essentially means giving away more of the
product. Accordingly, K-Log has set
specification limits at 400± 10 grams for the weight of cereal
boxes. Currently a filling machine fills the
boxes. The boxes weigh on average 395 grams with a standard
deviation of 20 grams.
In parts a)-d) you should work with a process mean of 395 grams. This describes an unlikely, but otherwise ordinary situation. Part e) asks you to rework the problem with a process mean of 380 grams. This situation is possible but very unusual. There is a didactic point to its solution, so I would ask you to work through both situations.
a) Determine the process capability Cp ratio and the process
capability index Cpk.
b) Briefly comment on the implication of your finding in part
a).
c) Calculate the probability that a randomly selected cereal box
will not conform to specifications.
d) For a process capability index of 2, determine what process
targets (in terms of mean and standard
deviation of the filling process) are needed? (Hint: What are the
required process characteristics to
achieve 6-sigma?)
e) Repeat parts a) and b) under the assumption that the
mean is 380 grams instead of 395 grams.
In: Operations Management
IN JAVA
12.11 PRACTICE: Branches*: Listing names
A university has a web page that displays the instructors for a course, using the following algorithm: If only one instructor exists, the instructor's first initial and last name are listed. If two instructors exist, only their last names are listed, separated by /. If three exist, only the first two are listed, with "/ …" following the second. If none exist, print "TBD". Given six words representing three first and last names (each name a single word; latter names may be "none none"), output one line of text listing the instructors' names using the algorithm. If the input is "Ann Jones none none none none", the output is "A. Jones". If the input is "Ann Jones Mike Smith Lee Nguyen" then the output is "Jones / Smith / …".
Hints:
Use an if-else statement with four branches. The first detects the situation of no instructors. The second one instructor. Etc.
Detect whether an instructor exists by checking if the first name is "none".
CODE GIVEN:
import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
String firstName1, lastName1;
String firstName2, lastName2;
String firstName3, lastName3;
firstName1 = scnr.next();
lastName1 = scnr.next();
firstName2= scnr.next();
lastName2= scnr.next();
firstName3= scnr.next();
lastName3= scnr.next();
/* Type your code here. */
}
}
In: Computer Science
The Metchosin Corporation has two different bonds currently outstanding. Bond M has a face value of $30,000 and matures in 20 years. The bond makes no payments for the first six years, then pays $3,100 every six months over the subsequent eight years, and finally pays $3,400 every six months over the last six years. Bond N also has a face value of $30,000 and a maturity of 20 years; it makes no coupon payments over the life of the bond. The required return on both these bonds is 12% compounded semiannually, what is the current price of bond M and bond N? (Do not round intermediate calculations. Round the final answers to 2 decimal places.)
Current Price | |
Bond M | $ |
Bond N | $ |
In: Finance
On January 1, 2018, A Co. purchased a machine at a cost of $84,000. The machine is expected to last 5 years and has a residual value of $14,000.
Required:
1. Compute depreciation for the five year periods ending December 31 using the straight-line, sum-of-the-years digits and DDB method.
2. The machine is sold on January 1,2020 for $40,000. Compute the gain or loss for each method.
In: Accounting
In: Finance
i need a full explanation in details Object Oriented Programming
Principles
In: Computer Science
In: Accounting
Java Proect
Project Outcomes
Develop a Java program that:
•
creates a user designed class
•
uses proper design techniques including reading UML Class
Diagrams
•
reads input from the keyboard using a Scanner Object and its
methods
•
uses selection (if and if else) statements
•
uses iteration (while, do while or for) statements
•
uses String comparison methods.
•
follows standard acceptable programming practices.
•
handles integer overflow errors
Prep Readings:
Zybooks chapter 1 - 6
1. General
The game of Stix is a simplified version of an ancient game and somehow
looks like this:
●
It is played by two players
●
A number of sticks (like matches) are placed on a table.
●
The first player takes 1, 2 or 3 sticks away, provided that there that
many on the table.
●
Then the second player takes 1, 2 or 3 sticks away (if possible), and so
on.
●
Whoever takes the last stick, loses (!)
Your program does the following:
1.
It asks the initial number or stix (between 5 and 30)
2.
It asks if the computer (program) takes first
3.
It then lets the user and the computer take turns until the number of
stix drops to 0.
4.
Depending on who took the last stix, it declares the winner.
A simple run looks like this (Computer goes first and wins)
How many stix to begin with? [5 - 30] > 12
Computer goes first? [y/n] > y
Stix on the table: ||||||||||||
Computer takes 3
Stix on the table: |||||||||
How many stix to take? [1 - 3] > 2
Stix on the table: |||||||
Computer takes 2
Stix on the table: |||||
How many stix to take? [1 - 3] > 1
Stix on the table: ||||
Computer takes 3
Stix on the table: |
How many stix to take? [1 - 1] > 1
Stix on the table:
I win!
Here is another short run (Player goes first and wins)
How many stix to begin with? [5 - 30] > 14
Computer goes first? [y/n] > n
Stix on the table: ||||||||||||||
How many stix to take? [1 - 3] > 1
Stix on the table: |||||||||||||
Computer takes 1
Stix on the table: ||||||||||||
How many stix to take? [1 - 3] > 3
Stix on the table: |||||||||
Computer takes 1
Stix on the table: ||||||||
How many stix to take? [1 - 3] > 3
Stix on the table: |||||
Computer takes 1
Stix on the table: ||||
How many stix to take? [1 - 3] > 3
Stix on the table: |
Computer takes 1
Stix on the table:
You win!
There are of course two more possible situations: a) Computer goes first,
Player wins and b) Player goes first, Computer wins. Actually, all four can
happen. So be prepared for that!
In: Computer Science
If x=3, y=4 what is the value of this Java expression?
(double) (x/y)
What is the value of this Java expression?
(int)(1.0 / 2.0) + (double)(1 / 2)
True or False:
(double)(x)/y is the same as double (x/y)
What is the value of this Java expression?
(double)3
In: Computer Science
Catherine decided to see a registered dietitian after watching a news story about the 2006 CDC Preconception Health Initiative (p. 66), including the recommendation that each person should make a reproductive life plan. Currently 29 years old, she has been on oral contraceptives for 10 years. She would like to have children someday, possibly in her mid-thirties, after she has established her career. Her height is 5’6” (1.68 m) and her weight is 175 lb. (79 kg). She considers herself fairly active, exercising for about 30 minutes three times per week. Due to being a busy professional, she admits to drinking close to 40 ounces of coffee most days and only occasionally drinks alcohol. Her personal health history includes iron-deficiency anemia at age 25, although she thinks this has resolved; her family history includes heart disease and type two diabetes; both of her parents are still living. No recent lab work is available.
Comment on the following questions and number your responses:
In: Psychology
You are working as the software developer and need to identify the best sorting algorithm.
You can pick any two-sorting algorithm. You need to determine which sorting algorithm is the best to sort the array of 10k elements.
Use the following steps to help with your solution:
In: Computer Science
Evaluating Source
One of the responsibilities often associated with management is the gathering of career-specific information on resources or professional development. Familiarity with professional sources shows you have interest in your field and invest time to stay current with developments and debates in your industry. Sources for the IT field.
For this assignment, you will identify credible sources related to your field. You will identify the sources using accurate APA format. Then, for each source, you will write two complete paragraphs that
For your sources, you should include at least one of each of the three following sources:
In: Computer Science