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.
Kevin
C# Counting textboxes problem.?
I am asked to calculate the average of the non-zero items within a boxlist with 5 items.
so far I have:
private void addBtn_Click(object sender, System.EventArgs e)
{
decimal sum = 0m;
decimal average = 0m;
decimal counter = 0m;
for (int i = 0; i < boxList.Length; i++)
{
try
{
String x = boxList[i].Text;
sum = sum + Convert.ToDecimal(x);
if (x != "0") //////// This is where I am stuck
{
counter = counter;
}
else if (x == "0")
{
MessageBox.Show("Cannot Divide by Zero");
}
}
catch (FormatException exx)
{
MessageBox.Show(exx.Message + "Sum set to 0", "Sum Error");
sum = 0;
break;
}
average = sum/counter;
resultBox.Text = average.ToString();
}
any help would be appreciated
1 AnswerProgramming & Design1 decade agohvac units for apartment buildings?
If an apartment building has been completely remodeled with all new appliances/HVAC units, and insulation, would there be a reason why they would shut off the AC for all units until may of this coming year?
3 AnswersMaintenance & Repairs1 decade agorecommended time period for bullets to remain in clip?
In a modern SR9 Ruger 9mm, how long can a clip remain fully loaded without having an effect on the springs.
8 AnswersHunting1 decade agoWhere to buy plastic bottles?
I am looking for a bottle that looks similar to the Naked or Odawalla drinking bottles, but cannot find anything on the web. Anyone know of a site that has anything like that?
2 AnswersNon-Alcoholic Drinks1 decade agoWiring problem in Bass Cabinet?
I've checked out all the speakers, non are blown, but when playing it tends to make a cracking noise. This is a Peavey 4x10 cab. Always worked well, what might be the problem.
2 AnswersOther - Music1 decade agoBarn Apartment conversion?
Is it possible to convert a pole barn into rentable apartments. Are there zoning ordinances which do not allow this type of investment properties?
3 AnswersRenting & Real Estate1 decade agoWhat is one thing during the day you don't like to do?
What is one or more thing(s) that you do daily, weekely, or monthly, that you wish you could avoid, or have someone else take care of it?
example: getting gas, going to the bank, laundry.
5 AnswersOther - Home & Garden1 decade agoGluten Allergy?
If one has a wheat gluten or any gluten intolerance, does it affect a person if it is used topically? If so how?
2 AnswersAllergies1 decade agoGood Desktop Computer for Architecture?
I work on a Dell in the office. I'm looking to get one for school. What computers are good enough to handel high end design.
1 AnswerDesktops1 decade agoIs it possible to talk to a mac user through webcam with a normal laptop?
I am looking into purchasing a webcam. All my friends purchased the Mac notebook, talk to each other through the webcam program.
Is it possible to connect with others from a normal PC to a MAC?
2 AnswersLaptops & Notebooks1 decade agoArchitectural Computer Renderings?
Hello Everyone,
I am an architecture student working with an architecture firm making 3d Digital Models of various projects.
I was thinking about going out and doing a small side project to see if anyone else needs this visual aid as well.
I know seeing things from a 3d perspective can give one better understanding of a building rather than just elevations.
What do you think?
If you were putting on an addition onto your home
planning on designing a new home
Renovating a large industrial building,
would you pay to see what it looks like 3 dimensionally?
2 AnswersDecorating & Remodeling1 decade agoSelling a product?
How hard is it to sell a product. I do not have any myself to sell. I just have a general question for those who aspire to sell their own product or idea. Would you consider options such as marketing the product with a small company, go at it yourself, or some other option. I am just curious as to the process of how one goes about promoting their own product.
1 AnswerSmall Business1 decade agoA quick question for the career path of Marketing?
Like every Career I've heard of, there are mixed emotions and the Pro's and Con's of everything. I am currently finishing a associates in Architecture and want to take a change towards marketing. I have long term goals which will include these skills, and would like some input on the occupation. Are you, your friend, relative, in the field of Marketing? I feel this could be a new way to express my creativity but would like more information on schooling and the career in general.
3 AnswersMarketing & Sales1 decade agoMarketing/Advertising Career?
Like every Career I've heard of, there are mixed emotions and the Pro's and Con's of everything. I am currently finishing a associates in Architecture and want to take a change towards marketing. I have long term goals which will include these skills, and would like some input on the occupation. Are you, your friend, relative, in the field of Marketing? I feel this could be a new way to express my creativity but would like more information on schooling and the career in general.
2 AnswersMarketing & Sales1 decade agoWhen you hear "Organic" or "Natural"?
How can you describe your interpretation of Organic and Natural foods and products? In your own words, describe what you first think or feel, when you see/hear the words “Organic or Natural.” I’m doing some research for my marketing class on the effectiveness of advertising of the Organic Food market, and need some help from others to illustrate my thoughts. I need to advertise this idea and want to really grasp the attention of my consumer (professor) and just need some descriptive words/thoughts/phrases of what you believe describe the Organic Industry
12 AnswersOther - Environment1 decade agoWhen you hear "Organic" or "Natural"?
When you hear "Organic" or "Natural"?
How can you describe your interpretation of Organic and Natural foods and products? In your own words, describe what you first think or feel, when you see/hear the words “Organic or Natural.” I’m doing some research for my marketing class on the effectiveness of advertising of the Organic Food market, and need some help from others to illustrate my thoughts. I need to advertise this idea and want to really grasp the attention of my consumer (professor) and just need some descriptive words/thoughts/phrases of what you believe describe the Organic Industry.
4 AnswersOther - Food & Drink1 decade agoWhen you hear "Organic" or "Natural"?
How can you describe your interpretation of Organic and Natural foods and products? In your own words, describe what you first think or feel, when you see/hear the words “Organic or Natural.” I’m doing some research for my marketing class on the effectiveness of advertising of the Organic Food market, and need some help from others to illustrate my thoughts. I need to advertise this idea and want to really grasp the attention of my consumer (professor) and just need some descriptive words/thoughts/phrases of what you believe describe the Organic Industry.
10 AnswersVegetarian & Vegan1 decade agoIf you had to choose a Job?
What job would you choose. I mean a real career path that you may have wanted to pursue, but didn't. I want to be an Entrepenuer, Architect, or an Investor, Maybe all three.
5 AnswersOther - Careers & Employment1 decade agoA Question for the Entrepenuer.?
how did you start your business. Not in extreme detail, but, how did you determine that your idea was worth pursuing. I want nothing more than to one day, have my own business, but have so many ideas, it's so complicated to figure one thing out. I'm not asking for personal advice for myself, but something from you on your experience.
4 AnswersSmall Business1 decade agoArt Store- Architecture, Interior Design, Graphic Design, Fine Arts... and so on!?
I am currently doing research for an entrepreneurship class with intentions on starting an art supply store. I was thinking of creating a store with intentions of supplying students, design firms, and current artists with specific supplies that may be tough to find in other general art stores. I would love to include some other ideas I have for this (which are plentiful) but also have feedback from other artists and designers and their thoughts. I am an architecture student, but am taking business classes, and I know how it is difficult to get the supplies needed. What are your thoughts? Specific supplies, how much you spend on supplies, what are you looking for that is hard to find, the hours of the stores, and how is the atmosphere in the stores you typically enter?
I would love some feedback from the consumers.
Thank you!
2 AnswersOther - Arts & Humanities1 decade ago