All Courses VU Solved Past Papers

Sunday, May 26, 2013

Re: ::: vuaskari.com ::: plz confirm answer cs201

Yes dear, for programming purpose we must go with Multiplication first. Otherwise for other simple arithmetic operations/functions we follow the rule of "DMAS" where division operations have preference. 


On Sun, May 26, 2013 at 1:26 AM, ^*^Aniqa Malik^*^ <aniqa@vuzs.net> wrote:
But on the other hand if we multiply first by keeping this concept in mind that "/" and "*" has same level of precedence  then answer will be totally change.It'll be 9.

6+27/(3*3)
=6+27/9
=6+3
=9
  
So it's better to write a program n run to get the perfect answer. 



On Sun, May 26, 2013 at 12:08 AM, aspirant bibliophile <aspirant.bibliophile@gmail.com> wrote:
Order of precedence of is...

Exponentiation
Multiplication/Division    (same level of precedence)
Addition/ Subtraction

 in our case it would be solved as below.
your answer is correct.

6+(27/3)*3
=6+9*3
=6+27
=33



On Fri, May 24, 2013 at 9:36 PM, Zahid Adnan <zahidchand2000@gmail.com> wrote:

the result of arithmetic expression 6+27/3*3?

► 33      ???

45

► 9

 
30
 
 
in my point of view the correct is 33???
--
    M.Zahid Adnan
     
MIT Final Semester
   Layyah Campus
     cs201,cs401,cs403,cs504,cs304
                                                                                      

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
 
 

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
 
 


--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
 
 

No comments:

Post a Comment

Please Comment About my Work

google-site-verification

Search Any Assignment Solution And Past Papers