Click here to Skip to main content
16,004,653 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionCritiques of measurements for the cryptography Pin
Cryptogrpahy24-Oct-07 4:36
Cryptogrpahy24-Oct-07 4:36 
AnswerRe: Critiques of measurements for the cryptography Pin
El Corazon24-Oct-07 5:41
El Corazon24-Oct-07 5:41 
GeneralRe: Critiques of measurements for the cryptography Pin
Cryptogrpahy24-Oct-07 9:34
Cryptogrpahy24-Oct-07 9:34 
GeneralRe: Critiques of measurements for the cryptography Pin
El Corazon24-Oct-07 10:21
El Corazon24-Oct-07 10:21 
GeneralRe: Critiques of measurements for the cryptography Pin
CPallini24-Oct-07 21:26
mveCPallini24-Oct-07 21:26 
Questionbarcode algorithm Pin
memaia23-Oct-07 22:19
memaia23-Oct-07 22:19 
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 
I am developing a billing software for a Water Company would someone out there help in the algorithm for calculating the amount to pay based on the logic below am using vb.net.

The Company has set tarrifs which are


Consumption Amount Per Consumption
0-10 12
10-20 33
20-40 44
40-100 56
over 100 64

if a client consumes less than 10 units he pays the minimum which is 120

if a client for Example consumes say 110 units the amount is calculated as follows

0 -10 ten units are used hence amount to pay will be 10*12 =120
100 units will remain

10 -20 ten units are again used hence the amount will be 10*33 =330
total amount will be 120 +330 = 450
90 units remain
20-40 twenty units are used hence amount will be 20 * 44 =880
total amount will be 120+330+880 =1330
70 units remain
40 -100 60 units will be used hence amount will be 60 * 56 =3360
total amount will be 120+330+880+3360=4690

10 units remain

over 100 10 * 64 =640

total amount = 4690 +640 = 5330








briogene
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 
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 

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.