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.

Lv 2574 points

Amauri Tapia

Favorite Answers10%
Answers154
  • Attachment image

    Redox Equation?

    Can anyone explain how I would balance the half reaction that is all the way to the bottom? What do I need to with the Fe(OH)3 and FeO4^-2.

    1 AnswerChemistry6 years ago
  • Linux Shell Script Command?

    Our professor wants us to write some shell scripts for 2 problems that he assigned, but I have a little problem, I have no idea how to do it. So if someone can help me and explain how it works, that would be very helpful.

    In the first problem, he wants us to write a script that shows the current directory you're in and to add up all the sizes of the files. In the end, the output should give the total size. I tried using the pwd command and adding extensions to it, but I got nothing.

    The second problem, it asks to write a script that creates files in the directory above, one for each day of the week with the following format: YYMMDD.dat. Then the second part of this is to write another script that renames it by given it the day of the week. So for example if you have 150307.dat that would become SATURDAY.dat.

    2 AnswersProgramming & Design6 years ago
  • Java Programming.?

    When I try to write the complete algorithm for this program, there are come couple of lines that I don't have right, and I don't know why.

    Write a program that accepts user input from the console. The program should take a number and then test for the following age ranges: 0 to 10, 11 to 20, 21 to 30, 30 and over. Display a message in the Output window in the following format:

    user_age + " is between 21 and 30"

    If the user is 30 or over, you can just display the following message:

    "You are 30 or over"

    Exercise C:

    Scanner user_input = new Scanner(System.in);

    System.out.print("Enter your age: ");

    int age = user_input.nextInt();

    switch ( age ) {

    case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10:

    System.out.println( ____ + " is between 0 and 10");

    break;

    _____________________________________________________________________

    System.out.println(age + " is between _____________");

    break;

    case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30:

    System.out.println(age + "_________________");

    break;

    default:

    System.out.println("_____________");

    1 AnswerProgramming & Design7 years ago
  • Help with a Java Program.?

    How is the algorithm for this program suppose to be?

    Use a for loop to print out the odd numbers from 1 to 10. (For the easy way to do this exercise, think about the increment value of the loop, which is the third item between the round brackets.)

    One of the hard ways to do the exercise above is by using an operator you haven't yet met - the modulus operator. Modulus is when you divide by a number and keep the remainder. So 10 Mod 3 is 1, because 10 divide by 3 is 3. The remainder is 1, and that's what you keep. The Modulus operator in Java is the percentage sign, rather confusingly. It's used like this:

    int remainder;

    int total = 10

    remainder = total %3

    So the number (or variable) you want to divide up goes first. You then type a percentage sign, followed by your divider number. The answer is the remainder.

    int loopVal;

    int end_value = ________;

    int oddNum = 0;

    for (loopVal = 1; loopVal < end_value; loopVal____) {

    oddNum = ________;

    if (oddNum __ ____) {

    System.out.println("odd number = " + loopVal);

    }

    }

    3 AnswersProgramming & Design7 years ago
  • Help with a Java Program.?

    So my professor wants us to write a program for this...

    Write a complete Java program that uses a for loop to compute the sum of the even numbers and the sum of the odd numbers between 1 and 25.

    public class sumEvenOdd

    {

    public static void main(String[] args)

    {

    (1)……………… = 0;

    int oddSum = 0;

    //loop through the numbers

    for(int i=1; i <= 25; i++)

    {

    if(i % 2 == 0)

    {

    //even number

    evenSum += i;

    }

    else

    {

    (2)…………………………………..;

    }

    }

    //Output the results

    (3)…………………………………………;

    System.out.println("Odd sum = " + oddSum);

    }

    }

    for 1) I think that its "int evenSum =0)

    2) " // oddnumber

    oddSum +=i"

    and for 3, I don't have a clue.

    2 AnswersProgramming & Design7 years ago
  • Attachment image

    Can someone help me on how to prove these propositions?

    I don't know what they mean, and if you can explain it, that would be really helpful. And an if you can do one, that would be great.

    1 AnswerMathematics7 years ago
  • Attachment image

    Can someone give me some ideas ideas to prove these propositions?

    For numbers 112-116, I'm having trouble understanding what they mean, so if you can explain what it means, that would be great. And also if you can give me an example for any of them, that would be even better.

    1 AnswerMathematics7 years ago
  • Attachment image

    Logic, Negation and Contrapositive?

    I was wondering if someone could help me with this proof. Is it right or wrong? And if it's wrong may someone explain why?

    If you can't read my writing the exercise says:

    Prove that the statement "if A then B" is true exactly when the contrapositive, "if not B then not A."

    1 AnswerHomework Help7 years ago
  • May someone help me with this physics problem?

    The question is...

    An atom of beryllium (m = 8 units) splits into two helium (m=4 units) with the release of energy of 92.2 electron volts of energy. If the original beryllium atom is at rest, find the kinetic energies and speeds of the tow helium atoms.

    I tried using the Law of Conservation of Momentum, but I don't know if that's what I should do.

    1 AnswerPhysics7 years ago
  • Visual Basic Programming Help?

    I have to make an auto loan calculator, I created the basic code, but my professor want us to change the interest rate depending on the credit score of the buyer. I am not sure how to do it.

    Here's what our professor asked us to do:

    1. Amount of the loan (vehicle coast)

    2. Down Payment

    3. Number of months

    4. New or Used Car

    5. Annual interest rate, the interest rate is a function of the credit score of the buyer

    a. credit score of 700-699 interest rate is 2%

    b. credit score of 600-699 interest rate is 3%

    c. credit score of 500-599 interest rate is 4%

    d. credit score of 400-499 interest rate is 5%

    e. credit score less than 400 interest rate is 10%

    6. If the car is a new car than 0.5% will be added to the interest rate

    And here is my code.

    Thanks for the help.

    Public Class Form1

    'Class Level Constants

    Const dblMONTHS_YEAR As Double = 12 'Months Per Year

    Const dblNEW_RATE As Double = 0.05 'IR, New Car

    Const dblUSED_RATE As Double = 0.08 'IR, Used Car

    'Class Varible to hol the annual interest rate

    Dim dblAnnualRate As Double = dblNEW_RATE

    Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click

    Dim dblVehicleCost As Double 'Cost

    Dim dblDownPayment As Double 'Down Payment

    Dim intMonths As Integer '# of months for the loan

    Dim dblLoan As Double 'Amount of loan

    Dim dblMonthlyPayment As Double 'Monthly Payment

    Dim dblInterest As Double 'Interest Paid for the period

    Dim dblPrincipal As Double 'Principle paid for the period

    Dim intCount As Integer 'Counter for the loop

    Dim strOut As String ' Used to hold a line of output

    Dim blnInputOk As Boolean = True

    'Get the vehicle cost, validating at the same time.-

    If Not Double.TryParse(txtCost.Text, dblDownPayment) Then

    lblMessage.Text = "Vehicle cost must be a number."

    blnInputOk = False

    End If

    'Get the down payment, validating the same time.

    If Not Integer.TryParse(txtMonths.Text, intMonths) Then

    lblMessage.Text = "Months must be an integer."

    blnInputOk = False

    End If

    If blnInputOk = True Then

    'Calculate the loan amount and monthly payment

    dblLoan = dblVehicleCost - dblDownPayment

    dblMonthlyPayment = Pmt(dblAnnualRate / dblMONTHS_YEAR, intMonths, -dblLoan)

    End If

    'Clear the list box and message label.

    ListBox1.Items.Clear()

    lblMessage.Text = String.Empty

    For intCount = 1 To intMonths

    'Calculate the interes rate for this period.

    dblInterest = IPmt(dblAnnualRate / dblMONTHS_YEAR, intCount, intMonths, -dblLoan)

    'Calculate the principal for this Period.

    dblPrincipal = PPmt(dblAnnualRate / dblMONTHS_YEAR, intCount, intMonths, -dblLoan)

    'Start Building the output string with the month.

    strOut = "Month" & intCount.ToString("d2")

    'Add the payment amount to the output string.

    strOut &= ":payment =" & dblMonthlyPayment.ToString("n2")

    'Add the interest amount to the output string.

    strOut &= ", interest =" & dblInterest.ToString("n2")

    'Add the principal for the period.

    strOut &= ", principal =" & dblPrincipal.ToString("n2")

    'Add the output string to the list box

    ListBox1.Items.Add(strOut)

    Next

    End Sub

    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click

    radNew.Checked = True

    dblAnnualRate = dblNEW_RATE

    lblAnnualRate.Text = dblNEW_RATE.ToString("p")

    txtCost.Clear()

    txtDownPayment.Clear()

    txtMonths.Clear()

    ListBox1.Items.Clear()

    lblMessage.Text = String.Empty

    txtCost.Focus()

    End Sub

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click

    Me.Close()

    End Sub

    Private Sub radNew_CheckedChanged(sender As Object, e As EventArgs) Handles radNew.CheckedChanged

    If radNew.Checked = True Then

    dblAnnualRate = dblNEW_RATE

    lblAnnualRate.Text = dblNEW_RATE.ToString("p")

    ListBox1.Items.Clear()

    End If

    End Sub

    Private Sub radUsed_CheckedChanged(sender As Object, e As EventArgs) Handles radUsed.CheckedChanged

    If radUsed.Checked = True Then

    dblAnnualRate = dblNEW_RATE

    lblAnnualRate.Text = dblUSED_RATE.ToString("p")

    ListBox1.Items.Clear()

    End If

    End Sub

    End Class

    1 AnswerProgramming & Design7 years ago
  • Visual Basic Programming Help?

    Our professor for my programming class wants us to do a project, but I am stuck. The project is a wage calculator that calculates Federal Tax, State Tax, Net Pay and Gross Pay. The following is what he wants.

    Modify Tutorial 4-8 pages 254 to do the following calculations

    1. Hourly paycheck calculation per week

    i) Pay rate#1 $10 per Hour M-F Up to 40 Hours

    ii) Pay rate#2 $14 per Hour M-F for each additional hour (over the 40 and up to 50 Hours)

    iii) Pay rate#3 $16 per Hour M-F for each additional hour (over the 50 Hours)

    iv) Pay rate#4 $20 per Hour Saturday and Sunday only and number of total hours cannot exceed 10 hours.

    For the paycheck calculation per week you need to add/modify the following labels

    Hours worked M-F this will cover i+ii+iii

    Hours worked S-SU this will cover iv

    2. Tax Calculations

    i. Federal Tax – 12% up to $300 gross pay and any amount more than $300 the Federal will be at 10%.

    ii. State Tax – 20% up to $320 gross pay and any amount more than $320 the State will be at 15%.

    You need to display the gross pay and the net pay

    And this my code:

    Public Class Form1

    Private Sub btnCalculate_Click() Handles btnCalculate.Click

    ' Declare variables

    Dim decPayRate As Decimal ' Hourly Pay Rate

    Dim decGrossPay As Decimal ' Total Gross Pay

    Dim decFederalTax As Decimal 'Federal Tax

    Dim intWeekdays As Integer 'Hours worked on Weekdays

    Dim intWeekendHours As Integer 'Hours Worked On Weekend

    Dim decNetPay As Decimal 'Net Pay

    Dim decStateTax As Decimal 'State Tax

    Dim decGrossPay2 As Decimal 'Gross Pay for Weekdays

    Dim decGrossPay3 As Decimal 'Gross pay for weekends

    lblStatus.Text = String.Empty

    If intWeekdays >= 1 And intWeekdays <= 40 Then

    decPayRate = 10

    decGrossPay2 = intWeekdays * decPayRate

    ElseIf intWeekdays <= 41 And intWeekdays > 50 Then

    decPayRate = 14

    decGrossPay2 = (intWeekdays - 40) * decPayRate

    End If

    If intWeekdays >= 41 And intWeekdays >= 50 Then

    decPayRate = 14

    decGrossPay2 = intWeekdays * decPayRate

    ElseIf intWeekdays <= 50 Then

    decPayRate = 16

    decGrossPay2 = (intWeekdays - 40) * decPayRate

    End If

    If decGrossPay >= 300 Then

    decFederalTax = CDec(0.12)

    ElseIf decGrossPay <= 300 Then

    decFederalTax = CDec(0.1)

    End If

    If intWeekendHours <= 10 Then

    decPayRate = 20

    decGrossPay3 = (intWeekendHours - 10) * decPayRate

    End If

    'Calculate gross pay

    decGrossPay = decGrossPay2 + decGrossPay3

    'Display gross pay

    If Integer.TryParse(txtWeekdays.Text, intWeekdays) Then

    lblGrossPay.Text = decGrossPay.ToString("c")

    End If

    'Calculate Net Pay

    decNetPay = (decGrossPay) - (decFederalTax + decStateTax)

    'Display Net Pay

    lblNetPay.Text = decNetPay.ToString("c")

    'Calculate Federal Tax

    decFederalTax = decGrossPay * decFederalTax

    'Display Federal Tax

    lblFederalTax.Text = decFederalTax.ToString("c")

    'Calculate State Tax

    decStateTax = decGrossPay * decStateTax

    'Display State Tax

    lblStateTax.Text = decStateTax.ToString("c")

    'Calculate Gross Pay 2

    decGrossPay2 = decPayRate * intWeekdays

    'Calculate Gross Pay 3

    decGrossPay3 = decPayRate * intWeekendHours

    End Sub

    With that code, the calculator gives me the same result for different hours worked.

    If would be great if someone could help me.

    1 AnswerProgramming & Design8 years ago
  • How to find the domain of this function?

    I forgot how to get the domain and how use interval notation.

    The function is:

    F(x)= (x-1)/ (x^3-x+1)

    1 AnswerHomework Help8 years ago
  • How to derive this equation?

    (x + x^-1) ^ 3

    1 AnswerHomework Help8 years ago
  • How would you use completing the square in this problem?

    Suppose that the function p=-(1/3)+60 relates the selling price p of an item to the number of x units that are sold. Assume p is in dollars. For which value of x will be the corresponding revenue be maximum? What is the maximum revenue and at what price?

    1 AnswerMathematics8 years ago
  • Find All Real Zeros of a polynomial?

    How do you find all the real zeros of x^4-4x^2-21?

    1 AnswerHomework Help8 years ago
  • BMW 328I Rim Size? Please help.?

    I have a 2000 BMW 328i. And well it has the stock 16 in rims, but I want to buy new ones because I don't like them. I can't find answer to what's the largest size I put on it. So does any one know what's the largest size that would fit?

    3 AnswersBMW8 years ago
  • How to become an astronaut? ?

    Well this has been my childhood dream since the second grade. Now that I'm going to college, I want to pursue it. I plan to get a B.S in aerospace engineering after I get one in physics/astronomy and mathematics which are my greatest passions along with being an astronaut. So what are the requirements both physical and academic to become one?

  • Help with an equation....?

    So my math teacher went over the most famous numbers in the world.

    0

    1

    Pi

    e

    i

    He later showed us an equation where all those numbers equal zero, but I can't remember it, does some know it? I think it's e^(pi+i)+1=0.

    1 AnswerMathematics9 years ago
  • Telescope Recommendation?

    So I'm looking into buying a telescope, I'm an amateur when it comes to choosing one as I have never bought one, but I have always been interested in astronomy ans since I am going to college, I would like a recommendation of a good telescope mostly as for a hobby, but also just in case I may need it for a project.

    4 AnswersAstronomy & Space9 years ago
  • Winged Dragon of Ra Deck?

    I got 2 copies of the Winged Dragon of Ra and I made up a deck with a lot of extra cards that I had, but I don't think it's that efficient and want some advice.

    Monsters: (21)

    Morphtronic Staplen

    Old Vindictive Magician

    Sangan

    Ancient Crimson Ape

    Majestic Mech- Goryu

    Mei-Kou, Master of Barriers

    The Rock Spirit

    Skull Kraken x2

    Gogogo Golem x2

    Marshmallon x2

    Battle Fader x2

    Goblindbergh x2

    Spirit Reaper x2

    Winged Dragon of Ra x2

    Spells: (10)

    Dark Hole

    Heavy Storm

    Monster Reborn

    Soul Exchange x3

    Mystical Space Typhoon x2

    Magical Mallet x2

    Traps: (11)

    Mirror Force

    Metal Reflect Slime

    Scrap-Iron Scarecrow

    Sakuretsu Armor

    Bottomless Trap Hole x2

    Dark Bribe x2

    Aegis of Gaia x3

    3 AnswersCard Games9 years ago