Lab Exercise 12 Due 04/11/2018 Purpose: Working with Wrapper classes General Inf
ID: 3716202 • Letter: L
Question
Lab Exercise 12
Due 04/11/2018
Purpose:
Working with Wrapper classes
General Information
In this lab assignment, you need to use methods of at least two API wrapper classes to complete the code.
Provided Resources
Lab 12 Instructions, including requirements
The code shell (Lab12.java)
Sample output
Requirements
Complete the printf statements to provide the required output. Do not changes any provided variable declarations. Do not add any variable declarations to the code.
Use API wrapper class methods to complete the printf statements.
In one case, you will need to cast a result into the proper type in order for the printf statement to process correctly.
Grading
If your program compiles clearly and functions exactly as required, your grade will be 100%. Otherwise, it will be 0%.
Expected Output
Following is a sample of expected output when you run Lab12.java.
The sum of firstInteger plus secondInteger is: 1015
The difference of secondInteger less firstInteger is: 287
The result of dividing firstInteger by secondInteger is: 0.559140
The sum of firstDouble plus secondDouble is: 1624.570000
The difference of firstDouble less secondDouble is: 1249.090000 The result of dividing firstDouble by secondDouble is: 7.653297
***************************PROVIDED CODE***************************************
Explanation / Answer
OUTPUT :
The sum of firstInteger plus secondInteger is: 1015
The difference of secondInteger less firstInteger is: 287
The result of dividing firstInteger by secondInteger is: 0.559140
The sum of firstDouble plus secondDouble is: 1624.570000
The difference of firstDouble less secondDouble is: 1249.090000
The result of dividing firstDouble by secondDouble is: 7.653297
Process finished with exit code 0
** Couldn't attach the screenshot because of some technical problem
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.