Important: Having problems with assignment due 20/11/08(tomr) need help please

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2008
Posts: 2
Reputation: daniiq8 is an unknown quantity at this point 
Solved Threads: 0
daniiq8 daniiq8 is offline Offline
Newbie Poster

Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #1
Nov 19th, 2008
Having trouble understanding the assignment please help me. Thanks so much.
the assignment is available here:
http://is.cba.edu.kw/230/Assignments.htm
it is assignment # 5



Thank u so much.. I am very confused and lost.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 24
Reputation: kain_mcbride is an unknown quantity at this point 
Solved Threads: 3
kain_mcbride's Avatar
kain_mcbride kain_mcbride is offline Offline
Newbie Poster

Re: Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #2
Nov 19th, 2008
alright, what part aren't you understanding?

part 1 is creating 5 arrays and setting their values somewhere within the program.

part 2 is creating another 3 arrays to store the results of your comparisons between the data.
... there is no bug that enough coffee cannot fix...
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 24
Reputation: kain_mcbride is an unknown quantity at this point 
Solved Threads: 3
kain_mcbride's Avatar
kain_mcbride kain_mcbride is offline Offline
Newbie Poster

Re: Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #3
Nov 19th, 2008
Originally Posted by kain_mcbride View Post
alright, what part aren't you understanding?

part 1 is creating 5 arrays and setting their values somewhere within the program.

part 2 is creating another 3 arrays to store the results of your comparisons between the data.
part 1 is basicly just putting the data into the arrays; you can hard code this within the program if you want since the data is fixed for this question. hardcoding data could be set in the form_load sub, or you could create another sub 'setData' or something and call it from Form_Load

part 2 is taking that data and compairing it.
so, if actualSales > targetSales, commissionAmount would be (commissionPercentage / 100) * actualSales * 1.5

then you'd add commission amount with basic salary to make total salary

and since actual sales exceed target sales, you'd set targetAchieved to "EXCEEDED"

if actualSales = targetSales then commission isn't modified, just applied in a similar way to above
same as above; except targetArchived would be "MET"

if actualSales < targetSales, then they don't get a commission.
same as above, except target achieved would be "FAILED"

and finally part 3

part 3, you just put everything in a list box with columns. personally i don't see the purpose in using a list box; they're not exactly functional... but thats what you were asked to do; so i guess that's what you're going to have to do.

(this does not apply to your homework, this is just how i'd do it...)
personally, i'd just keep it simple nad use a text box; then add them through a loop anding the line with vbcrlf (could use a lable instead since that wouldn't be editable)

then you could use a function like this to force things to be the same size.

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. public function getFixedLength(vData as Varient, iLength as integer) as string
  2. getFixedLength = trim$(str$(vData))
  3. if len(getFixedLength < iLength then getFixedLength = getFixedLength & string$(iLength - len(getFixedLength)), " ")
  4. end function
... there is no bug that enough coffee cannot fix...
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: daniiq8 is an unknown quantity at this point 
Solved Threads: 0
daniiq8 daniiq8 is offline Offline
Newbie Poster

Re: Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #4
Nov 19th, 2008
Thanks so much kain. I really appreciate it so much ;D..
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,149
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #5
Nov 20th, 2008
i hope you have read this.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 24
Reputation: kain_mcbride is an unknown quantity at this point 
Solved Threads: 3
kain_mcbride's Avatar
kain_mcbride kain_mcbride is offline Offline
Newbie Poster

Re: Important: Having problems with assignment due 20/11/08(tomr) need help please

 
0
  #6
Nov 20th, 2008
yeah; i didn't actually give an answer, i just explained the question... if you follow the link the wording of the question could use some work; i did list a way to do part 3, but the method isn't an acceptable sollution to the question, just the way i'd do it (if i was doing it for some other purpose than to answer a question).
Last edited by kain_mcbride; Nov 20th, 2008 at 2:42 am. Reason: wording?
... there is no bug that enough coffee cannot fix...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 495 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC