| | |
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
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
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.
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.
Re: Important: Having problems with assignment due 20/11/08(tomr) need help please
0
#2 Nov 19th, 2008
Re: Important: Having problems with assignment due 20/11/08(tomr) need help please
0
#3 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.
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)
public function getFixedLength(vData as Varient, iLength as integer) as string getFixedLength = trim$(str$(vData)) if len(getFixedLength < iLength then getFixedLength = getFixedLength & string$(iLength - len(getFixedLength)), " ") end function
... there is no bug that enough coffee cannot fix...
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
Re: Important: Having problems with assignment due 20/11/08(tomr) need help please
0
#4 Nov 19th, 2008
Re: Important: Having problems with assignment due 20/11/08(tomr) need help please
0
#5 Nov 20th, 2008
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...
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Run-Time Error '-2147217842(80040e4e)
- Next Thread: Numbering in Printing report
Views: 494 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






