write an algorithm to solve 120*(4+5/3+7)using bodmas rule
Share
write an algorithm to solve 120*(4+5/3+7)using bodmas rule
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Answer:
Here's an algorithm to solve the expression 120*(4+5/3+7) using the BODMAS rule:
1. Start by evaluating the expression within the innermost parentheses.
2. Calculate the value of 5 divided by 3: 5 / 3 = 1.6666667 (rounded to the required precision).
3. Replace the expression 5/3 with the calculated value in the original expression: 120*(4 + 1.6666667 + 7).
4. Next, evaluate the expression within the parentheses: 4 + 1.6666667 + 7 = 12.6666667 (rounded to the required precision).
5. Replace the expression within the parentheses with the calculated value in the original expression: 120*12.6666667.
6. Finally, perform the multiplication: 120 * 12.6666667 = 1520 (rounded to the required precision).
The final result of the expression 120*(4+5/3+7) using the BODMAS rule is 1520.