VB Programming Assignment Rainfall Statistics?
Nov 14, 2011
I am suppose to create an application that lets the user enter the rainfall for each of the 12 months into an array,I need total rainfall, avg rainfall, min rainfall and max rainfall. So far doing good but It wont accept input into the listbox..
[Code]...
View 3 Replies
ADVERTISEMENT
Dec 16, 2009
In one of my programs I have a datatable on which i calculate different statistics for different subgroups. In my opinion this is as very timeconsuming proces (at least my solution). I was wondering if there is not a more effecient solution.
CODE:
View 1 Replies
Oct 26, 2011
I have a homework assignment due for Rainfall Statistic and I started the program by dimming the month name and integer. I know how to get the program to input the number of rainfall for each month, but I dont know where to go from there. I'm new with this IT class and i'm just confused on how to do Arrays.
View 5 Replies
Feb 14, 2010
For my programm I was told to do a programm to calculate the total and average rainfall. I have done so, but now I am supposed to use two function procedures to calculate the total and average rainfall. I can not seem to figure it out and it is very frustrating.
[Code]...
View 5 Replies
Jul 15, 2009
Here is my problem. I'm not sure I am doing this correctly but I have two arrays [ strMonths(0) = "January"] etc. for each month and another one that receives input from the user concerning the amount of rainfall for a month. [decRainfall(0) = CDec(strMonths(0))] etc. for each subscript
The app. returns total rainfall for the year, average rainfall, maximum rainfall and minimum rainfall.The max. and min. should return the number that was input by the user and the month associated with that max. and min.I have everything working except for the month string being displayed (returned) after the max., min. number in the labels.
View 4 Replies
Dec 2, 2010
I need to create an console application that computes the average monthly rainfall, number of months with above average rainfall, and the number of months with below average rainfall, given the rainfall amounts for each month in a particular year. The program must read in and store in an array the monthly rainfall amounts entered by the user one by one.
So far this is what I have got
Const intMonths As Integer = 11 'Constant Month variable
Dim sngRainfall(intMonths) As Single 'Rain for the month
Dim intCount As Integer ' Loop Counter
Dim sngTotalRainfall, sngAvgRainfall As Single 'Total and Average Rainfall
[Code] .....
How to set this up properly and I am having a real hard time figuring out how to make the data go from this loop to another and add the data to the total.
View 15 Replies
May 8, 2012
Just working on a project an wanted to know how to show cpu statics like mem usage, free space ect
View 1 Replies
Mar 15, 2010
Im trying to programme a form to calculate rainfall total,average,maximum, and minimum.how do I create the input box that opens to input the info I cant seem to find it in the tool box. Am i Missing something, and how do I set a array to calculate?
View 2 Replies
Oct 14, 2011
I am trying to write a code using VB 2008 (console) thats ask's the user to enetr the rainfall for the month. At the end of the year it will give him the average, total, highest, and lowest rainfall for the year. I have wrote the code for total and average but I have no idea where to start for higest and lowest month. I want it to display the month (July) and the measurement (6.3) for the higest and lowest month. This is what I have so far.
Module Module1
Sub Main()
Dim month(0 To 12) As String
Dim rain(0 To 12) As Double
[CODE]........................
View 4 Replies
Mar 5, 2010
In our company we are using PHP to display graph from statistics in SQL over webpage. So anywhere just access the website and input the date will display statistics over the webpage of the company.
My question now is, will VB.net can do that to link SQL and display it over the webpage? Or do I need to have special software to use?
If VB.net can do it? Is there any tutorial link you can recommend for me? Video link much better.
View 1 Replies
May 27, 2012
I'm a novice that has developed a data processing application for which statistics regarding the processing status are recorded in the application window. All works well until an arbitrary point at which the statistical upates to the window cease. When the application finishes, then the application window properly displays the final results. However, intermediate to the completion of the application, all updates to the status window are suspended. Can you please inform me of the means by which I can continue to display the status updates when other activities appear to interrupt the updates prior to completion?
View 2 Replies
Mar 13, 2010
Im Wirting a Program that ask a user to Input Rain Fall of Each Month Im using Arrays for this, then once a user clicks on Display Stats, the user should see Annaul Rain Fall, Average Rain fall, Min Rain Fall and finaly Max Rain Fall,Ok any way the Program is Working away but the Min and Max Rain fall is Showing 0.
(code)
Public Class Form1
'Const IntNum_Months As Integer = 11
Const intNum_Months As Integer = 11
[code]....
i tryed a Val1 < Min and also a Val2 > Max, in Array(1) but this didnt work either.
View 5 Replies
Jun 7, 2011
What would be the best way to show how many users are using your Application. For instance, Having a label show how many users have used it/are using it.
View 1 Replies
Jan 3, 2011
I want to make a game statistics calculator. For this I choose to make a XML database with the base stats of the characters.
I've made a small XML file in the VS2010 project with 1 class stats and made a list to 10 levels (to lazy atm to write all 85).
the XML looks like this:
<BASIC_CHARACTER_STATS>
<Levels>
<level id="1">1</level>
[Code]....
On the Form1.vb I've to combo boxes, 1 to display class names and 1 for levels.
Also have some Labels to display i.e. the base_STR number. But after trying random stuff to get it linked and closed VB to restart again because it was messed up too much
View 1 Replies
Jan 2, 2012
I want to crawl data (league tables and statistics) to crystal report from BETRADAR.COM for bookie.how to do that with http response,twitch data between tags.Someone if have code or command to do that
View 1 Replies
Jan 28, 2012
I have recently taken a liking to programming, and have programmed a few games in C#,my friend has asked me to program an application for him to use in his shop. But I have no idea of what language is best suitable?
View 8 Replies
Mar 3, 2010
I'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.
<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">
[code]...
Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.
View 17 Replies
Jan 29, 2009
I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.
What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.
View 2 Replies
Nov 3, 2009
Is there an easy way to get the "Last saved by" information from the file statistics? FileInfo doesn't have it, and I have searched and found DSOFile, but it seems that is only for office documents.
View 3 Replies
Sep 24, 2011
I have a school assignment and I just started to learn VB. Until now I/ve done pretty good however I encountered a problem which I can't solve in this assignment. So, I would ask if someone could tell me what I'm doing wrong?
This is the assignment:The application calculates the new hourly pay for each of three job codes, given the current hourly pay for each job code and the raise percentage (entered as a decimal number).
a.) before the form appears, use the InputBox function to prompt the personnel clerk to enter the raise percentage. You will use the raise percentage to calculate the new hourly pay for each job code.
[Code]...
View 4 Replies
Jun 5, 2012
Concerning this code... Dim i1 As Integer = Nothing
[Code]...
View 12 Replies
Mar 19, 2012
Is there a way to set a variable in VB.NET in an IF statement. I would like to do the following:
[Code]...
Is there some way I can get the last "ElseIf" to work? I know I can re-write it to get it to work but is there some syntax that will make it work the way it is?
View 3 Replies
Aug 16, 2010
I'm having an odd problem with an ASP.Net page.I'm getting an object not set error message when assigning a string literal to a variable. [code] And here is the code that the error is pointing to. The last line in this fragment is the line 10 the error is complaining about [code] It seems it fails on accessing any reference type, even if it is declared locally in the load function. I originally found the problem when Request. IsSecureConnection was nulling out on me. I eventually discovered I could replace it with the above code and fail in the same way. The problem does not always happen. It seems to be triggered by publishing an update from Visual Studio, or when I head home for the day and the server sits idle all night. One or two app pool recycles seems to clear it up, and the page functions correctly. I've been doing desktop development for a few years, but I'm fairly new to web development.So maybe this is something obvious I've got configured wrong. I'm currently using .Net 4 on IIS 6. That code is in a foreach over an IEnumerable(of XElement). The stack trace still points to the string assignment, but all other stack traces are spot on, so I don't think it's a bad pdb.Also, when the error occurred this time, no amount of recycling the app pool or stopping and starting it would fix the error. I finally got it working again by switching the application to a different app pool.
View 2 Replies
Apr 23, 2012
Why aren't the assignment operators (+=, -=, *=, /=) overloadable in VB.NET?
View 1 Replies
Apr 4, 2011
If I put:
variableName = namecombobox.selectedItem
or
Dim variablename as type = namecombobox.SelectedIndex
Visual studio gives me the error: "Option Strict disallows conversions from object to string.
I can fix this by putting:
variableName = convert.ToString(namecombobox.SelectedItem)
Are all values contained in a combobox automatically treated as a non-string even when they are string values (in this case "Male" & "Female") and what is the correct way of assigning the value selected in a combobox to a variable?
View 1 Replies
Jun 12, 2011
i am making a program on visual basic 2010 and part of my objective is to calculate the tax, i am trying to calculate the TAX so this is part of my code and this is the only part which gives me errors:[code]
1. Constant cannot be target of an assignment
2. value of type 'string' cannot be converted to 'System.windows.forms.Lebel'.
View 2 Replies
Jun 21, 2010
I have an assign ment that says: create an application to let the user enter his or her name (first and last name), then displays the Initial in Upper Case. FOr example: you enter "John Wow", then the Label will display "JW". I know that I'm supposed to use the Substring method. But to use the Substring, I have to have the exact location of the Leter that is going to be displayed in the Label.The problem is: the name that the user enters always vary. So in strnewstring.Substring(... , ...) ---> the number in the parenthesis would vary, too. Thus, I cannot put a number in there.So how can i create a code for this particular assignment.
View 4 Replies
Sep 26, 2011
i need to design a sudoku( 4*4 ) for my VB assignment..and i am having problem with generating random numbers for the four text boxes i have used..
View 4 Replies
Sep 28, 2011
What is the difference between this two ways of returning value in a function in VB.NET?
Using Return Statement:
Public Function Foo() As String
Return "Hello World"
End Function
Using Assignment:
Public Function Foo() As String
Foo = "Hello World"
End Function
I'm using the first one then I saw someone using the second. I wonder if there's a benefit I could get using the second.
View 4 Replies
Nov 17, 2010
Maybe this is a n00bish question, but I'm used to c++'s pointers and references and this is confusing me a bit. Let's say I have the following scenario in a VB.net application:
[Code]...
The situation is this: I have a collection of objects, and during execution of the program, any of them can be fetched from the collection to be used/edited by another part of the program. Now obviously if I edit the data inside the object it is allright, but what if I want to replace the object, as I did above at line 5? I would change only the local reference (y) but not the object inside the collection!
Is there a way around this? How can I take with me a "reference to the object's reference", instead of just a reference, so if I reassign it it will also reassign the one in the collection? I hope I'm making myself clear, unfortunately english is not my native language, to be clear: in c++ this would be easy using a pointer to a pointer, or passing a pointer to the object always by reference, so calling new or reassignment on it would change the original pointer itself)
View 4 Replies