Expression: 15 + 3 / 4 * 10 ** 2 ** 2 Exponents (right to left): 2 ** 2 = 4 Expression now becomes: 15 + 3 / 4 * 10 ** 4 Exponents (right to left): 10 ** 4 = 10000 Expression now becomes: 15 + 3 / 4 * 10000 Multiplication and Division (left to right): 3 / 4 = 0.75 Expression now becomes: 15 + 0.75 * 10000 Multiplication and Division (left to right): 0.75 * 10000 = 7500 Expression now becomes: 15 + 7500 Addition: 15 + 7500 = 7515.0 This is a right answer because the associativity tells the direction of execution . Means if *,/, // , % are present in expression then solve what operator is present on left do not solve * first and / second like that . when I was solve this expression on my book I get the answer 15.00075 because I done * first then / . and when I put this expression in command prompt then I will get 7515.0 then I ask chatgpt and I came to this final conclusion that associativity tells the direction of execution . like left to right etc.
15+3/4*10**2**2 ---this is equations first is power associtivity from right to left 1. 2**2=4 Then 15+3/4*10**4 2. 10**4=10,000 Then 15+3/4*40,000 3.mutiplications have high associativity because it is left to right * ,/ ,//,% So, here multiplication first: 4*40,000=1,60,000 Then eq is : 15+3/1,60,000 3/1,60,000=0.0001875 Then eq is 15+0.00001875 =15.00001875 15.00001875
Expression: 15 + 3 / 4 * 10 ** 2 ** 2
Exponents (right to left): 2 ** 2 = 4
Expression now becomes: 15 + 3 / 4 * 10 ** 4
Exponents (right to left): 10 ** 4 = 10000
Expression now becomes: 15 + 3 / 4 * 10000
Multiplication and Division (left to right): 3 / 4 = 0.75
Expression now becomes: 15 + 0.75 * 10000
Multiplication and Division (left to right): 0.75 * 10000 = 7500
Expression now becomes: 15 + 7500
Addition: 15 + 7500 = 7515.0
This is a right answer because the associativity tells the direction of execution . Means if *,/, // , % are present in expression then solve what operator is present on left do not solve * first and / second like that .
when I was solve this expression on my book I get the answer 15.00075 because I done * first then / . and when I put this expression in command prompt then I will get 7515.0 then I ask chatgpt and I came to this final conclusion that associativity tells the direction of execution . like left to right etc.
I made the same mistake you did and got 15.00075 for an answer. Thanks for post the correct solution below.
15.00075
>> 15+3/4*10**2**2
>> 15+3/4*10**4
>> 15+3/4*10000
>> 15+0.75*10000
>> 15+7500.0
output = 7515.0
1. ** - right to left
2. Rest operators - left to right ( including bodmas one)
Great content
nice explanation..
You are good
absolutely great.
isnt it like bodmas
15 + 3 / 4 * 10 ** 2 ** 2
15 + 3 / 4 * 10 ** 4
15 + 3 / 4 * 10000
15 + 0.75 * 10000
15 + 7500.0
7515.0
75.15
Ans:
7515
(Why did some of you write 7515.0?)
the expression will implicitly change data type of entire expression to float value because 3/4 yields float value.
@@achugh52 thanks
15+3/4*10**2**2 ---this is equations
first is power associtivity from right to left
1. 2**2=4
Then 15+3/4*10**4
2. 10**4=10,000
Then 15+3/4*40,000
3.mutiplications have high associativity because it is left to right * ,/ ,//,%
So, here multiplication first:
4*40,000=1,60,000
Then eq is :
15+3/1,60,000
3/1,60,000=0.0001875
Then eq is 15+0.00001875 =15.00001875
15.00001875
Wrong
PEMDAS
7515
15.00075
7,515.0
7515 is the correct answer for this question how many members will accept this answer is correct please click on like button
Am getting 45 did I miss something😅
7515.0
It's meant to be 4**10
Pls, how did u get this 10**4=10000
10^4 means 10*10*10*10 by this way you can get 10000 as result@@FunkeFamuwagun
HW :7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0
7515.0