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.

krd004
Simple VB question anyone ?
I have a small project to reverse first and last names, add a comma in between, and display in a label. I am thinking the indexOf substring for the lastName is incorrect. Zero as the count doesnt seem to work. The App. does display the comma and then first name but the last name to display before that is not happening.
Any suggestions?
Thanks in advance.
Dim fullName As String
Dim firstName As String
Dim lastName As String
Dim indexNum As Integer
fullName = nameTextBox.Text
indexNum = fullName.IndexOf(" ")
firstName = fullName.Substring(0, indexNum)
lastName = fullName.Substring(indexNum, 0)
displayNameLabel.Text = (lastName & (",") & firstName)
2 AnswersProgramming & Design1 decade agoEconomics question please
Using the midpoint method of elasticity to calculate price elasticity of demand eliminates the problem of :
a. different elasticities, depending on whether price decreases or increases
b. different elasticities because price and quantity are inversely related on the demand curve
c. total revenue falling when price falls and demand is inelastic
d. total revenue increasing when price
Along the upper end of a linear demand curve, the price elasticity of demand will be:
a. price inelastic
b. price elastic
c. unit-price elastic
d.positive
If a good is a necessity with few substitutes, then the price elasticity of demand will tend to be :
a. more price elastic
b. less price elastic
c. equal to 1
d. the same as that of a luxury good
I got a., b, and a. Is that correct?
1 AnswerEconomics1 decade agoMore Economics questions
Just checking my results w/the experts :-)
Price for a firm under monopolistic competition is :
a. equal to marginal revenue
b. greater than marginal revenue
c. less than marginal revenue
d. greater than total revenue
If a firm under monopolistic competition is producing a quantity that generates MC > MR, then the marginal decision rule tells us that profit :
a. can be increased by increasing production
b. can be increased by decreasing production
c. can be increased by decreasing the price
d. is maximized only if MC = P
If external costs exist, the competitive free market :
a. allocates resources inefficiently
b. allocates resources efficiently
c. automatically corrects an overallocation of resources
d. automatically corrects an underallocation of resources
I got b., a., and c in that order. Am I right?
Thanks
2 AnswersEconomics1 decade agoEconomics questions please
A curve that shows the quantity of a good or service supplied at various prices after all long-run adjustments to a price change have been completed is a long-run :
a. marginal revenue curve
b. marginal cost curve
c. industry supply curve
d. production curve
Whatever the time period involved, a consumer's spending will be _______ by his or her :
a. unlimited; marginal utility
b. limited; marginal utility
c. limited; budget
d. unlimited; budget
Assume that a person is consuming the utility-maximizing quantities of pork and chicken. We can conclude that :
a. the price of pork equals the price of chicken
b. the marginal utility of pork equals the marginal utility of chicken
c. the ratio of the marginal utility to price is the same for pork and for chicken
d. both A and B are true
3 AnswersEconomics1 decade agoEconomics questions please help
Marginal revenue :
a. is the slope of the average revenue curve
b. equals the market price in perfect competition
c. is the change in quantity divided by the change in total revenue
d.is the price divided by the changes in quantity
The supply curve found by summing up the short-run supply curves of all the firms in a perfectly competitive industry is called the:
a. firm's marginal cost curve
b. short-run market supply curve
c. the interim market supply curve
d. competitive curve
When a perfectly competitive firm is in long-run equilibrium, the firm is :
a. producing at maximum average total cost
b. producing at maximum average variable cost
c. producing at minimum marginal cost
d. producing at minimum long-run average total cost
I got b., b., and d. respectively but want to make sure.
Thanks
1 AnswerEconomics1 decade agoVisual Basic frustrations :-(?
We are supposed to access a txt file, modify it's contents then write the modified file to another file. All of my examples are showing how to read from a file then send it to a list box or text box, none of them show us how to read from it, then modify it, then write to another file, without having a text box or something to save it in. I tried using a variable to store it, but still no luck. I have tried about 20 different versions of code and nothing. I am pretty frustrated to say the least. One problem is that you have to find the code that works and try it, if it does not work, back to square one because there is no way to tell where you went wrong.
Can anyone help? It would be greatly appreciated. Thanks in advance.
4 AnswersProgramming & Design1 decade agoMore logarithms?
the answer to this eludes me...anyone?
(16x^4y)^1/4 / (256xy^3)^3/4
1 AnswerMathematics1 decade agoMore quadratics??? Yikes!?
According to the 1998 Guinness Book of World Records stuntman Dan Koko fell a distance of 379 feet into an airbag after jumping from the Vegas World Hotel and Casino. The distance d in feet traveled by a freefalling object in t seconds is given by the formula d = 16t 2. To the nearest tenth of a second, how long did the stuntman's freefall last?
Select the correct answer.
4.9 seconds
3.7 seconds
6.0 seconds
6.4 seconds
none of these
A rectangle is 4 feet longer than it is wide, and its area is 12 square feet. Find its dimensions.
Select the correct answer.
7 ft., 3 ft.
4 ft., 0 ft.
3 ft., -1 ft.
6 ft., 2 ft.
none of these
2 AnswersMathematics1 decade ago2 quadratics questions...?
The height h (in feet) of an object that is dropped from the height of s feet is given by the formula h = s - 16t ^2 , where t is the time the object has been falling. A 6 foot tall woman on a sidewalk looks directly overhead and sees a window washer drop a bottle from the 5 story. How long does she have to get out of the way? Round to the nearest tenth. (A story is 12 feet.) Choose the answer from the following:
1.6 seconds
1.8 seconds
2.3 seconds
1.7 seconds
The hypotenuse of a right triangle is 2.8 units long. The longer leg is 1.8 units longer than the shorter leg. Find the lengths of the sides of the triangle.
2.8, 2.7, 0.9
2.6, 0.8, 2.8
0.7, 2.5, 2.8
2.8, 1.8, 4.7
2 AnswersMathematics1 decade agoSimple algebra... anyone game?
Which is the correct answer and breakdown, A. or B.
Simplify:
2 – 3[-4 + 6] ÷ (-2)
A.
steps:
[-4+6]
=2
=2-3(2)/ (-2)
= -1(2)/ (-2)
= -2/(-2)
answer=1
B.
steps:
= 2-3[2] ÷ (-2)
= 2(-6) ÷ (-2)
= -12 ÷ (-2)
answer=6
10 AnswersMathematics1 decade agoUsing an array...?
I am formulating a flowchart for a program with 2 items to track. Is it acceptable to use an array? What would be an example?
2 AnswersProgramming & Design1 decade agoYahoo email delays today?
Anyone else experiencing up to 2 hour delays on incoming email today?
2 AnswersOther - Yahoo Mail1 decade agoLoops that do not process data???
I got hit with this question recently. Can't seem to find an answer...
How might you use a loop in a program, other than reading through a file and processing records?
Anybody?
4 AnswersProgramming & Design1 decade agoControversial flowchart, second saga...?
Ok, a simple counter loop.
Instructions: Design the logic for a module that would print every number from 1 through 10. A loop must be used in this flowchart.
I did a while loop---have the terminal symbols, set the counter to zero, numCounter<10? Print Number --- numCounter=numCounter+1--- back to flow of decision. numCounter>10, return to mainline.
I am told that something is missing in the output. I did this as a do-while loop, and a do-until loop.
What is missing in the output? The print statement is there, the logic flows to the next level but I am being told the output is incorrect. Maybe another process symbol before the return? Print something or read the next file? (no next file that I know of). So...whats missing exactly?
1 AnswerProgramming & Design1 decade agoA controversial flowchart...?
A simple counter loop (while) (until 10). I have the terminal symbols, re-set the counter, print the first num, num+1, back to the flow of decision, numCounter<10. Flow after completion(>)=return to mainline. I am told that I am missing something in the output. Any ideas?
Maybe a FOR loop? I did the do until loop, still something missing.
3 AnswersProgramming & Design1 decade agoI am starting IT courses next week...?
Are you guys going to be there when I have questions? lol.
Hope so.
2 AnswersOther - Computers1 decade agoI need a cheap version of PowerPoint 2003?
My new system came with Office 2003 and has everything BUT PowerPoint. Is there an inexpensive version available without having to purchase the whole Office software?
1 AnswerSoftware1 decade ago