Question: zy Section 2 . 1 0 - IFT 2 1 0 : Introduc m / zybook / 2 0 2 4 SpringA - X -

zy Section 2.10- IFT 210: Introduc
m/zybook/2024SpringA-X-IFT210-18749/chapter/2/section/10
Introduction to Java Technologies home >2.10: Math methods
CHALLENGE
ACTIVITY
2.10.2: Writing math calculations.
528040.3489528.qx3zay 7
Jump to level 1
Compute: z=y3-|x|2
Ex: If the input is 2.03.0, then the output is:
5.0
import java.util.Scanner;
public class MathFunctions {
public static void main (String [] args){
Scanner scnr = new Scanner(
System.in);
double x;
double y;
double z;
x= scnr.nextDouble () ;
y= scnr.nextDouble(();
/* your code goes here */I I
System.out.printf("%.1f
", z); // This will output z wi
}
}
1
2
 zy Section 2.10- IFT 210: Introduc m/zybook/2024SpringA-X-IFT210-18749/chapter/2/section/10 Introduction to Java Technologies

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!