Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
j.tucker31
What is Ben Carson's stand on issues related to race in America?
What about the Democratic Party?
Republican Party?
3 AnswersPolitics6 years agoWhat is the most controversial social issue that affects everyone in today's world?
What are the two opposing main arguments of the social issue??
i need a topic that isn't broad for my social issues class.
i have to present it in a way that frames both sides and i have to show my side but must display the other perspective.
HELP!!
2 AnswersOther - Society & Culture7 years agoWhat are some of the most controversial social issues in todays world?
I have to do a presentation in my criminal justice class and i want to do a topic that is differemt. For example i don't want to do topics like abortion or marijuana legalization.
my topic must relate to criminal justice.
Any ideas???!!!
2 AnswersOther - Society & Culture7 years agoHow did Rabindranath Tagore have an effect on British Colonialism?
What effects did he have on other historical events??
What were the historical events
1 AnswerHistory7 years agoJava questions...terms?
What is a component that provides a box for writing one line of text in a GUI application or applet?
What is a component that provides a button control in a GUI application or applet?
what is The method needed to arrange for an object to be notified when a window's close-window button has been clicked?
what is The general term for an object that represents the action of a user that may require a response?
what is the general term for an object that receives notifications of user actions?
what is the method that determines the dimensions of a Java GUI application window?
Besides determining the dimensions of a newly created Java GUI application window, what additional method must be invoked to make the window appear to the user?
2 AnswersProgramming & Design9 years agoJAVA help!!!!!!! loops?
1. Write a for loop that prints in ascending order all the positive multiples of 5 that are less than 175, separated by spaces.
2. Given a PrintWriter reference variable named output that references a PrintWriter object, write a statement that writes the string "Hello, World" to the file output streams to.
3. Write a for loop that prints the integers 0 through 39, separated by spaces.
4. Write a for loop that prints in ascending order all the positive integers less than 200 that are divisible by both 2 and 3, separated by spaces.
2 AnswersProgramming & Design9 years agoJAVA HELP! my code compiles but there is still an error?
import java.util.*;
import java.text.*;
public class Stocks {
private int shares;
private int price;
private int temp;
private static int total;
private int finalPrice;
private int finalShares;
private Queue<Stocks> StockList = new LinkedList<Stocks>();
private static NumberFormat nf = NumberFormat.getCurrencyInstance();
public Stocks()
{
shares = 0;
price = 0;
}
public Stocks(int shares, int price)
{
this.shares = shares;
this.price = price;
}
public int getShares()
{
return this.shares;
}
public int getPrice()
{
return this.price;
}
public void setShares(int shares)
{
this.shares = shares;
}
public void setPrice(int price)
{
this.price = price;
}
public void sell() {
int sharesToSell = this.getShares();
int priceToSell = this.getPrice();
while (!StockList.isEmpty()) {
int numShares = StockList.peek().getShares();
int sharePrice = StockList.peek().getPrice();
if (numShares < sharesToSell || numShares == sharesToSell) {
temp = sharesToSell - numShares; // remaining shares to sell
finalShares = sharesToSell - temp; // # shares selling at price
finalPrice = priceToSell - sharePrice; // shares sold at adjusted price
total += (finalPrice * finalShares); // Calculates total price
StockList.remove();
sharesToSell = temp; // Remaining shares needed to be sold @ price
}
if (numShares > sharesToSell) {
temp = numShares - sharesToSell; // Remaining shares that were bought
finalPrice = priceToSell - sharePrice; // Shares sold at adjusted price
total += (finalPrice * sharesToSell); // adds to running total
StockList.peek().setShares(temp);
}
}
}
public void buy() {
int numShares = this.getShares();
int priceToBuy = this.getPrice();
Stocks newStock = new Stocks(numShares,priceToBuy);
StockList.add(newStock); // adds stock to list
int temptotal = (numShares * priceToBuy); // decreases running total
total += (-1 * temptotal);
}
public static int getTotal() { // gets total profit (or loss)
return total;
}
// *****MAIN METHOD*****
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter transaction sequence:");
String input = scan.nextLine().trim();
String[] inputArray = new String[50];
String[] inputArray2 = new String[50];
int numShares, sharePrice;
inputArray = input.split(";");
for (String i : inputArray) {
if (i.toUpperCase().contains("BUY")) {
inputArray2 = i.split(" ");
inputArray2[4] = inputArray2[4].substring(1);
try {
numShares = Integer.parseInt(inputArray2[1]);
sharePrice = Integer.parseInt(inputArray2[4]);
Stocks newStock = new Stocks(numShares,sharePrice);
newStock.buy();
} catch (NumberFormatException e) {
System.out.println("Error");
return;
}
}
else if (i.toUpperCase().contains("SELL")) {
inputArray2 = input.split(" ");
inputArray2[4] = inputArray2[4].substring(1);
try {
numShares = Integer.parseInt(inputArray2[1]);
sharePrice = Integer.parseInt(inputArray2[4]);
Stocks newStock = new Stocks(numShares,sharePrice);
newStock.sell();
} catch (NumberFormatException e) {
System.out.println("Error");
return;
}
} else {
System.out.println("Error - input does not contain buy/sell");
}
} System.out.println(nf.format(getTotal()));
}
}
this program compiles but when i enter transaction sequence which is either buy/sell an error follows it
Programming & Design9 years agoJAVA help!!! simple expression?
The length of a rectangle is stored in a double variable named length , the width in one named width . Write an expression whose value is the length of the diagonal of the rectangle.
Programming & Design9 years agosimple JAVA expression help!?
The length of a rectangle is stored in a double variable named length , the width in one named width . Write an expression whose value is the length of the diagonal of the rectangle.
this is what i put:
double diagonal=sqrt((length*length)+(width*width));
but its wrong
2 AnswersProgramming & Design9 years agoWhy do my brakes squeak?
i just changed my wheels and tires and since then whenever i brake it starts to squeak
but after awhile of driving the squeaking stops then when i park for about an hour and drive again the process of squeaking happens again then it will stop.
Will the squeaking eventually stop?
it was fine with my original wheels and tires
oh and i drive a 2011 scion tc
3 AnswersMaintenance & Repairs9 years agoBinary Operation C++ source code homework help?
Complete the code based on the following.
Prompt the user to enter two integers.
Store the two integers.
Calculate five basic binary operations including addition (+), subtraction (-), multiplication (*), division (/), modulus (%).
Display the calculated results
1 AnswerProgramming & Design9 years agoneed help to develop a C++ program?
Develop a C++ program to:
• read a long character string from the keyboard
• print out the length of the string
• convert all uppercase letters to lower case
• remove all spaces and non-letters from the string
The length of the string is unknown.
Test your program on the following strings (type them in exactly)
A man, a Plan, a Canal – Panama!
Able was I, ere I saw Elba
i don't even know how to start.
1 AnswerProgramming & Design9 years agocalculus 2 homework help?
1.) suppose Ms. Richardson is buying a new house and must borrow $150,000. She wants a 30-year mortgage and she has two choices.She can either borrow money at 7% per year with no points, or she can borrow the money at 6.5% per year with a charge of 3 points. (a "point" is a fee of 1% of the loan amount that the borrower pays the lender at the beginning of the loan. For example, a mortgage with 3 points requires Ms. Richardson to pay $4500 extra to get the loan.) As an approximation, we assume that interest is compounded and payments are made continuously. Let
M(t)= amount owed at time t (measured in years),
i = annual interest rate, and
p= annual payment
Then the model for the amount owed is
(dM/dt)= iM - p
(a) How much does Ms. Richardson pay in each case?
(b) Which is a better deal over the entire time of the loan (assuming Ms. Richardson does not invest the money she would have paid in points)?
(c) If Ms. Richardson invest the $4500 she would have paid in points for the second mortgage at 5% compounded continuously, which is the better deal?
thanks is advance I don't know why this problem is giving me trouble...
1 AnswerMathematics9 years agocalculus 2 homework help?
Suppose we know that the amount of a substance S grows at a rate of proportional to the square of its difference from its maximal amount M.
a) write a differential equation which models the situation.
b) find a general solution to the differential equation.
c) find the specific solution satisfying s(0)=1, if the constant of proportionality is 3 and M=2
1 AnswerMathematics9 years agoWhat protein powder will help me the most?
i am trying to bulk up and get ripped
i am also tryin 2 gain weight
i just got my gym membership
which powder will give me results fast
i am 5 6 130 pounds.....i am 18 years old
3 AnswersDiet & Fitness1 decade agoHow can i send my ebay refund money to my recently made paypal account?
I bought something off of ebay and returned it and received my refund through paypal
i have the receipt number
but how can i get that money onto my paypal account???
I bought something off of ebay and returned it and received my refund through paypal
i have the receipt number
but how can i get that money onto my paypal account???
2 AnswersPersonal Finance1 decade agoWhat is the value of my 1999 nissan pathfinder se?
it has slightly under 134000 miles
2 AnswersBuying & Selling1 decade agoCan i debunk the myth that almonds increase your memory?
are there studies that prove this myth wrong?
2 AnswersMental Health1 decade ago