Answered step by step
Verified Expert Solution
Question
1 Approved Answer
file named Proj 1 1 Runner.java to meet the specifications given below. Note that you must not modify the code in the file named Proj
file named ProjRunner.java to meet the specifications given below.
Note that you must not modify the code in the file named Projjava.
Be sure to display your name in the output as shown below.
When you place both files in the same folder, compile them both, and run the file named Projjava, the program must display the text shown below on the command line screen.
The numeric output values depend on the values of two commandline arguments that are entered when the program is run. If no commandline arguments are entered, the program defaults to input values of and The output for commandline argument values of and is shown below. Your program will be tested with different commandline arguments.
Your solution for this assignment must use one or more lambda expressions. Among other things, this means that your code must use one or more statements that contain the arrow operator.
The following should displaym when the program is run:
"Input values to student code
Student's solution must use lambda expressions.
Call student's run method.
I certify that this program is my own work
and is not the work of others. I agree not
to share my solution with others.
Print your name here.
Display results returned from student's code.
Sum:
Difference:
Product:
Quotient:
That's all folks."
Projjava Should not be modify
File Projjava
The purpose of this assignment is to assess the student's
ability to write programs that use lambda expressions
Student must not modify the code in this file.
class Proj
public static void mainString args
int x ;
int y ;
ifargslength
System.out.printlnUse default input values, and ;
elseget x and y from args
x Integer.parseIntargs;
y Integer.parseIntargs;
;end else
System.out.println
Input values to student code x y;
System.out.println
Student's solution must use lambda expressions.";
Instantiate an object from the student's code.
ProjRunner obj new ProjRunner;
System.out.println
Call student's run method.
;
double result obj.runxy;
System.out.println
Display results returned from student's code.";
System.out.printlnSum: result;
System.out.printlnDifference: result;
System.out.printlnProduct: result;
System.out.printlnQuotient: result;
System.out.printlnThats all folks.";
end main
end class Proj
End program specifications.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started