Anti Essays :: Free Essay on "Java"
You can search for more free term papers from Anti Essays using the search box above.
This free essay is for research purposes ONLY. Do NOT submit term papers from Anti Essays as your own. If you use information from this free term paper, it is your responsibility to cite it. MLA and APA citations can be found at the bottom of the page.
Submitted by Len_Metallica on October 19, 2008
class InfoCollector
{
public static void main (String[] args)
{
/*** Variable Dictionary ***************************
*name-the name of the user *
*adress-the adress of the user/ where he lives *
*city-the city in which the user lives *
*postal-the postal code of the user *
*age-the age of the user *
*savings-the life savings of the user *
*weight-the weight of the user *
*gender-thegender of the user *
***************************************************/
String name, adress, city, postal;
int age;
double weight, savings;
char gender;
//asking the user for his/her information and storing it in the variables
name = Input.getString ("Please enter your full name");
adress = Input.getString ("Please enter your street adress");
city = Input.getString ("Please enter the name of the city that you live in");
postal = Input.getString ("Please enter your postal code");
age = Input.getInt ("Please enter your age");
weight = Input.getDouble ("Please enter the amount you weigh");
savings = Input.getDouble ("Please enter your life savings");
gender = Input.getChar ("Please enter your gender");
//printing out the Personal Information of the user
Output.println ("*2*4*6*810**14**1820**************************");
Output.println (" Personal Information");
Output.println ("Name: " + name);
Output.println ("Adress: " + adress);
...
You must Login to view the entire essay.
If you are not a member yet, Sign Up for free!
"Java". Anti Essays. 21 Nov. 2009
<http://www.antiessays.com/free-essays/17534.html>
Java. Anti Essays. Retrieved November 21, 2009, from the World Wide Web: http://www.antiessays.com/free-essays/17534.html