943,734 Members | Top Members by Rank

Ad:
Nov 19th, 2008
0

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

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
daniiq8 is offline Offline
2 posts
since Nov 2008
Nov 19th, 2008
0

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

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.
Reputation Points: 22
Solved Threads: 3
Light Poster
kain_mcbride is offline Offline
25 posts
since Nov 2008
Nov 19th, 2008
0

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

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
Reputation Points: 22
Solved Threads: 3
Light Poster
kain_mcbride is offline Offline
25 posts
since Nov 2008
Nov 19th, 2008
0

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

Thanks so much kain. I really appreciate it so much ;D..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
daniiq8 is offline Offline
2 posts
since Nov 2008
Nov 20th, 2008
0

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

i hope you have read this.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Nov 20th, 2008
0

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

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?
Reputation Points: 22
Solved Threads: 3
Light Poster
kain_mcbride is offline Offline
25 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Run-Time Error '-2147217842(80040e4e)
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Numbering in Printing report





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC