Create An Application That Prompts The User To Enter Today's Sales For Five Stores?
Jun 5, 2011
this is my first vb. and i have assignment and i have been trying for hours but i couldn't do it right I have to create an application that prompts the user to enter today's sales for five stores. Create a loop to prompt for an amount for the first store using an inputbox and do not exit until you have good data. The inputs cannot be negative or greater than 5000, but may contain decimal values. The program should then display a simple bar graph corresponding to the amount of sales using a row of asterisks (*) in a listbox. Each asterisk represents $100 in sales. Display the total of all the stores by looping this process for each store.
[Code]...
View 2 Replies
ADVERTISEMENT
Feb 18, 2009
I have to create an application that prompts the user to enter today's sales for five stores. The program should then display a simple bar graph comparing each store's sales. Create each bar in the bar graph by displaying a row of asterisks (*) in a list box. Each asterisk in a bar represents $100 in sales. I have to make two different versions of this program. One using a "do while ... loop" and the other using a "for ... next loop". Could someone give me a hint on how to do this. I the "do while ... loop" version and I have had some problems, especially with converting the numbers to asterisks.
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
'Clear everything
[code]....
View 5 Replies
Nov 16, 2011
-Create an application that prompts the user for a number less than 100 and then when the button [Check Number' is clicked - displays whether the number is one digit or two digits.
View 6 Replies
Oct 5, 2011
I need to create a small application that will force a user to enter an even number but i MUST use a loop. Here's what i've come up with:
Quote:
Dim bynombrepair As Byte
bynombrepair = InputBox("Entrez un nombre pair")
If bynombrepair Mod 2 = 0 Then
[Code]....
View 1 Replies
Sep 30, 2009
I am a new user to VB and I am having difficulty with one of my assignments. The assignment states that to create an application that allows a user to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade. The application should prompt the user for each student's name and three test scores.
[Code]...
View 3 Replies
Apr 16, 2012
i'm having a bit of a hard time on setting up the calculations.There are three seating categories at a stadium. For a baseball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Create an application that allows the user to enter the number of tickets sold for each class and the total revenue.
View 3 Replies
Oct 5, 2011
I have to create an application that lets a user enter as much grades he wants. The grades are between 0 and 100 and they can't be negative. Whenever the user type -1, the application is done and it shows the average of the grades, the lowest and the highest grades.I absolutly have no idea where to start but i must be using loop/do/while.
View 4 Replies
Mar 25, 2012
I need to create a console application that lets a user enter 20 names and then it sorts them out alphabetically in order and then displays them.
Module Module1
Sub Main()
Const names As Integer = 20
Dim index As Integer
[code]....
View 2 Replies
Aug 1, 2010
I am trying to create an application where it stores images as well as data.
View 3 Replies
Jan 6, 2010
create a message box that stores my user name, message, and post datetime into the database as messages are sent. Soon came to realise, what if the user changed his name? So I decided to use the user id (icn) to identify the message poster instead. However, my chunk of codes keep giving me the same error. Says that there are no rows in the dataset.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim name As String
Dim icn As String
Dim message As String
[code]....
View 7 Replies
Jul 16, 2010
I am looking to make a "user.settings" file or something similar that stores information for my application. I'm not sure how I would read a text file per line and do something depending on what it says.
View 7 Replies
Feb 7, 2012
I'm writing the following bits of code for a SaveFile Dialog box in Visual Basic 2010.NET. The code works well as the XLSX file is created and opens in Microsoft Excel. However, the problem that I am having is that if the program overwrites a file, the user is getting two prompts. One prompt is from the program's own SaveFile dialog confirming the choice. The other is from Microsoft Excel asking you the same. It's as if the program is running in the background. Does anyone know how I can write this code to save the file as an Excel file? [Code]
View 1 Replies
May 25, 2010
I'm trying to create a program that does the following:Executes the following command line string (wmic /node:computername bios get serialnumber)Prompts user for the "node" entry Displays the resulting serial number in a dialog box I'm a bit of a noob at this (I haven't coded anything in VB since early 2000s) so I'm at a bit of a loss where to start. I plan on including some functions to submit the node entry and the resulting serial number to a database in the future for archiving as well.
View 4 Replies
Nov 5, 2009
5. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50?
View 1 Replies
Aug 12, 2009
I am trying to implement a controlling design logic that prompts the user for a length and the area to calculate until he or she enters a number less than zero in the length to end.So far I have it where I believe it�s doing the calculations but it�s not ending when I input a number less than zero or zero.
Sub Main()
' Declare Length As Float
Dim Length As Double
' Declare s, c, t As Float
[code]....
View 4 Replies
Sep 22, 2009
I have to create a program that ask the user to enter the amount of hours work for 5 diferent projects in textboxes. The user have to enter the time he worked in minutes. Ex: 153, 280, 600, 130, 20... The total then is out putted into a textbox in this format "13 Hours and 35 Minutes" I'm having dificulties making the conversion and the separation from hours and minutes. I understand that the total is divided by 60, but if we fallow the above numbers the total hours comes out to 1183 / 60 = 19.71. So I'm having problems with the .71 mnts or digits... so from this total I have to output the total of in this particular format: "19 Hours and ?
View 2 Replies
Aug 5, 2009
I currently have a program that allows users to download files into a folder of there choice. I currently have 10 different forms all with a text box to show folder location and a browse button for user to find it, but what I want to do is create a form that will appear at the start where the end user can enter the folder location so that they don't have to enter the folder path for every download they want to do. How would I go about doing this I have a textbox, browse button and an OK button but have no idea what to do next.
View 1 Replies
Jan 22, 2010
could anyone please help me with this1.Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For Next loop to perform the repetition.i can output them to a list box but only last one to a label ive been stuck for 3 days.
View 8 Replies
Dec 16, 2009
I am creating an application which requires user to enter some data using popup. There will be text boxes and drop down list which will be filled by the user. Once the user fills the required information and submits it using a button, the popup will dissapear. Can anyone direct me how to use Popup control to contain textbox, drop down list and buttons.
View 1 Replies
Jul 7, 2011
Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:
View 3 Replies
Aug 17, 2010
We have a issue with laptops for the current client in which IE continually shows prompts to users about working offline. The laptops are on a flaky wireless connection (Personally I would much rather fix this but they would much rather just fix this issue, apparently this works better money wise. I have my doubts).
Anyway the issue I'm facing is removing this box from opening at all.. Now there are two ways I can think of doing this. A possible Hook if it is available to catch it before it comes out and stop it. Or the less nice way is to when the box comes up to automatically hit the "try again" option using a sendkeys push.
View 4 Replies
Nov 3, 2009
I am trying to get a function so when i press the calculate button it somes up with sales totals and sales commissions. this is just a simple project i just cant find the answer.
View 5 Replies
Feb 12, 2009
I would like to make an application whereby the user can select a color, enter a character into a textbox, select another color, enter another character and so on and so on...This multi colored text that has been entered into the textbox by the user must then be shown on a label. I cant get the damn characters in the label different colors They are all for example, either red or all blue.
View 2 Replies
Oct 28, 2009
Create an application that allows the user to select or enter into a combo box the number of days a person will work, and calculates the total amount of pay she will receive over that period of time. Salary is one penny the first day, two pennies the second day, four pennies the third say, and continuing to double each day.
The combo box must list the following items: 30, 180, 365, and 1000. Must be the default drop down box. Use a validating event procedure on the combo box.
The program should go through a loop once for each day, doubling the number of pennies with each iteration of the loop. You will need a running totl of the number of pennies that you add to with each iteration. To calculate the total amount of pay, multiply the total number of pennies by .01 and show the result in currency format.
Public Class Form1
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
[CODE]...
View 14 Replies
Apr 5, 2011
I need my program to output and input a customer ID and sales amount multiple times. I need it to display both outputs, customer ID and sales amount, on mulltiple lines. It also will need to accumulate the sales amount and then display the total sales. it should look something like that.[code...]
I think that I was supposed to use a messagebox but wrote the program a different way. the form.vb was already locked, but I added two text boxs. Not sure if I did this right because I need to enter multiple sales for one customer ID.[code...]
View 1 Replies
Sep 24, 2010
I am trying to create a macro to enter data in a label printing application for hundreds of labels- I use an external third party software that's not very user friendly. It has several fields that accept text. The problem is, manually entering the data and clicking "print" each time is very time consuming. Can anyone suggest a way to put a line of text in the field, printing, and repeating the process?
View 15 Replies
Mar 31, 2009
When I run this application the 2% menu item works fine but the 5% does not. It does nothing at all. I'm stuck.
[Code]...
View 2 Replies
Oct 6, 2010
I'm trying to create a form that accepts names (or any strings) as input and stores them in a object. See attached form sample.Form Image:
Operations: ï Initially the NumericUpDown object on the form should be disabled.The user enters a value (string) in the textbox and clicks the Add button or presses the Enter key to activate that button.The application then stores that name in a List object, and displays the last entry in the Label underneath.The NumericUpDown should become enable after the first entry. The user should be able to move between all the values entered using NumericUpDown.
View 7 Replies
Nov 29, 2009
I have difficulties in doing 18.15 Sales Report Application in Visual Basic 2008 pp 405-406. It doesnot look complicated, but when I really start doing it.
Here is the link for the exercise (pp 405-406), 18.15: [URL]
View 1 Replies
Feb 22, 2009
how to create an error message by message box to tell the user to enter a number only if they key in a character value?
I MEAN AFTER THEY PRESS THE CALCULATE BUTTON
Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click
Dim intFat As Integer
intFat = Integer.Parse(txtFat.Text)
lblResultDisplay.Text = txtFat.Text * 9
End Sub
My text box is call txtFat
View 3 Replies