Question: c++ 1. Create variables for each mathematical expression and output to the console appropriately: Notes: Remember the importance of BEDMAS Choose the appropriate data type
1. Create variables for each mathematical expression and output to the console appropriately: Notes: Remember the importance of BEDMAS Choose the appropriate data type for each variable (int or float) Avoid Truncation!! a) Variable 'a' equals 7 multiplied by 3 plus 2, all multiplied by 6 (output 'a' to the console) b) Variable 'b' equals the division of 3 by 2, all divided by 7 (output 'b' to the console) c) r=2 S = 5 divided by (output 's' to the console) d) f= 4.0 g=7 h = ' divided by 'g (output 'h' to the console) e) w = 4.0 X = 5.3 z=w/ e = z divided by the result of w plus x (output 'e' to the console) f) i = 7 j = 2 k = i plus 3 multiplied by 5, all divided by j plus 3 multiplied by 6 (output 'K' to the console)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
