Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-22-2005, 04:00 PM   #16 (permalink)
iccaros
Registered User
 
Join Date: Apr 2005
Posts: 24
iccaros is on a distinguished road
not to sound like I know anything.. ( as I don't) but I am confused...

but lets walk through this..

if a sales person has $1000 in sales he earns 9% of that.
so you take sales and * .09 = $90

if he earns a base salary of $200. then for that week he earned $200 + $90 = $290

I see that as sales * .09 = commision ($90)
commision + BaseSalary = $290

in yours
Weeksalary = StartingSalary+(Sales*StartingSalary*percentage)

you would have 200 + (200* .09) which = $290

so I don't see the diffrence.. maybe Im dumb.. (this is most likely the case)

but I do think yours is better progaming.. as its in one statment while mine was in two.

I really thank you for your assistance on this.. I am truly learning things.
iccaros is offline   Reply With Quote
Old 05-22-2005, 08:46 PM   #17 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes, your understanding is correct, but the implementation is to be interpreted wrong:
Code:
int Sales = 0;
Sales = PrompUser ( "Enter the amount of sales for this week: ");
Notice that Sales may imply the total NUMBER OF SELLED ITEMS. It is not the total amount of extra money made this week! That needs to be sorted out.

So what we have here is a miscomunnication through code...
__________________

Last edited by Valmont; 05-22-2005 at 10:05 PM.
Valmont is offline   Reply With Quote
Old 05-23-2005, 04:17 AM   #18 (permalink)
iccaros
Registered User
 
Join Date: Apr 2005
Posts: 24
iccaros is on a distinguished road
Thanks for the explalnation.. i will try to be more clear with future questsions, (underline try.. )

I guess engish is as important as the programing language somethimes..
iccaros is offline   Reply With Quote
Old 05-23-2005, 07:19 AM   #19 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
You don't have to worry about the programming language: it's already there.
But implementation by itself is communication already. Note that a name like Sales isn't very informative.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File I/O and arrays JaySun Standard C, C++ 6 03-24-2005 10:43 PM
combining arrays Engineer Standard C, C++ 11 03-12-2005 10:23 AM
2 questions about arrays and incudes files, and etc. slashdot Standard C, C++ 4 01-27-2005 08:39 AM
Dynamic Arrays, the 'right' way. Mr.Anderson Standard C, C++ 10 10-05-2004 06:00 AM


All times are GMT -8. The time now is 11:03 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting