Admin
Investor Persona
File name: profile.java
Display Results:
Name: John Smith
Age: 60
Date of Birth: 01/12/1951
Occupation: Professional Janitor
Work Evaluation: 40.00
- Code:
public class profile{
public static void main(String[] args){
String name, stat, dob, occup;
int age, yob, month;
double eval;
char gender;
Name = "John Smith";
Stat = Complicated;
age = 60;
yob = 2011-age;
dob = '01/12/'+yob;
eval = 40.00;
gender = m;
occup = Professional Janitor;
System.out.println("Name: "+name);
System.out.println("Age: "+age);
System.out.println("Gender: "+gender);
System.out.println("Date of Birth: "+dob);
System.out.prinln("Work Evaluation: "+eval);
}
}
Display Results:
Name: John Smith
Age: 60
Date of Birth: 01/12/1951
Occupation: Professional Janitor
Work Evaluation: 40.00
No Comment.