For Next Statment For Salary Survey?
Mar 28, 2011
A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9% of $5000, or a total of $650. Develop a console program (using a one-dimensional array of counters) that determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson?s salary is truncated to an integer amount):
a)$200-$299
$300-$399
c)$400-$499
[code]....
My gross salary formula works fine but im confused about my For Next Statement. Not sure if im doing it right. i forgot one thing.... i'm not sure if my increment counter should be where i put it. I think it needs to be in my for next statement?
View 9 Replies
ADVERTISEMENT
Feb 1, 2011
I'm new with VB programming and would like to know if anyone can look/test this code I have written. I don't have the ability to test right now because I'm at work and can't get VB installed on my desktop. This program is supposed to display the amount of gross pay for employees based on their weekly sales (if $5000 or more times 9% + $200) while using a one dimensional array.
View 2 Replies
Feb 4, 2011
I'm having trouble finishing up this salary program which is designed to calculate salary based on gross sales while using arrays. Essentially, when the Calculate Salary click event is initiated after salary is entered, either $200 should show up in the list box or, if the persons sales were over $5,000, a calculation of their sales * 9% + 200 should show up in the list box. Right now, anytime I enter any number, "Double Array()" shows up in that list box.
Option Strict On
Public Class Form1
Dim salary(19) As Double
[code].....
View 10 Replies
Feb 22, 2011
I have a user control form with two text boxs, three radio buttons, and a text box for a description, but i need help trying to lik together and when the user hits the send button it sends it to a email,
View 5 Replies
May 13, 2012
I'm currently quite new to VB and am trying to create a multiple choice questionnaire for work. This is a depression survey in which there are 23 groups of statements with 4 options per group. Every time a patient clicks an option, the next set of 4 questions comes up on the screen.
I'm trying to convert the old VB4 code into the new VB 2010 code. Before we were using a control array and the code looks a little something like this[code]...
View 2 Replies
Feb 24, 2012
i know it could sound as a silly question but i was wondering if there's a way to get data from a survey on paper though: i mean, let's say i have a survey on paper with questions and some checkbox that the user will tick and i want to get its data scanning the document and save it as pdf, if it's possible, or jpg or doc, whatever. Then with PHP or whichever language you suggest, try to get the data in some way from the scanned document and put it to a DB.
View 2 Replies
Jan 22, 2009
Trying to start a discussion on what approaches forum members take when faced with the issue of writing code that calls SQL queries upon a DB. Do you tend to always put SQL in stored procedures and call the proc (and does that include basic CRUD operations) or always the opposite? Or do you prefer a mix of some procs and some coded sql? If its the latter then how do you determine which queries go where?I imagine the scale of a project can dictate some of the possible answers. I've done both and sometimes I find that quick and dirty apps that have little chance of changing or are easy to modify do not need procs. On the other hand, I generally will choose the mixed option where anything other than CRUD (i.e. workflows) will be sent to a proc. I have a particular interest in hearing about your experiences with larger projects (i.e. 100+ tables in the DB) that employ a Domain Model approach to a layered solution (has distinct UI, business, and data access layers.) However I'm interested in responses to all sizes and shapes of projects.Opinions?
View 1 Replies
Mar 29, 2011
We need to calculate salary based on monthly gross. Here we are having problem with ESI salary header Consider monthly gross is 12000 and headers are
BASIC = (Monthly Gross) * 40%
HRA = (BASIC) * 40%
Conv. = 800
PF = Basic * 12%
[code]....
In Excel using Goal Seek, we can get the solution for this.Is there any way to get in VB.NET?
View 1 Replies
Aug 15, 2011
i want to calculate total salary according to attending days.
View 5 Replies
Jan 31, 2010
Below is my code for an employee class and employeetest module. Im not sure why i cant get the test module to return Salary cannot be negative with i put in a number less than zero and not sure how to get monthly salary to convert to yearly and then giving a 10% raise.[code]
View 4 Replies
Jun 8, 2011
I want to know about grading system in visual studio I am new in software engr just tell me how we make grading system in windows application in visual studio like when we put 5 in grade section the basic salary will be 15000 and home allowance will be 15 percent of basic salary and conveyance allowance should be 10 percent of basic salary then integer in gross salary will be shown and it will be basic salary plus home allowance plus conveyance allowance minus 5 percent of tax on basic salary and net amount will be shown
View 2 Replies
Sep 18, 2010
My boss has asked me to set up DotNetNuke's Survey Module and make a few custom changes to it for a client. But I'm having trouble just getting the bare-bones code to run properly!Downloaded both the source & install folders from [URL] Created a new VB Web Application Project Took out all the default pages Copied the Survey source code into the VB Web Application Project in exactly the same structure Made a batch script that creates an installation folder identical to DNN's install folder (double-checked by running a folder-diff on it, and all files/folders were identical) Zipped up my installation folder using 7-zip The source code compiles perfectly. But even though the files/folders are identical, DNN's zipped package will work properly on my DNN site, and my own zipped package will fail with this famous error message:
Error: Survey is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'DotNetNuke.Modules.Survey.survey'. --->
[code]....
View 7 Replies
Aug 25, 2010
creating the DNN Survey Module from source code
View 5 Replies
Nov 15, 2011
I have to create a cafeteria survey application. Twenty students were asked to reate, on a scale of 1 to 10, the quality of the food in the student cafeteria, with 1 being "awful" and 10 being "excellent." Allow the user input to be entered using a ComboBox. Use an integer array to store the frequency of each rating. Display the frequencies as a bar chart in a list box.
I can get the comboBox and everthing, but it's not displaying the bar chart.
Here is my code.
Public Class Form1
'String array stores ratings
Dim ratings() As String = {"1-Awful", "2", "3", "4", "5", "6", "7", "8", "9", "10-Excellent"}
Dim studentCount As Integer 'number of student ratings entered
Dim frequency(9) As Integer
[CODE]...............................
View 1 Replies
Sep 14, 2009
I am planning a three form checklist/status report for a FEED template. Each form will address a different FEL. FEL1 is really a simple checklist and is easily dealt with using the Windows Form. My question is there a better structure to handle the more complex FEL2 and FEL3, like the web page? FEL2 will have approximately 20 questions and FEL3 will have about 50. I am still undecided whether to use radio buttons (radio button list, which I do not understand yet) or text boxes that will take a value between 0 and 10. I may weight the questions to give an overall percent complete that I can show on the progress bar or some such. If there is a better structure than the Windows form, can it and the Windows Form be linked? If not, will abandon efforts to complete current FEL1. Conceptually, you cannot start FEL2 until you have completed FEL1, and FEL3 until FEL2 is complete.
Public Class FrmFEL1
Dim PctCmpt As New ProgressBar()
Private Sub CboxChrtr_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CboxChrtr.CheckedChanged
[CODE]...
This is what I have so far. It is no working at all. No values appear when boxes checked. Would like a value for each checkbox that can be added in in order to get a total. That total to be added to the percent complete (TxFEL1).
View 13 Replies
Mar 22, 2011
I have to create an app that computes the amount income tax that a person has to pay, depending on salary. Income tax should be calculated for each portion of income in each range. Here are the following income ranges and taxe rates:
Not over $7825=10%income tax
$7825-31852 = 15%income tax
$31851-77100 = 25%income tax
[code].....
i keep getting zeros.
View 4 Replies
May 25, 2009
i am a beginner learning vb.net. I have an excercise to create a form and on clicking the totals buttons it should display the number of employees who have earnt a salary within the ranges below. Now this code works, but i want to substitute the Select Case Statement with a more efficient for..next statment to increment my counter. The code is:
[Code]....
View 2 Replies
Nov 20, 2011
How can i exit a for each statement i mean say i had the code below (not real code its sudo code)
CODE:
but i don't want to exit just this for loop i want to exit the previous for loop at line 1
CODE:
View 14 Replies
Sep 26, 2008
I am getting an error saying that I don't have for For, for my Next statment. It looks like it doesn't even finnish the initial compile. What is going on?
Code:...................
View 2 Replies
Oct 25, 2010
I am trying to scroll a datagridview for that i created a scroll event scroll event should have 3 conditions:
1. if I = last row then do not continue adding one to the row index
2. if I < last row then continue adding one to the row index
3 if I = first row do not subtract one from row index
This is the code i wrote for the first 2 conditions, and my system keeps crashes
HTML
If i < grdAccountTypes.Rows.Count Then
i = grdAccountTypes.CurrentRow.Index + 1
Else
[CODE]...
View 4 Replies
Apr 8, 2011
I am having an issue with the following code. It works when the data is all numeric such as 9200000 but not when the data is alpah numeric such as b101462 I am collecting data from a textbox into a string variable findacct and then using the variable in the sql statement. The data in the access database is char type.
The following select statement works when all the data is numeric for the find acct varialbe but if start with a alpha char like B101462 it gives me a missing parameter error."Select * From purchase where issuedate >= " & "#" & finddate & "#" & "and account like " & findacct)The following statement works when I actually put the account info in the select statement and do not use a variable."Select * From purchase where issuedate >= " & "#" & finddate & "#" & "and account like 'b101462'")
View 4 Replies
May 21, 2011
I use in my Project the IfExistsTable function; in order to see the existence of a table.
For this purpose I use the Select statement as follows.
MASQLComm = New SqlCommand("SELECT COUNT(*) AS [RecCount] From sys.tables WHERE name Like '%" & tName & "%'", SQLConn)
RecCount = CInt(MASQLComm.ExecuteScalar)
After that I take the number which returned in RecCount. Until now the numbers was 1 and 0
And so I was turn the numbers in True or False.Now suddenly the returned number is 2 which I can't understand what it means.
View 3 Replies
Dec 6, 2011
I have this SQL Statement:
de.SqlStatement = "SELECT A.Name, A.Catagory , COUNT(Patient_ID) AS PNO FROM PatientApplyToAssociation P INNER JOIN Association A on A.Association_ID = P.Association_ID WHERE A.Catagory='" & "health" & " '" & "' GROUP BY A.Name '"
[Code]...
View 6 Replies
Dec 11, 2011
[code]why this code dosnt work? the if statment dont excute it work only if it's like this [code]
View 1 Replies
Jul 8, 2009
I am creating a windows application using VB.Net and this application will take a SQl create .sql file as a parameter and will return all fields and their data types inside in a list or array.
Example:
USE [MyDB] GO /****** Object: Table [dbo].[User] Script Date: 07/07/2009 10:16:48 ******/
SET
ANSI_NULLS ON GO
[code]....
Should Return:
UserId int, FirstName string, MiddleName string
I want to do this by any way, pure vb.net code or using RegEx.
View 3 Replies
Jun 22, 2010
I m tryng to make report but its not working.i explain u to description of my project
i have 5 tables in form Payment,Receivable,Expense,Sale,Purchase and now i want to make debit credit form and its work that when i give a party name the report show me its statment
if the party is vendor show purchse from him and payment paid to him and if he is buyer so show him payment received and sale to him
View 1 Replies
Mar 10, 2009
I have a filter expression that contains a single quote (Al ' ABC), and i am using the Select statment of the datatable where i want to select all rows containing the filter expression, but i am encountering an error. how can i resolve it?
View 1 Replies
Mar 19, 2011
I have a filter expression that contains a single quote (Al ' ABC), and i am using the Select statment of the datatable where i want to select all rows containing the filter expression, but i am encountering an error. how can i resolve it
View 3 Replies
Jan 10, 2012
I have two table the 1st std table (stdid,stdname,etc...) 2nd table (stdid,sdate,stdcase)the 1st table for student data 2nd for attendance my program read two table and show them to user in datagridviewdatagridview will show stdid stdname stdcasei want to write sql statment to show all rows from std table and show only rows from 2nd table there sdate = todaydate
View 8 Replies
Mar 15, 2010
Is there a way that when using a Try, Catch statment to give details of the sub routine and line that the error occurred? The reason I ask, is that there is a user in a different state who is using a tool, and he is getting some errors. He is getting an unhandled exception message. I can not seem to reproduce the error, and want to know where it is happening, other knowing that is has happened somewhere in the UpdateModelLists.
View 3 Replies