Question: Question 2 Write a simple Java program Evaluate Function.java that reads three integer variables x, y, and z from the user and evaluates the outputs

Question 2 Write a simple Java program Evaluate Function.java that reads three integer variables x, y, and z from the user and evaluates the outputs of f(x,y,z) and g(x,y) for given values. The definitions of functions f(x, y, z) and g(x,y) are as follows: y? x2 2. f(x,y,z) = 2x z3 - y x + y 3x g(x, y) = x - y y + Sample Output: Enter integer x: 5 Enter integer y: 4 Enter integer z: 3 f(5,4,3) - 10 g(5,4) = 13 g(f(5,4,3),4) = -7 Note 1: Print the result as an integer. Use Math.round function to find the integer value nearest to the computed result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
