In the following problem, check that it is appropriate to use
the normal approximation to the binomial. Then use the normal
distribution to estimate the requested probabilities.
It is known that 82% of all new products introduced in grocery
stores fail (are taken off the market) within 2 years. If a grocery
store chain introduces 60 new products, find the following
probabilities. (Round your answers to four decimal places.)
(a) within 2 years 47 or more fail
(b) within 2 years 58 or fewer fail
(c) within 2 years 15 or more succeed
(d) within 2 years fewer than 10 succeed
In: Math
Java Logic - the idea is for this Plumbers.java to ask the customer if there house is flooded , how many rooms, if pipes were damaged and if so how many.. then to pas that information into the plumber constructore and the bill for the services. The ComputePrice() isn't displaying the info and the switches aren't taking in the informations in the display().
import java.util.Scanner;
public class Plumber
{
int service;
int numberRooms;
int burstPipes;
int numberPipes;
double roomsCost;
double pipesCost;
private int NumberRooms;
double cFlood1 = 300.00;
double cFlood2 = 500.00;
double cFlood3 = 750.00;
double cPipe1 = 50.00;
double cPipe2 = 70.00;
double cPipe3 =100.00;
double cost = 0;
String BurstPipes ="";
private Plumber(int srv, int numRms, int
bstPipes, int numPipes)
{
service = srv;
numberRooms = numRms;
burstPipes = bstPipes;
numberPipes = numPipes;
}
private Plumber(int service, int numberRooms,
String burstPipes, int numberPipes) {
this.service = service;
this.numberRooms =
numberRooms;
this.BurstPipes = burstPipes;
this.numberPipes =
numberPipes;
}
public void display()
{
String p1 = " no rooms
flooded",
p2 = "1 room flooded",
p3="with 2 rooms flooded",
p4="with 3 or more rooms flooded",
p5="\n no burst pipes apparent\n",
p6="\n and 1 burst pipe apparent\n",
p7="\n and 2 burst pipes apparent\n",
p8="\n and 3 burst pipes apparent\n";
if(service == 1)
{
System.out.println("\nYou have stated that the damage to your house
involves a natural flood.");
switch(NumberRooms)
{
case 0:
System.out.printf("%s",p1);
case 1:
roomsCost += cFlood1;
System.out.printf("%s",p2);
break;
case 2:
roomsCost += cFlood2;
System.out.printf("%s",p3);
break;
case 3:
roomsCost += cFlood3;
System.out.printf("%s",p4);
break;
}
if(BurstPipes.equals("Y") || BurstPipes.equals("y"))
{
switch(burstPipes)
{
case 0:
System.out.printf("%s",p5);
break;
case 1:
pipesCost += cPipe1;
System.out.printf("%s",p6);
break;
case 2:
pipesCost += cPipe2;
System.out.printf("%s",p7);
break;
case 3:
pipesCost += cPipe3;
System.out.printf("%s",p8);
}
}
}
}
public void ComputePrice()
{
if(service
==1)
cost = roomsCost +
pipesCost;
if(!(roomsCost==0))
System.out.printf("\n%s Room Flood Repair =
$%s\n",numberRooms,roomsCost);
if(!(pipesCost==0))
{
System.out.printf("%s Pipe Repair =
$%s\n",numberPipes,pipesCost);
System.out.printf("
------------\n" +
"Estimated Amount
Due: $%s\n\n",cost);
System.out.print("** Please Have This Amount Available -" +
" Fees
Are Due At Time Of Service.\n This Is An Estimate
Only." +
" Final Bill Will
Be Based On Onsite Evaluation." +
"\n
All Work Will Be Discussed And Agreed Upon Prior To Repairs.
**\n\n");
}
else
System.out.printf("If you need services, please come visit us
again.\n\n");
}
public static void main(String[] args)
{
double cFlood1 = 300.00;
double cFlood2 = 500.00;
double cFlood3 = 750.00;
double cPipe1 = 50.00;
double cPipe2 = 70.00;
double cPipe3 =100.00;
double roomsCost;
double pipesCost;
double cost = 0.00;
int service;
int numberRooms;
int numberPipes;
String burstPipes ="";
Scanner userInput = new Scanner(System.in);
System.out.print("\nPlease enter 1 "+ "if there was
flood damage>>");
service = userInput.nextInt();
System.out.print("\n How many rooms were flooded - 1"
+ "2" + "3" + "or more >>");
numberRooms = userInput.nextInt();
burstPipes = userInput.nextLine();
System.out.print("\n Were there any burst pipes?
Please enter Y" + "or" + "N >>");
burstPipes = userInput.nextLine();
System.out.print("\n How many pipes burst? - 1" + "2"
+ "3" + "or more>>");
numberPipes = userInput.nextInt();
Plumber firstCustomer = new Plumber(service,
numberRooms, burstPipes,numberPipes);
firstCustomer.ComputePrice();
firstCustomer.display();
}
}
In: Computer Science
In: Economics
In: Economics
One electrode compartment consists of an aluminum strip placed in a solution of Al(NO3)3, and the other has a nickel strip placed in a solution of NiSO4. The overall cell reaction is
2Al(s)+3Ni2+(aq)?2Al3+(aq)+3Ni(s)
1. What is being reduced?
2. Write the half-reactions that occur in the two electrode compartments.
anode reaction:
cathode reaction:
In: Chemistry
Problem #5: A loan of $44,000 is paid off in 36 payments at the end of each month in the following way: Payments of $1100 are made at the end of the month for the first 12 months. Payments of $1100 + x are made at the end of the month for the second 12 months. Payments of $1100 + 2x are made at the end of the month for the last 12 months. What should x be if the nominal monthly rate is 12.4%?
In: Finance
How many grams of Na2CO3 should be mixed with 5.00 g of NaHCO3 to produce 100 mL of buffer with a pH of 10.00? What volume of 0.01 M NaOH must be added to this solution to achieve a pH of 11.25? (pKa1 is 6.35; pKa2 is 10.53)
In: Chemistry
Given the following information for a monopolistic competitor:
Demand: P = 78 – 5(Q)
Marginal revenue: MR = 78 – 10(Q)
Marginal cost: MC = 2(Q) + 10
Average total cost at equilibrium is 14
1. At what output (Q) will this firm maximize profit? _____
2. At what price (P) will this firm maximize profit? _______
3. What is the total revenue (TR) earned at this output level? _____
4. What is the total cost (TC) accrued at this output? _____
5. What profit or loss is experienced by this firm? ______
6. Could this firm be in a longrun situation? (answer 1 = yes, 2 = no) _____
In: Economics
Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standards? Are uniform standards beneficial to everyone?
In: Economics
GOAL Apply the more general definition of torque. PROBLEM (a) A man applies a force of F = 3.00 102 N at an angle of 60.0° to the door of Figure (a), 2.00 m from the hinges. Find the torque on the door, choosing the position of the hinges as the axis of rotation. (b) Suppose a wedge is placed 1.50 m from the hinges on the other side of the door. What minimum force must the wedge exert so that the force applied in part (a) won't open the door? STRATEGY Part (a) can be solved by substitution into the general torque equation. In part (b) the hinges, the wedge, and the applied force all exert torques on the door. The door doesn't open, so the sum of these torques must be zero, a condition that can be used to find the wedge force. SOLUTION (A) Compute the torque due to the applied force exerted at 60.0°. Substitute into the general torque equation. τF = rFsin θ = (2.00 m)(3.00 ✕ 102 N) sin 60.0° = (2.00 m)(2.60 ✕ 102 N) = 5.20 102 N · m (B) Calculate the force exerted by the wedge on the other side of the door. Set the sum of the torques equal to zero. τhinge + τwedge + τF = 0 The hinge force provides no torque because it acts at the axis (r = 0). The wedge force acts at an angle of −90.0°, opposite the upward 260 N component. 0 + Fwedge(1.50 m) sin (−90.0°) + 5.20 ✕ 102 N · m = 0 Fwedge = 347 N LEARN MORE REMARKS Notice that the angle from the position vector to the wedge force is −90°. This is because, starting at the position vector, it's necessary to go 90° clockwise (the negative angular direction) to get to the force vector. Measuring the angle in this way automatically supplies the correct sign for the torque term and is consistent with the right-hand rule. Alternately, the magnitude of the torque can be found and the correct sign chosen based on physical intuition. Figure (b) illustrates the fact that the component of the force perpendicular to the lever arm causes the torque. QUESTION To make the wedge more effective in keeping the door closed, should it be placed closer to the hinge or to the doorknob? closer to the hinge closer to the doorknob PRACTICE IT Use the worked example above to help you solve this problem. (a) A man applies a force of F = 3.00 102 N at an angle of 60.0° to a door, x = 2.10 m from the hinges. Find the torque on the door, choosing the position of the hinges as the axis of rotation. N · m (b) Suppose a wedge is placed 1.50 m from the hinges on the other side of the door. What minimum force must the wedge exert so that the force applied in part (a) won't open the door? N EXERCISE HINTS: GETTING STARTED | I'M STUCK! A man ties one end of a strong rope 7.74 m long to the bumper of his truck, 0.521 m from the ground, and the other end to a vertical tree trunk at a height of 3.62 m. He uses the truck to create a tension of 7.50 102 N in the rope. Compute the magnitude of the torque on the tree due to the tension in the rope, with the base of the tree acting as the reference point. N · m
In: Physics
a) If 8.00 hp are required to drive a 1800-kg automobile at 54.0 km/h on a level road, what is the total retarding force due to friction, air resistance, and so on?
b) What power is necessary to drive the car at 54.0 km/h up a 10.0% grade (a hill rising 10.0 m vertically in 100.0 m horizontally)?
c) What power is necessary to drive the car at 54.0 km/h down a 1.00 % grade?
d) Down what percent grade would the car coast at 54.0 km/h ?
In: Physics
23- Celsius Corp. is conducting a capital budgeting analysis to decide whether to invest in a new project which has an expected life of 5 years. The following information is available:
What are the after-tax net proceeds from the sale of the equipment in year 5? (Round to the nearest dollar)
Select one:
a. $0
b. $11,962
c. $63,200
d. $68,038
e. $80,000
In: Finance
Using energy level diagrams, predict the relative stability of a Br2 molecule as well as the first excited state.
In: Chemistry
A 0.0038 kg leaf falls 16.8 m to the ground, where it lands with a speed of 12.2 m/s. What was the average force of air resistance on the leaf while it was falling?
In: Physics
Problem 1: In the figure to the right, m1=20.0kg and α=53.1o . The
coefficient of kinetic friction between the block and the incline
is µk=0.40. a) What must be the mass m2 of the hanging block if it
is to descend 12.0 m in the first 2.00 s after the system is
released from rest? b) For the µk in the problem, what mass m2 will
provide constant velocity of m1 down the incline? c) Suppose µs is
0.7, what is the maximum mass m2 that will still cause no
movement?
In: Physics