Lonely Soul
Anime Fanatic
Sesshoumaru & Rin together forever! XD
Posts: 275
|
Post by Lonely Soul on Oct 13, 2003 19:19:14 GMT -5
[glow=blue,2,300]Okay, I remember you saying that you know VB.NET or something.. Well, I have homework right now & I can't figure it out! Please help me! Here they are: (In this lesson we're creating variables and named constants.) 1. Assume a procedure needs to store an item's name and its price. The price may have a decimal place. Write the appropriate Dim statement to create the necessary local variables. (Am I suppose to write two Dim thingies? Or only one? I'm so confused... I guess it's Dim decPrice, decName As Decimal. Is that right? Probably not... ) 2. Assume a procedure needs to store the name of an item in inventory and its height and weight. The height may have decimal places; the weight will be whole numbers only. Write the appropriate Dim statement to create the necessary local variables. 3. Assume a procedure needs to store the name of an inventory item, the number of units in stock at the beginning of the current month, the number of units purchased during the current month, the number of units sold during the current month, and the number of units in stock at the end of the current month. (The number of units is always a whole number.) Write the appropriate Dim statment to create the necessary local variables. Well, I have 2 other problems but my dad is getting mad at me as always and he wants me to get off. -_- Please answer at least 2 of those so that maybe I can figure out how the heck you got it. PLEASE! The homework is due tomorrow. Thanks if you do! ^.^[/glow]
|
|
|
Post by MaCeR on Oct 13, 2003 22:43:18 GMT -5
1. Dim decPrice As Decimal, strName As String decPrice as Decimal could also be dblPrice as Double 2. Dim decHeight As Decimal, intWeight As Integer 3.... too long hehe it should be easy once you see the other 2 answers... and oh yea I got these answers with my skills in normal Visual Basic dunno about .Net.. it should be the same tho
|
|
Lonely Soul
Anime Fanatic
Sesshoumaru & Rin together forever! XD
Posts: 275
|
Post by Lonely Soul on Oct 14, 2003 16:01:59 GMT -5
[glow=blue,2,300]Well... my dad wouldn't let me on last night so I couldn't see if you replied. But, my teacher gave the class all the right answers & you were right on the first 2! ^_^ (I only got 1 of the problems right out of 5, and that was #3. u_u) Today we have homework again with that stuff, so if I don't get it again, all ask you again! ;D (If that's all right with you. ) How do you understand this stuff? I don't get it! ~_~[/glow]
|
|
|
Post by Eyes of Crimson on Oct 14, 2003 18:26:58 GMT -5
@_@ What is this stuff?
|
|
|
Post by MaCeR on Oct 14, 2003 18:52:20 GMT -5
hehe it's the wonderful world of computer programming sammi! and yea np lonely I'll help you out with anything I remember hehe
|
|
|
Post by M-Chan on Oct 14, 2003 21:34:36 GMT -5
holy crapolaa.. thats some crazy stuff! *head explodes*
|
|
|
Post by MaCeR on Oct 14, 2003 22:42:48 GMT -5
Yay! free brains! *starts munching away*
|
|
|
Post by Eyes of Crimson on Oct 15, 2003 18:12:59 GMT -5
hehe it's the wonderful world of computer programming sammi! and yea np lonely I'll help you out with anything I remember hehe ....oh GOD!!!! That reminds me - I'm gonna have to take computer science next semester!!!! >0<;;
|
|
|
Post by MaCeR on Oct 15, 2003 18:14:59 GMT -5
awesomeo sammi-san! If you use C++ or Java you can ask for my help!
|
|
|
Post by Eyes of Crimson on Oct 15, 2003 18:20:10 GMT -5
Okay ^^; But that won't be till next yr We'll start in Jan. or Feb, I think ^^
|
|
Lonely Soul
Anime Fanatic
Sesshoumaru & Rin together forever! XD
Posts: 275
|
Post by Lonely Soul on Oct 16, 2003 12:47:34 GMT -5
[glow=blue,2,300]GAH! I need more help, MACER! x_o Here it is: Assume two procedures in a form need to use the mconAge named constant, whose value is 21. Write the statement to declare the constant. Also specify where you need to enter the statement and whether the constant is a local and form-level constant. (I'm... so lost! x_o I have an idea but I really don't think it's right! ) Write the statemnt to declare a local named constant named conTaxRate whose value is .05. (My guess is Const conTaxRate As Integer = .05 )[/glow]
|
|
|
Post by MaCeR on Oct 17, 2003 16:47:08 GMT -5
uh oh sorry lonely.. I can't help you with that one.. all I can think of is my Java/C++ ways of doing things and that will just confuse u.. but it seems like u know what you're saying with the bottom question hehe
|
|
Lonely Soul
Anime Fanatic
Sesshoumaru & Rin together forever! XD
Posts: 275
|
Post by Lonely Soul on Jan 19, 2004 3:18:42 GMT -5
*sniff* Guess what? I ACTUALLY PASSED VB.NET!!! Eee!! I was so happy when I found out!! ,^^, I didn't think I would... Well, I passed with an A and I'm so glad it's a new semester cuz I was tired of coding!! Grr... But now I'm taking Multimedia!! >< I don't why I decided to take this freakin' class!! ugh!! Anyway, thanks for the help Macer! ^^v I think I figured out how to do it more later in the semester. ^^; Well anyway... lalalalala... *skips away*
|
|