Click here to Skip to main content
15,920,030 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerGoogle Pin
CPallini23-Oct-07 22:32
mveCPallini23-Oct-07 22:32 
QuestionLogic for Billing Pin
briogene21-Oct-07 21:07
briogene21-Oct-07 21:07 
AnswerRe: Logic for Billing Pin
Dan Neely22-Oct-07 2:15
Dan Neely22-Oct-07 2:15 
GeneralRe: Logic for Billing Pin
DQNOK22-Oct-07 9:20
professionalDQNOK22-Oct-07 9:20 
AnswerRe: Logic for Billing [modified] Pin
DQNOK22-Oct-07 9:00
professionalDQNOK22-Oct-07 9:00 
GeneralRe: Logic for Billing Pin
briogene26-Oct-07 22:08
briogene26-Oct-07 22:08 
GeneralRe: Thanks Pin
DQNOK29-Oct-07 10:25
professionalDQNOK29-Oct-07 10:25 
AnswerRe: Logic for Billing Pin
Duane in Japan23-Oct-07 6:08
Duane in Japan23-Oct-07 6:08 
How handsome does this form need to look, you can do all the math in the push of a button while showing the total bill hours and the total price ONLY or you can break it down into the different levels and show the sub totals of each as you have explained.

I would perform the over 100 math first then deal with everything under 100, in your case 10, 10, 20, 60. The code can be a tad long hand so others can figure it out later in your absence or transfer or move on to a different job, like the boss who may not be an old VB Head. The code can be written after your psuedo code using If Then statements or If Then Else.

Do you already have a form made up, whats on it, I would make it as busy as possible, maybe 7 textboxes, 7 labels, 1 button for the math, but code out each box as in your psuedo code and the button will perform it all and show the TOTAL AMOUNT OWED based on the HOURS CONSUMED.

I just built an excel spreadsheet with the minimum amount of numbers to go from say 23 thru 150, I only used like 7 numbers, like 28 + 36 = 64 or 25 + 32 + 40 = 97, by using these few numbers thru my upper limit I could combine them to get any total from 23 thru 150 inclusive, the maximum of additions would be 5 of my 7 such as 25 + 25 +......= 150.

EDIT, SINCE I LIVE IN A FORIEGN COUNTRY, THE US DOLLAR TO YEN CHANGES DAILY AND WE HAVE CHARTS TO SHOW AT AN INSTANT WHAT YOU WILL GET FOR THE AMOUNT YOU ARE GOING TO EXCHANGE.

I think what I am trying to say is that you should also create a table that will show every combonation from zero (0.01) hours usage thru a FINITE 'n' upper limit or infinite limit, excel will knock that out in seconds for the usage numbers over 100 since the rate does not change over 100.

Are you going to link this all to a spreadsheet or to SQL database, put customer info on form1 and make it busier than I stated above, thats good too.

As you say, you cant see the forest for the trees, this should be an easy one, just depends on how you want it to look and how long do you want the code, even the longest will print out on one sheet of paper.

The more electric you use, the more those people pay, sound like VA disability math being used here.
QuestionPlease HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
Mr. Deja Vu16-Oct-07 15:01
Mr. Deja Vu16-Oct-07 15:01 
AnswerRe: Please HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
cp987616-Oct-07 15:55
cp987616-Oct-07 15:55 
GeneralRe: Please HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
Mr. Deja Vu16-Oct-07 18:15
Mr. Deja Vu16-Oct-07 18:15 
QuestionPlotting large amount of data points Pin
nico8015-Oct-07 11:26
nico8015-Oct-07 11:26 
AnswerRe: Plotting large amount of data points Pin
cp987615-Oct-07 12:38
cp987615-Oct-07 12:38 
GeneralRe: Plotting large amount of data points Pin
nico8015-Oct-07 14:32
nico8015-Oct-07 14:32 
GeneralRe: Plotting large amount of data points Pin
nico8016-Oct-07 11:25
nico8016-Oct-07 11:25 
GeneralRe: Plotting large amount of data points Pin
cp987616-Oct-07 14:52
cp987616-Oct-07 14:52 
GeneralRe: Plotting large amount of data points Pin
Ri Qen-Sin23-Oct-07 14:59
Ri Qen-Sin23-Oct-07 14:59 
GeneralA Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 6:44
professionalBassam Abdul-Baki10-Oct-07 6:44 
GeneralRe: A Prayer for Archimedes Pin
IdUnknown10-Oct-07 7:16
IdUnknown10-Oct-07 7:16 
GeneralRe: A Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 7:26
professionalBassam Abdul-Baki10-Oct-07 7:26 
Questionfill memory with a pattern Pin
DQNOK10-Oct-07 5:21
professionalDQNOK10-Oct-07 5:21 
AnswerRe: fill memory with a pattern Pin
DQNOK11-Oct-07 7:35
professionalDQNOK11-Oct-07 7:35 
AnswerRe: fill memory with a pattern Pin
Alan Balkany24-Oct-07 4:13
Alan Balkany24-Oct-07 4:13 
GeneralRe: fill memory with a pattern Pin
DQNOK24-Oct-07 10:33
professionalDQNOK24-Oct-07 10:33 
GeneralRe: fill memory with a pattern Pin
DQNOK25-Oct-07 3:41
professionalDQNOK25-Oct-07 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.