Show Bid Request
VB Programming Help - Percentage Help
Bid Request Id: 56709
|
|
|
Posted by: |
1212Kenwood (27 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 21.05%
|
Buyer Security Verifications: |
Excellent
|
Approved on: |
Apr 8, 2003 10:08:26 AM EDT
|
Bidding Closes: |
Apr 11, 2003 12:03:57 AM EDT
|
Viewed (by coders): |
136 times
|
Deadline: |
4/12/2003
TIME EXPIRED
|
|
|
|
Description:
Some Visual Basic coding help!
But here's what i'm stuck on:
Say I have a number in a variable called ywastr(1), like 60, for example.
I need to increase it by a percentage (randomly determined earlier in the routine I have finished already).
How do I take that integer variable, randomly rolled as the percentage (I know how to get random numbers in VB already), convert it into a percentage for the calculation, then add that percentage of the original number to the original number?
(Like the example above, if the number were 60, and the random percentage was 10%, it should add 6 to the number, making it 66).
Patient VB coders are welcome to reply. More work and VB assistance may be coming to the one that helps me out with this.
Thanks for reading!
Deliverables: 1) Complete and fully-functional working VB code snippet that completely solves the above problem.
Platform:
Visual Basic 6 (SP5), Windows
Must be 100% finished and received by buyer on:
Apr 12, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$4 (USD)
|
Apr 8, 2003 1:30:10 PM EDT
|
10
(Excellent)
|
|
|
Hi,
as I understand ywastr(1) is an array element, because if it is a function then the answer would be slightly different.
Here is the code snippet:
ywastr(1) = ywastr(1) + ywastr(1) * percent / 100
If you wish I could assist you in writing/debugging your VB app (I have 5 years experience with VB)
Hope this helps, Alexander Minza Best regards, Alexander Minza |
|
|
|
|
|