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.
Jacob
Can someone help me get my external CSS to work?
I'm trying to get my html file to link with the css file. The css and html files are together and the background the css refers to is in a file within the project file called images
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="coolcat.css"/>
<title>Cool Cats</title>
</head>
<body>
<p>ljljlj</p>
</body>
</html>
CSS
body {
background: url(".../images/background.jpg");
}
2 AnswersProgramming & Design6 years agoHow can I remove or set a primary hard drive partition?
My hard drive has two partitions, one for the operating system and one for everything else. My computer automatically saves everything to the operating system partition which only has 50 ish GB of space, and now it is completely full. I either need to delete a partition or make it so that everything automatically saves to the empty partition.
2 AnswersDesktops7 years agoHow can you add text and a number to a list box in vb.net?
I need to add the phrase "save" dblTotalB(which is $20.00) "with package B" to a list box. This is what I tried and it doesn't work.
If rdPackA.Checked = True Then
decSavingsB = (14.95 + ((dblHours - 20))) * (1 - dblDiscountRate)
decTotalB = (decSavingsB - dblTotal) * -1
lstDisplay.Items.Add(("Save" + decTotalB + "with package B").ToString("$#.00"))
End If
Please help!
3 AnswersProgramming & Design7 years agoformat data in listbox VB.net?
i'm creating a program for school that had you choose between three different options for an internet service provider. The output will be the cost of the package you selected in a text-box, as well as how much you would save with the other packages in a list box. I think I almost have it figured out but the text in the list box comes out wrong. the answer will come out as -20.000000004. I need the number to appear as $20.00, is there anyway to do this? I appreciate the help!
here is where I assign the items to the list box
lstDisplay.Items.Add(dblSavingsB - dblTotal)
1 AnswerProgramming & Design7 years agojava script function syntax?
An especially useful application of reusable code is if/else statements. These can be very wordy, and a pain to type repeatedly.
We are going to write a function that takes a person's income as the parameter. Inside the function will be an if / else statement. We want the function to be available to check whether many different people's income qualifies for them for a credit card.
Write a function called creditCheck that takes the parameter income.
Inside the function, write an if statement where if the income is greater than or equal to 100, the computer will return "You earn a lot of money! You qualify for a credit card."
If the income is less than 100, have the computer return "Alas you do not qualify for a credit card. Capitalism is cruel like that."
Call the function passing in an income of 75
AFTER you call it with 75, call it with 125
AFTER you call it with 125, call it with 100. Have to be sure!
my code {var creditCheck = function (income)
if (income > or === 100)
{
return ("You earn a lot of money! You qualify for a credit card.")
};
else
{
return ("Alas you do not qualify for a credit card. Capitalism is cruel like that.")
};
console.log(creditCheck(75))
console.log(creditCheck(125))
console.log(creditCheck(100))
}
The error says missing operand; found if
1 AnswerProgramming & Design8 years agojava script functions?
Write a function called perimeterBox that returns the perimeter of a rectangle.
It should have two parameters.
One formula for perimeter is length + length + width + width
Call the function and pass in any value for length and width you like.
var parameterBox = function(length,width){
return (length+length+width+width);
};
parameterBox(3,9);
error: You did not define function perameter box
2 AnswersProgramming & Design8 years agohtml practice help. I opened the following in Firefox and it just showed the source code?
/*I realize it isnt pretty but like i said just practicing
<!Doctype html>
<html>
<Body>
<h1>Tapenade (Olive Spread)</h1>
<p>This is a really simple dish to prepare and it's always a big hit at Parties. My father recommends:</p>
<blockquote> "make this the night before so that the flavors habe time to blend. Just bring it up to romm temp before you serbe it. In ther winter, try serbing it warm."</blockquote>
<h2>Ingredients</h2>
<ol>
<li>8oz. Jar sundried tomeatoes.</li>
<li>Large garlic cloves</li>
<li>3 c. kalamata olives</li>
<li>3 4 3 </li>
</ol>
<h3>Instructions</h3>
<pre>
Combine tomatoes and garlic in a food processor.
add capers and olives.
serve on thin toast.
</pre>
</body>
</html>
2 AnswersOther - Internet8 years agoMartial art knee problem?
Im learning a new martial art called muay chaiya, and i love it! The only problem is that it teaches to block with your knee instead of your shin. Would blocking with your knee be a bad idea? Is there a part of the knee that would be best to block with?
3 AnswersMartial Arts8 years agovb.net Driver License Exam App?
I need to create an app that grades 20 multiple choice choices, with the correct answers stored in an array. The results must be displayed in another form(which questions they missed and got right, and whether they passed or failed. Im not getting any error messages and I cant locate any logic errors please help!
Public Class Form1
Private Sub btnScore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnScore.Click
Dim strCorrectAnswers() As String = {"B", "D", "A", "C", "A", "B", "A", "C", "D", "B", "C", "D", "A", "D", "C", "C", "B", "D", "A"}
Dim blnInput(19) As Boolean
Dim intCorrect As Integer = 0
Dim intValid As Integer = 0
Dim intCount As Integer = 0
Dim strAnswer(19) As String
Dim frmResults As New frmResult
strAnswer(0) = txtOne.Text
strAnswer(1) = txtTwo.Text
strAnswer(2) = txtThree.Text
strAnswer(3) = txtFour.Text
strAnswer(4) = txtFive.Text
strAnswer(5) = txtSix.Text
strAnswer(6) = txtSeven.Text
strAnswer(7) = txtEight.Text
strAnswer(8) = txtNine.Text
strAnswer(9) = txtTen.Text
strAnswer(10) = txtEleven.Text
strAnswer(11) = txtTwelve.Text
strAnswer(12) = txtThirteen.Text
strAnswer(13) = txtFourteen.Text
strAnswer(14) = txtFifteen.Text
strAnswer(15) = txtSixteen.Text
strAnswer(16) = txtSeventeen.Text
strAnswer(17) = txtEighteen.Text
strAnswer(18) = txtNineteen.Text
strAnswer(19) = txtTwenty.Text
For intCount = 0 To (strCorrectAnswers.Length - 1)
If strAnswer(intCount).ToUpper().Equals("A") Or
strAnswer(intCount).ToUpper().Equals("B") Or
strAnswer(intCount).ToUpper().Equals("C") Or
strAnswer(intCount).ToUpper().Equals("D") Then
If strCorrectAnswers(intCount).Equals(strAnswer(intCount).ToUpper()) Then
intCorrect += 1
blnInput(intCount) = True
intValid = intValid + 1
'Else
' MessageBox.Show("Please enter only A, B, C, or D.")
'End If
End If
End If
Next intCount
If intValid = 20 Then
Dim frmResult As New frmResult
For intCount = 0 To (19)
If (blnInput(intCount) = True) Then
frmResult.lstResult.Items.Add(intCount + 1 & "Correct")
Else
frmResult.lstResult.Items.Add(intCount + 1 & "Answered Incorrectly")
End If
Next intCount
frmResult.lstResult.Items.Add(" ")
frmResult.lstResult.Items.Add("Out of 20 questions, you correctly answered " & intCorrect)
If (intCorrect >= 15) Then
frmResult.lstResult.Items.Add("Passed!")
Else
frmResult.lstResult.Items.Add("Failed.")
End If
End If
End Sub
End Class
3 AnswersProgramming & Design8 years agoVb.net problem help with adding text boxes?
My program will not add txtPart and txtLabor, it says they are strings and cannot be converted to decimal even tho i used CDec
" 'get amount for parts and labor
decLabor = CDec(txtLabor.Text)
decPart = CDec(txtParts.Text)
decPartLabor = decPart + decLabor"
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'declare variables
Dim decOil As Decimal
Dim decFlush As Decimal
Dim decMisc As Decimal
Dim decPart As Decimal
Dim decLabor As Decimal
Dim decPartLabor As Decimal
Dim decTotal As Decimal
Dim decSandL As Decimal
Dim decTax As Decimal
'gets amount for oil change
If chkOil.Checked = True Then
decOil += 26.0
End If
If chkLube.Checked = True Then
decOil += 18.0
End If
'gets amount for flushes
If chkTransmission.Checked = True Then
decFlush += 80.0
End If
If chkRadiator.Checked = True Then
decFlush += 30.0
End If
'gets AMOUNT for misc services
If chkInspection.Checked = True Then
decMisc += 15.0
End If
If chkMuffler.Checked = True Then
decMisc = 100.0
End If
If chkTire.Checked = True Then
decMisc += 20.0
End If
'get amount for parts and labor
decLabor = CDec(txtLabor.Text)
decPart = CDec(txtParts.Text)
decPartLabor = decPart + decLabor
'Gets amount for service and labor
decSandL = decOil + decFlush + decMisc + decFlush + decLabor
'get amount for total
decTotal = decOil + decFlush + decMisc + decFlush + decPartLabor
'get amount for tax
decTax = decPart * 0.06
'display parts
lblParts.Text = decPart.ToString("C")
'display tax
lblTax.Text = decTax.ToString("C")
'display service and labor
lblSAndL.Text = decSandL.ToString("C")
'display total
lblTotal.Text = decTotal.ToString("C")
End Sub
1 AnswerProgramming & Design9 years agowriting functions in vb.net?
why should i write a function when i can just put the code in a button?
1 AnswerProgramming & Design9 years agovb.net help i have a problem with my school program?
for some reason the decParts and decTax(on parts) wont display, it says they cant convert to label because they are strings even tho i used Cdec to convert them.
also i need to use a function and sub procedure in this program how would you suggest i do that?
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'declare variables
Dim decOil As Decimal
Dim decFlush As Decimal
Dim decMisc As Decimal
Dim decPart As Decimal
Dim decLabor As Decimal
Dim decPartLabor As Decimal
Dim decTotal As Decimal
Dim decSandL As Decimal
Dim decTax As Decimal
'gets amount for oil change
If chkOil.Checked = True Then
decOil += 26.0
End If
If chkLube.Checked = True Then
decOil += 18.0
End If
'gets amount for flushes
If chkTransmission.Checked = True Then
decFlush += 80.0
End If
If chkRadiator.Checked = True Then
decFlush += 30.0
End If
'gets AMOUNT for misc services
If chkInspection.Checked = True Then
decMisc += 15.0
End If
If chkMuffler.Checked = True Then
decMisc = 100.0
End If
If chkTire.Checked = True Then
decMisc += 20.0
End If
'get amount for parts and labor
decLabor = CDec(txtLabor.Text)
decPart = CDec(txtParts.Text)
decPartLabor = decPart + decLabor
'Gets amount for service and labor
decSandL = decOil + decFlush + decMisc + decFlush + decLabor
'get amount for total
decTotal = decOil + decFlush + decMisc + decFlush + decPartLabor
'get amount for tax
decTax = decPart * 0.06
'display parts
lblParts = decPart.ToString("C")
'display tax
lblTax = decTax.ToString("C")
'display service and labor
lblSAndL.Text = decSandL.ToString("C")
'display total
lblTotal.Text = decTotal.ToString("C")
End Sub
2 AnswersProgramming & Design9 years agoHow to check input in multiple text boxes?
I am making a rain calculator in vb.net, that finds the total and average rainfall for twelve months. I have twelve text boxes that need validating. I tried if then statements but the error message would show up twelve times. So how would I validate text in all the text boxes at once?
1 AnswerProgramming & Design9 years agoText boxes in vb.net?
Say I have to add information from multiple text boxes. Is the a way I could just say add all the text boxes from my form? It would make this program much easier!
2 AnswersProgramming & Design9 years agoHow much vb.net do i need to know to competently use ASP.net?
I am about to finish up my first programming class and would like to make websites
1 AnswerProgramming & Design9 years agoWhats wrong with vb.net program?
Please don't do it for me just point me in the right direction. Its for class and i don't want to cheat. I cant get in touch with my instructor.
'Declare variable and constant
Dim decWeight As Decimal = 0 'txtweight as variable Decimal
Dim decDistance As Decimal = 0 'txtDistance as variable Decimal
Dim decTotal As Decimal = 0 'lblTotal as variable Decimal
Const decShipOne = 0.01 'shipping rate one as constant
Const decShipTwo = 0.015 'Shipping rate two as constant
Const decShipThree = 0.02 'shipping rate three as constant
Const decShipFour = 0.025 'shipping rate four as constant
'Range Checking
decWeight = CDec(txtWeight.Text)
If decWeight < 0 Or decWeight > 20 Then
MessageBox.Show("Please enter numeric values between 0 and 20")
End If
decDistance = CDec(txtWeight.Text)
If decDistance < 10 And decDistance > 3000 Then
MessageBox.Show("Enter distance between 10 and 3000")
End If
'Convert txtDistance
decDistance = CDec(txtDistance.Text)
'Calculate Shipping :,(
If decWeight < 2 Then
decWeight = decShipOne And decShipOne * decDistance = decTotal
End If
lblTotal.Text = decTotal.ToString("C")
3 AnswersProgramming & Design9 years agoShould I start my own business?
I am starting my own repair business until I gety bachelors degree in 2 years.(computer science) After I graduate should I join a company or add software and web design to my current business. Would really like to be my own boss I have authority issues.
2 AnswersProgramming & Design9 years agoShould I start a computer business? I am starting a repair business now until I get my bachelors?
I am starting a repair business now until I get my bachelors in computer science (2 years). After that should I add web design and software design to my business or join a company. I have authority issues btw.
2 AnswersOther - Computers9 years ago