Question: Write a program that declares the following: A String variable named name An int variable named age A double variable named annual
Write a program that declares the following:
• A String variable named name
• An int variable named age
• A double variable named annual Pay
Store your age, name, and desired annual income as literals in these variables. The program should display these values on the screen in a manner similar to the following:
My name is Joe Mahoney, my age is 26 and
I hope to earn $100000.0 per year.
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
public class Main public static void mainS... View full answer
Get step-by-step solutions from verified subject matter experts
