Use Data To Compute A Customers Electric Bill?
Mar 27, 2011
In this program I am suppose to use data to compute a customers electric bill. My code works correctly for the most part except for two things. I cant get the loop correct I want it to ask the customer to enter readings but once it does it outputs the same information from the original time so I am wondering what I have to do to have it recalculate when new values are entered by the customer. My other issues is it is suppose to continue to ask the customer for additional readings till the value entered by the customer is -99999, when I run my program and enter -99999 it does not stop.
[Code]...
View 5 Replies
ADVERTISEMENT
Apr 21, 2010
Using VB2008 I need to create an application that calculates and displays a customers bill.Business customers must have one connection.
Heres the data
Residential customers:
Processing fee: $4.50
Basic service fee: $30
Premium channels: $5 per channel
[code]....
View 8 Replies
Apr 22, 2010
[Code]...
how to do this. kindly show me some sample code for this
View 11 Replies
Aug 25, 2009
How do I use for loop in vb.net something like
dim start as integer
Dim customers as New List(Of Customers)
Customers=dataAcess.GetCustomers()[code].....
I want to process some data for each 500 customers..
View 8 Replies
Jan 31, 2011
I tried to follow this advice, but I still run out of memory.
[URL]
Basically, I am reading all the bytes of a 1 gb disk and I want to try and do a md5 hash on it. However, when following this example, my cryptostream gets too large a System out of memory exception.
Is there another way to do the md5 hash over some much data?
I am currently reading it into 10 million bytes arrays at a time. Can I hash the first array, and then use it as a seed for the next array, and so one, like you might do to a CRC32 calculation?
View 2 Replies
Apr 5, 2012
I can't figure out how to compute the standard deviation from SCORES.TEXT, data(1) Here is my code so far:
[Code]...
View 3 Replies
May 12, 2010
I am making a program which calculates the cost of (Let's say) Spent Electric Energy for a number of days,defined by the user..I have 2 Date Time Picker and x (The average energy spent in a day) where x must be an integer and it is defined by the user x * (DateTimePicker2.Value - DateTime Picker1.Value) = y (The value to be paid for a number of days)
View 4 Replies
Nov 13, 2011
'Declare the price rate per night
Const decNightly_Rate As Decimal = 350D
Private Sub btnCalculateCharges_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateCharges.Click
[code]...
I am trying to make a hospital form where the user inputs data for a hospital bill. I have to create three functions: CalcStayCharges, CalcMiscCharges, and CalcTotalCharges. I do not know why this code won't work.
View 13 Replies
Nov 8, 2010
I want to add a query on a form called Customers.So, I want to type the begining of the Customer's name, and when i push the button, on the datagridview appear all the Customers with a name like that.
View 2 Replies
Nov 7, 2010
I have an access database which includes Customers table and one of its columns is the Birth date. In project in visual studio, using visual basic 2010, I have a form with a calendar. In this form I want to show who has birthday today. How can I compare all the customer�s birth date with the day we have today? And have as result a label with all birthdays?
View 1 Replies
Jan 14, 2011
i have a big problem i have no idea what i am doing and need to create a program that can add customers and calculate and add the car qoutes to a text file. the information also needs to be retrieved, basically i want someone to finish the qoutes form for me complete with code its like connect the dots but with code :P can you fill in the "dots", create and edit btw for some reason it was called !! ERROR !! because it was a bad second version of the first version that got deleted so i used this one anyway XD[URL]..
View 5 Replies
Sep 17, 2010
This question appears to have died, so I've decided to offer a bounty.What I'm most interested in knowing is if my scenario in the ETA1 below is viable and is used. If it isn't, then a good explanation of why not would be a good answer. Another good answer would be an alternative (but not including the internalsvisibleto attribute).
The best answer would be, yes, it's viable, everyone does it and customers love it!ETA2: I think I've thought of a good solution. I provide the customer with a distributable edition that is as functional as their edition but is unlicensed and has the classes and members hidden, using attributes.
I can do this with compiler directives, on every single important member, but I wondered if there was some global way to hide all members of a class?
A simplified scenario I have a class that extends a control in someway and I want to sell my class under two licenses;
(1) Standard - The customer gets x number of controls that use my class but can't instantiate the class (its internal).
(2) Developer - The same as Standard except they can create their own controls that use my class.
My problem is that when the developer customer comes to sell their controls, they can't help but expose my class to all their customers.
The only way around it, in my scrambled mind, would be for the developer to somehow integrate my assembly into theirs, and in that way I can keep the constructor internal. Or, use the internals visible to attribute.
ETA1: I'm thinking aloud here, but, I could have a list of permissable calling assembly names which the customer could add to. When they ship their product, their customers' assemblies would not be in the list and therefore they wouldn't be able to instantiate certain classes. (The list could obviously be hashed).
View 4 Replies
Jun 12, 2009
I am using crystal report for displaying reports. I want to display group by customers in report that i am displaying using group by funtion but i also want subtotal of that group by customers. I want to display received amt date, received amt and balance amout between given two dates. That i am getting. output is like first customer name and below that list of there received and balance amt with received amt date. But before displaying second customers list i want to display subtotal of received and balance amt. and in last in page footer i am displaying grand total of received and balance amt.
All data are displayed instead of subtotal of all customers. how to display subtotal of all customers received and balance amt?
View 3 Replies
Apr 27, 2009
I'm developing a small app to for a vehicle rental company. They require the app to print invoices for customers (fuel usage and etc) with charges. I was thinking of outputting row by row to a html (file) table and populating qty,amount,final amount etc programmatically. And letting the user view and print that html file.
View 3 Replies
Apr 15, 2012
I have one medical prescription form in my table....which will generate bill...and a receipt number will be generated in crystal reports....If suppose a bill is generated for a particular transaction and after suppose few days i need a duplicate bill....how can it be created...means how shud I store the values for all bill generated in the past...
View 3 Replies
Feb 3, 2011
We have a rather large VB.NET accounting application that crashes occasionally for some customers. I have now been able to reproduce this particular almost 100% in my test nvironment using certain data. The crash happens when clicking a list box after printing a report. The form involved has a list box listing available reports. You select one or more reports from the list box and click the print button. After printing, if you click the list box again, the program crashes, with an exception that does not seem like one VB.NET should even be able to produce.The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."The call stack is:
1. System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2. System.Windows.Forms.NativeWindow.DefWndProc(Message& m) [IL offset: 0x3e]
[code]....
View 12 Replies
Mar 2, 2010
I've been coding in VB.net for a while now, but still have never used the printing features. I've created a program which stores and creates customers and orders etc. I now require to print invoices related to these quotes.Is the following possible within VB.net when printing a document. Images i.e. Logo of company (which i've made already)Table of items orderedTotalshorizontal lines to split-up the design of the invoice/document.
View 2 Replies
Mar 17, 2012
i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.
View 3 Replies
Feb 20, 2010
I am working on this program that is suppose to display the patient's bill after they have selected a service at a dental lab. the problem I am having is that if the patient name is empty it gives me a message but it still shows the bill. Also I am having a problem with the code that will calculate the bill if a a patient choose more than one service. Here is my code below
P
ublic Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
[Code].....
View 4 Replies
Oct 27, 2009
This is my project for class and this is what i have so far but my teacher gave me no credit. What am i doing wrong? i tried re arranging but had no sucess..A fast-food vendor sells pizza slices at $1.25 each, fries at $1.00, and soft drinks at $0.75. Write a program to computer a customer's bill. The program should use 4 subprocedures that do the following:
1. read in the amount of each item ordered
2. calculate the total cost
3. display an itemized bill
4. read in the user's full name from a textbox, and display a sentence, addressing the user by first name only and in upper case characters, informing the user of their bill. [code]
View 3 Replies
Feb 15, 2010
i want to print bill from the billing system using VS 2008.any suggestion for the coding?
View 5 Replies
Apr 26, 2010
i need some suggestion regarding which approach to use to print on already printed bill.what i want to do is, i have already printed bill, which contain some design,name , shpper details and other things.
there is some predefined section on that bill where i need to print amount, using my vb.net application.
so can you let me know which method i should use?
View 5 Replies
Feb 26, 2010
I have an application I am creating that displays pump information based on customers in a database. I am using VB2008 .NET3.5.I have a combobox that has a selection for a unit of measure. What I want to happen is when that is changes the labels that have a unit of measure change to reflect the change. There are 15 labels total that need to be changed and all there names are the only ones in the project that start with a X if that helps at all.
I would like to avoid creating a bunch of labels and changing the visible property and just change the text value of each one. I have just started learning VB.NET
View 11 Replies
Jan 24, 2011
trying to make a program that calculates a cell phone bill. u get 300 minutes for 29.95
for every min that exceeds 300 the cost is 17 cents per minute I want to make a if statement but i am having trouble setting it up.
View 5 Replies
Jul 1, 2009
I am trying to create a basic VB.Net program that allows the user to input the number of pieces of pizza ordered, number of fries ordered and the number of soft drinks ordered that gives a bill total in a text box and displays the bill in a list view box. The program runs put does not provide output.
Public Class Bill
Private Sub Bill_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'variables used to calculate restaurant bill
Dim P As Double
Dim F As Double
[Code] .....
View 6 Replies
Oct 5, 2009
Trying to create a restaurant bill, i found a program that does something similar but when i tried to adapt it, it doesnt do what it is supposed to.Let me go over what it's supposed to do first.If there are three items on a menu, lets say; pizza, fries and drinks. the pizza costs $1.75 a slice, the fries are $2.00, and the drinks are $1.25. the user selects how many of each are purchased, then presses a 'compute' button and displays a bill in a listbox. here is the code i wrote for such a program, obviously wrong or it'd be working.
Public Class RestaurantBill
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
[code]....
View 10 Replies
Jan 12, 2011
I made a program a month ago and i gave it to the customers.recently they report some bugs and i fixed them. when i send the new version installer to them, they have some problems running it.i used vs 2008 to write it, but i removed vs 2008 and installed vs 2010 last week. when i opened my project to start fixing program bugs it asked for convert wizard so i did it.i made changes and build it. i use installshield and i add framework 3.5 Sp1 as prerequisites.
note : i was using inno setup first time. so i changed the installer too.so i tried installing the program on my machine.i just noticed that i have only .net framework 4 installed my own system. so i have no idea how the program runs without any problems on my own system. i have even tried installing it on another machine who had framework 3.5. it it work on that too.the error shown on customers machines is related to framework version. everytime i send them a new version they have some problem installing/running it.
View 11 Replies
Oct 13, 2011
I want to calculate the total for bill amounts in an arraylist. I have already used this code:
[Code]...
View 1 Replies
Jan 14, 2010
I want to try to make a program for the Bill Print.
View 1 Replies
Mar 11, 2010
I have a problem regarding bill printing on roll paper. My printer is Epson LX-300+II, my roll paper is about 3" width, and is used for printing bill/invoices for the customers. The number of items varies.Whenever I finished printing the bill, the printer throws out/ejects the paper, as long as about a letter (11") size. Whatever the ways to achieve this, I just want the printer stop printing/ejecting after the last line, then i can tear off the bill for my customers without wasting paper.
I'm really wondering someone out there could help me.. I have worked hard for this, and searched in internet, but it seems that there's no applicable and clear solution. If the solution is in VB, please give me the code to implement this, or give me a very simple example application.I cannot make a custom size in my printing preference.
View 7 Replies