collapse

Author Topic: C# any1 familiar?  (Read 487 times)

0 Members and 1 Guest are viewing this topic.

Offline Seiyuuki

  • Initiate
  • **
  • Posts: 67
  • Last Login:January 04, 2009, 11:57:54 AM
C# any1 familiar?
« on: November 29, 2008, 11:04:16 PM »
i need serious help my professor expects us to know what to do even though he didn't explain this to the class. plz answer if you know this stuff b/c my mind's about to explode b/c of this

Quote
7  What is the value of the indicated variable after each of the following statements?

             int a = 20, b = 18, c = 10, p = 32, q = 5, r = 0;

   a)  r = a++;       r = _____________   a = ___________

   b)  p = --b;       p = ____________   b = __________ 

   c)  c *= q;        c = _____________   q = __________


9.  You are given the following two propositions: 

p is the proposition: “eight times five equals twenty one”
q is the proposition: “six divided by three equals two”

Find the truth value of each of the following logical expressions

a)   p || q ………………………………. 

b)   p && q…………………………

c)    !(p || q)………………………..

d)   !p || !q ………………………………

e)   !p && !q……………………..

f)   !(p && q)…………………………….

10.  What is the value of the indicated variable after the following statements?


int m = 10;
int n = 25;
int l = 30;
int k = 15;
int x = 0;
int y = 2000;

a)  x = n++    x=…………………………. n = …………………………….

b)  y = -m;     y= ………………………… m=…………………………….

c)  l += k:       l=………………………….  k= …………………………….


12sky|Serenity|Guanyin pm me if you play

Offline Vault-tec Rep Høröúßøí

  • Vault-tec rep and part time
  • Infinity Graphic Designer
  • ****
  • Posts: 3476
  • Country: United States us
  • Last Login:May 17, 2022, 03:49:32 AM
  • Hello, i would like to welcome you to vault IMT...
    • Hollow_boy
Re: C# any1 familiar?
« Reply #1 on: November 29, 2008, 11:44:18 PM »
X_X *my brains just fryed*

Offline Seiyuuki

  • Initiate
  • **
  • Posts: 67
  • Last Login:January 04, 2009, 11:57:54 AM
Re: C# any1 familiar?
« Reply #2 on: November 30, 2008, 08:29:48 AM »
come on no1 knows this stuff
12sky|Serenity|Guanyin pm me if you play

Offline nick09

  • Contributor
  • ****
  • Posts: 3481
  • Last Login:December 21, 2011, 10:16:38 PM
  • Avatar Credit to CD.
    • Nick09's creations
    • Email
Re: C# any1 familiar?
« Reply #3 on: November 30, 2008, 08:32:59 AM »
I wish I could help you. :-??

I may be in a IT class but we don't learn coding.

Offline Seiyuuki

  • Initiate
  • **
  • Posts: 67
  • Last Login:January 04, 2009, 11:57:54 AM
Re: C# any1 familiar?
« Reply #4 on: November 30, 2008, 09:45:36 AM »
As for 7a ++ means add 1 if I'm not mistaken so in this case r and a would have the value 21.
In 7b -- means subtract 1 so p and b would have the value 17.(no guarantees)
I can't help you on 7c don't know cause I don't know what this means *=

9a is true, 9b is false, 9c is also false, 9d is true, 9e is false and 9f is true(again no guarantees)

As for 10
in 10 a x and n would have the value 26.
I don't know what a sole + and - mean in front of a variable mean, so I can't answer 10b and 10c.
Still hope this helps. ???



dude i think your right on this one thanks man that helps out alot but one thing that puzzles me though what do you put for the second line on question 7 and 10
12sky|Serenity|Guanyin pm me if you play

Offline bdcirck

  • Initiate
  • **
  • Posts: 154
  • Last Login:March 23, 2013, 11:48:21 AM
    • Email
Re: C# any1 familiar?
« Reply #5 on: November 30, 2008, 11:15:35 AM »
7  What is the value of the indicated variable after each of the following statements?

             int a = 20, b = 18, c = 10, p = 32, q = 5, r = 0;

   a)  r = a++;        r = 21   a = 20

   b)  p = --b;        p = 17  b = 17 

   c)  c *= q;        c = 50   q = 5


9.  You are given the following two propositions: 

p is the proposition: “eight times five equals twenty one” false
q is the proposition: “six divided by three equals two” true

Find the truth value of each of the following logical expressions

a)   p || q     true

b)   p && q    false

c)    !(p || q)      false

d)   !p || !q    true

e)   !p && !q    false

f)   !(p && q)    true

10.  What is the value of the indicated variable after the following statements?


int m = 10;
int n = 25;
int l = 30;
int k = 15;
int x = 0;
int y = 2000;

a)  x = n++    x=26. n = 25.

b)  y = -m;     y= -10 m=10.

c)  l += k:       l=45 k=15

PS. I am a BICT graduated a year and a half ago
« Last Edit: November 30, 2008, 11:25:55 AM by bdcirck »

Offline Seiyuuki

  • Initiate
  • **
  • Posts: 67
  • Last Login:January 04, 2009, 11:57:54 AM
Re: C# any1 familiar?
« Reply #6 on: November 30, 2008, 12:14:03 PM »
wow dude  ^:)^ ^:)^

you are good.

12sky|Serenity|Guanyin pm me if you play

Offline ATiC3

  • Cryomancer
  • MUGEN Content Architect
  • *****
  • Posts: 4643
  • Country: United States us
  • Last Login:May 20, 2024, 07:30:49 PM
  • "Why not fight for Earthrealm?"
    • My Creations
Re: C# any1 familiar?
« Reply #7 on: November 30, 2008, 02:03:29 PM »
wait wait wait... if you're professor didn't tell you anything and he's having you guys do this crap... then I would talk to your counselor about getting a diff. teacher, because that person must be messed up in da head.
 

Offline Seiyuuki

  • Initiate
  • **
  • Posts: 67
  • Last Login:January 04, 2009, 11:57:54 AM
Re: C# any1 familiar?
« Reply #8 on: November 30, 2008, 03:19:23 PM »
wait wait wait... if you're professor didn't tell you anything and he's having you guys do this crap... then I would talk to your counselor about getting a diff. teacher, because that person must be messed up in da head.

yea i know exactly but he's the most qualified for the job the dudes name is joe weissmen or weissman i forgot how to spell his name and he worked at IBM for 40 years before he retired and got into teaching. he sometimes cures like a sailor and he writes like crap and their isn't another class like this so it's either this or an extra semester on top of the 11 that i need to take before graduating. if i had a choice i'd fill out the teacher evaluation saying he did crap fliped the bird at him then changed professors

and i want to do this as fast as possible so i'm doing spring, summer, & fall so i can graduate in 3 and a half years
12sky|Serenity|Guanyin pm me if you play

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Virtual Bart Science Fair by Lord_Enemil
[June 15, 2024, 08:23:51 PM]


Classic VS : Cheng / Athena by ELECTRO
[June 13, 2024, 03:03:58 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]

* IMT Calendar

June 2024
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
[16] 17 18 19 20 21 22
23 24 25 26 27 28 29
30

SimplePortal 2.3.5 © 2008-2012, SimplePortal