What is internationalism? Which recent president is known for this style of foreign policy?
In: Economics
Timmy, a second-grader, wasn’t feeling like himself. A month ago his best friend moved to another city, leaving Timmy feeling sad, miserable, and with no one to play with in his free time. His mom and dad were worried because he was no longer interested in kite-flying, something he had really enjoyed for a long time. Timmy also tried to make excuses for why he should stay home from school. Sometimes Timmy wouldn’t go to sleep at night, and he wasn’t interested in eating any of his favorite foods. His parents worried about how sad he always seemed. After a month of worry, his parents decided to take Timmy to a family counselor.
How do you think the counselor will help Timmy?
In: Psychology
Explain how and why Japan escaped western imperialism in the middle of the nineteenth century.
In: Economics
This is Java programing. Complete Java program to produce the following output.
interface Register{
void course();
}
public class Interface1{
public static void main(String
args[]){
Register c=new A();
c.course();
Register s=new B();
s.course();
}
}
//output
I'm taking A
I'm taking B
In: Computer Science
The specific course learning outcomes associated with this assignment are:
In: Economics
In: Operations Management
In C++ Please
Problem 1: How to calculate a home's value
Housing economists have long used a home price/rent ratio as one
way to gauge whether or not home prices are inflated or
undervalued.
A housing P/E
The use of a price/rent ratio is analogous to employing a
price/earnings ratio for stocks. When a stock price is high, and
its earnings per share relatively low, the P/E is high. A high P/E
often indicates that the stock is too expensive, and the share
price is headed for a drop.
What someone is willing to pay to rent a place is that home's
"earnings." And, just as in the stock market, a high home price
related to the rental earnings mean homes values will probably
drop.
For a specific look at how a home's P/E is determined, let's
consider a home that is listed for either rent or sale in suburban
Chicago.
The home has been rented for the past three years for $1,600 per
month; so that is $19,200 per year. It is currently listed for sale
at $400,000. Dividing the price by the total annual rent of $19,200
gives a "housing P/E" of 20.83. According to Moody's Economy.com,
the long-run average housing P/E is 16, so a P/E of 20.83 suggests
that this home may be somewhat overpriced.
For this programming project you will read in a list of housing
prices and how much each house is rented for that are found in the
attached HousingPrices.txt file. The file looks like this:
713047 1246
1605787 1979
1174719 1879
1018239 1700
Where the first value on each line is the price of the home, and
the second number on each line is the price that this home
currently rents for per month.
Read these numbers in from the file into 2 separate arrays of size
100, since there are 100 home prices/rents in the file. Do this
part in your main method.
Then use a for-loop to loop through the arrays and for each pair of
values send them into a method that you will write called
"getHousingPE". Your method will have two parameters; the price of
the home and the current monthly rental rate of the home. Your
method will calculate and then return the homes “housing P/E”.
Check each homes returned P/E value and if the P/E value is greater
than 16 you should write to the output “House # is somewhat
overpriced”; where # is the number of the house in the file (1100).
If the P/E is greater than 19 then you should write to the output
“House # is way overpriced”. If the P/E is less than 12 then you
should write to the output "“House # might be a good deal”. And if
the P/E is less than 9 then you should write “Buy House #, it is a
deal”. If the P/E is between 12-16 then output "House # is
average".
Problem 2:
Determining Left or
Right
For this programming
project you are to
read in a list
of street addresses
and determine how
many of those
addresses are on
the right side of
the street, and how
many are on the
left. The street
addresses file is a
text file that
looks like:
6 S 33rd St
6 Greenleaf Ave
618 W Yakima Ave
74 S Westgate St
3273 State St
You can determine
if an address is
either on the left
or right side of
the street by
looking at the
number of the
address; all even
numbers are on the
right side of the
street, and all odd
numbers are on the
left side of the
street.
You will read your
data into 2 arrays;
an integer array to
hold the street
number, and a
String array to
hold the rest of
the address.
These will be
parallel arrays, meaning
the street number
and street address
of each index are
related to each
other.
Remember to draw a
picture so that you
can visualize this.
You will need to
write a method that
will determine if
each house is on
the left or right
side of the
street.
You will call this
method for every
street address, and
then keep a count
of how many houses
are on the left
and right sides of
the street.
The output should
be the street
number and address
and then whether
the house is on
the left or right
side of the
street:
Address Left/Right
6649 N Blue Gum St left
4 B Blue Ridge Blvd right
8 W Cerritos Ave #54 right
639 Main St left
…
The number of houses on the left and right sides of the street should also be output.
In: Computer Science
1. The Ostwald process is used commercially to produce nitric acid, which is, in turn, used in many modern chemical processes. In the first step of the Ostwald process, ammonia is reacted with oxygen gas to produce nitric oxide and water. What is the maximum mass of H2O that can be produced by combining 67.1 g of each reactant?
2. In the following reaction, how many grams of sodium sulfate, Na2SO4, will be produced from 80.7 g of sodium hydroxide, NaOH?
In: Chemistry
How many + operations occur when the following pseudocode is executed? What is the output? s ← 0, t ← 0 for i ∈ {1, ..., 6} do for j ∈ {1, ..., 6} do for k ∈ {1, ..., 6} do if i + j + k = 9 then t ← t + 1 s ← s + 1 print t / s
In: Computer Science
This problem is a long one, but fairly conceptual in
nature.
a. For each of the following salts, write the reaction that occurs
when it dissociates in water: NaCl(s), NaCN(s), KClO2(s),
NH4NO3(s), KBr(aq), NaF(s).
b. Consider each of the reactions that you wrote above, and
identify the aqueous ions that *could* be proton donors (acids) or
proton acceptors (bases). Briefly *explain how you decided which
ions to choose*.
c. For each of the acids and bases that you identified in part b, write the chemical reaction it can undergo in aqueous solution (its reaction with water).
d. Are there any reactions that you have written above that you anticipate will occur to such an extent that the pH of the solution will be affected? As part of your answer, be sure to explain how you decided.
e. Assume that in each case, above, 0.01 mol of the salt was dissolved in enough water at 25 deg Celsius to make 1.0L of solution. In each case, what additional information would you need in order to calculate the pH? If there are cases where no additional information is required, be sure to state that as well.
f. Say you take 0.01 mol of NH4CN and dissolve it in enough water at 25 deg Celsius to make 1.0L of solution. Using chemical reactions and words, explain how you would go about determining what effect this salt will have the pH of the solution. Be sure to list any additional information you would need to arrive at an answer.
In: Chemistry
A particle carrying charge +q is located on the xaxis at x=+d. A particle carrying charge ?3q is located on the x axis at x=?7d.
A. With zero potential at infinity, at what location on the x axis with negative coordinate is the electrostatic potential zero? Express your answer in terms of d.
B. With zero potential at infinity, at what location on the x axis with positive coordinate is the electrostatic potential zero? Express your answer in terms of d.
C. At what location on the y axis with negative coordinate is the potential zero? Express your answer in terms of d.
D. At what location on the y axis with positive coordinate is the potential zero? Express your answer in terms of d.
E. Are there any locations on the x or y axis where the electrostatic potential is zero?
In: Physics
1. Parking Tickets – The Kaiserslautern police department claims that it issues an average of only 60 parking tickets per day. The data below, reproduced in your Excel answer workbook, show the number of parking tickets issued each day for a randomly selected period of 30 days. Assume σ =13.42. State the null and alternate hypotheses, as well as the claim, which (hint!) is in the null hypothesis. Is there enough evidence to reject the group’s claim at α = .05? (As with all of these exercises, use the P-value method, rounding to 4 digits.) (Hint: so since we know the population standard deviation, use the standard normal distribution z-test .) (Monday class)
79 78 71 72 69 71 57 60
83 36 60 74 58 86 48 59
70 66 64 68 52 67 67
68 73 59 83 85 34 73
(Note: You’ll find these data posted in Worksheet #1 of the Excel answer template.)
In: Math
Write a C Unix shell script called showperm that accepts two command line parameters. The first parameter should be an option flag, either r, w or x. The second parameter should be a file name. The script should indicate if the specified file access mode is turned on for the specified file, but it should display an error message if the file is not found. For example, if the user enters: showperm r thisfile the script should display “readable” or “not readable” depending on the current status of thisfile.
In: Computer Science
You are assigned to implement the following baggage-check-in system at the airport.
The system keeps track of data for the following information: passenger, bags, and tickets.
The program must maintain passenger details like name, address, phone number, and the number of bags. Each passenger can have multiple bags and each bag has length, width, height, and weight. The passenger also has a ticket. The tickets are of two types, either a first-class ticket or an economy-ticket. The maximum weight allowed for a first-class ticket is 40 Kilos and the maximum weight allowed for an economy-ticket is 30 Kilos. The program must display all the details of the passenger, ticket, and number of bags and allowed weight. If the weight exceeds that of the respective ticket class, then the program will give appropriate message to indicate that the passenger cannot travel. Your program must throw an exception to indicate the failure.
Requirements
In: Computer Science
Use C++
Black Jack
Create a program that uses methods and allows the user to play the game of blackjack against the computer dealer. Rules of Blackjack to remember include:
1. You need one 52 card deck of cards with cards from 2-Ace (4 cards of each number).
2. Jacks, Queens and Kings count as 10 points.
3. An Ace can be used as either 1 or 11 depending on what the user decides during the hand.
4. Draw randomly two cards for the "dealer" and display one of them while keeping the other hidden. Also, randomly draw two cards for the player and display them in view.
5. Allow the user to hit (randomly draw a card) as many times as they wish. If the player "busts" or gets over 21, the dealer automatically wins the players wager.
6. After the user "stands" or is satisfied with his total, the dealer must take a card if his total is 16 or below, and cannot take a card if his total is 17 or above.
7. If the dealer "busts" or goes over 21, the player wins back his wager plus his wager again. (Example - if a player bets $3 he gets back his original $3 plus an additional $3).
8. If neither the dealer or the player "busts" or goes over 21, then the highest total wins. Ties go to the dealer.
9. Note - the player should start with $20 in the bank and cannot wager more than he currently has in the bank.
10. Note - before each round the user can bet in whole dollars how much to wager or how much of the total in the bank to risk.
11. Allow the user to quit at any time. Of course, the user must quit if he/she runs out of money.
12. Remember, somehow ensure that the same card (example - 6 of spades) cannot be drawn twice in a single hand.
In: Computer Science