Question: Please answer the following question in visual studio 2017. Think and write any arithmetic expression that uses the following 5 basic operations in C at

Please answer the following question in visual studio 2017.

Think and write any arithmetic expression that uses the following 5 basic operations in C at least once: +, -, * /, and %. The expression may or may not have parentheses. Evaluate the operations and produce a final result for the expression following the C order of precedence for operations. The posting must show the order in which operations were performed.

Examples (do not use these for your response):

54 % 5 + 3 / 2 - 3 * 2 = 4+1-6 = -1 OR

54 % ((5 + 3) /2) 3 * 2 = 56 % (8/2) - 6 = 56 % 4 - 6= 0 - 6 = -6

  1. Select a mathematical formula that calculates something you have studied or used before, and that requires at least two input variables. However, do not select any formula given in any Programming Assignment. Programming Assignments are personal and should not be shared with anybody but the instructor.
    • Write a C/C++ program to calculate your selected formula. The program must include the following:
    • Appropriate selection of data types for all variables. Declare all of them correctly.
    • Commands to read values for your input variables from the user. These values must be printed after received with appropriate labels to identify them. This will confirm that the values were properly read.
    • Perform of calculations into output variables to obtain the formula.
    • Printing of the values for output variables with appropriate labels.
    • You must use the scanf and printf C commands for Input/Output. The program must compile and run in Microsoft Visual Studio.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!