|
|
![]() |
|
|
Top | #1 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
|
|
|
|
|
|
Top | #2 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
can someone please help?
|
|
|
|
|
|
Top | #3 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
someone please help!
|
|
|
|
|
|
Top | #4 |
|
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113 |
well i think it wold be simple to calculate, math is the worst part in programming thati have i hate math, but sometimes it helps if you write them down just as normal english-math on paper then translate them to code
|
|
|
|
|
|
Top | #5 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
i'm not understanding what it means by using a boolean property for new releases. but thank you for trying to answer
|
|
|
|
|
|
Top | #6 |
|
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113 |
you should have a boolean (true/false) variable to check if it's a new release or not, i dont know how to boolean that good haven't coded in VB for like 2yrs
|
|
|
|
|
|
Top | #7 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
i cant figure out how the boolean would work. the directions that i attached is what my teacher gave me and i cant figure that part out for the life of me.
|
|
|
|
|
|
Top | #8 |
|
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113 |
try asking X-Istance i think he knows how to program good maybe he might be able to help you, coz i forgot all about theses things learned them once in grade 11 and forgot about them
|
|
|
|
|
|
Top | #9 |
|
*
Joined: December 2001
Location: USA
Posts: 6,490
Reputation: 2808
Power: 217 |
Never programmed VB.net i am fraid to say. But i am betting that if you look through your course material, and notes you took during class that you could get what you needed.
boolean variables are either true or false, on the low level, most people have them as int's, so 1 = true, 0 = false. So if it is a new release, your program would set the boolean to true, then later when you are calculating the cost, you check if this boolean is set, and if it is, then you make the price higher than the normal cost, depending on it being DVD or Vhs. |
|
|
|
|
|
Top | #10 |
|
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113 |
i think they kinda the samething though vb and vb.net try using msdn library if you have it installed, you can also try www.msdn.com or that link might help you
http://www.microsoft.com/downloads/r...DisplayLang=en btw how do i make that link smaller just by click on a word it'll link to that site? |
|
|
|
|
|
Top | #11 |
|
OSNN Addict
Joined: March 2004
Posts: 127
Reputation: 10
Power: 98 |
I don't know VB.net, but the concepts show below (c#) should be similar. The goal you have is to create an object. This object needs certain properties. You need a string to return a class variable of movie_title. You need boolean values [http://en.wikipedia.org/wiki/Boolean] to determine if your object is a VHS, DVD, New Release, or a Member Rental. After that, It should be pretty straight forward. I think if I give you any more info I'd be doing the assignment for you. But, I'm still open to questions. Look below for the C# example...
Code:
...
// GET or SET From
public String movie_title {
get {
return _movie_title;
}
set {
_movie_title = value;
}
}
// GET or SET From
public Bol dvd {
get {
return _dvd;
}
set {
_dvd = value;
}
}
...
|
|
|
|
|
|
Top | #12 |
|
OSNN Senior Addict
Joined: May 2002
Location: Stoney Creek, ON, Canada
Posts: 820
Reputation: 500
Power: 132 |
IRC it man!!
|
|
|
|
|
|
Top | #13 |
|
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99 |
thanks for all your help. we'll see how it turns out
|
|
|
|
|
|
Top | #14 |
|
OSNN Veteran Addict
Joined: May 2002
Location: London England
Posts: 1,014
Reputation: 140
Power: 130 |
A Boolean value (true or false) in VB, Access VB (all versions) prior to .NET is a misnomer as it can be expressed as either the “value” -1, “meaning true”, “true”, or “false”, 0, however in .NET the keywords true or false are expected.
Coercion of data types as you can imagine, between the two now totally different languages is a nightmare as it’s a matter of contention which is applied unless you have used true and false. This logic is the nightmare of programmers attempting to convert their applications from one system to another and it does not end here either. Data types in any .NET language do not readily convert to any known logic model, null data types are the best example of this. Microsoft should, and could have (easily if they had thought the model through), provided an upgrade path that trapped some of these more serious issues which by the way are extremely difficult to de-bug even if you are aware of them, instead they just proceeded down the .NET path and not until after its release considered any other issues. This does not sound like “Object Orientated” design processes to me, surely one programming team can communicate with another within the same company? Well maybe not as is the case here. A mess it surely is and you will have to pick up the pieces. Or Microsoft will now lose market share in a way they have never experienced before, just like IBM before them and Digital Research.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with visual basic 6 | saithe | Web Design & Coding | 1 | December 28th, 2005 7:20am |
| Visual Basic 6 | adamg | Web Design & Coding | 3 | November 13th, 2003 6:35am |
| Visual Basic - Question | lieb39 | Web Design & Coding | 4 | February 18th, 2003 5:57pm |
| Visual Basic | JJH35 | Web Design & Coding | 2 | January 31st, 2003 3:41pm |
| Visual Basic 6.0 | rickang | Web Design & Coding | 1 | March 21st, 2002 2:22am |