Question: // Lab: Module Zero, Lab 1 public class LabZero1 { public static void main (String [] args) { // Task 1: 10 Points int a,b,c;
// Lab: Module Zero, Lab 1
public class LabZero1
{
public static void main (String [] args)
{
// Task 1: 10 Points
int a,b,c; // set a value, any value for each one of these variables
double x,y,z; // place any double type value into these variables.
float fl1; // place a float compatible value here - be careful when assigning floats(check precision!)
// Task 2: 15 Points Correct(if needed) the following commands for precision
fl1 = x * a;
b = b - y;
z = x / y;
//End Task 2
//Do not modify lines below
System.out.println("Value of int [a] is: " + a + "Value of int [b] is: " + b + "Value of int [c] is: " + c);
System.out.println("Value of double [x] is: " + x + "Value of double [y] is: " + y + "Value of double [z] is: " + z);
System.out.println("Value of float [fl1] is " + fl1);
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
