Once this form has been customized for your institution, you can use this button to send your lab work. Be sure to read the instructions before starting your work. Lab Objectives To gain experience with integer and floating-point numbers writing arithmetic expressions in Java appreciating the importance of comments and good code layout defining and initializing variables and constants recognizing the limitations of the int and double types and the overflow and roundoff errors that can result reading user input and displaying program output changing the values of variables through assignment using the Java String class to define and manipulate characters strings writing simple programs that read numbers and text, process the input and display the results R1. Number Types Numbers are essential to computing.
Integers have no decimal part, whereas floating point numbers do.
Variables of either type are represented by user specified names. Space in the computer's memory is associated with the name so that the variable acts like a container for the numeric data. Declaring a variable reserves space in memory and associates a specified name with it. When a variable is declared, it contains whatever value is leftover from the previous use of the memory space. Initializing a variable sets it to a specific value.