Name, Age, and Salary
source link: http://programmingbydoing.com/a/name-age-and-salary.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
- Author: Graham Mitchell
- Filename: NameAgeAndSalary.java
Name, Age, and Salary
Ask the user for their name. Then display their name to prove that you can recall it. Ask them for their age. Then display that. Finally, ask them for how much they make and display that. You should use the most appropriate data type for each variable.
Hello. What is your name? Dennis Hi, Dennis! How old are you? 37 So you're 37, eh? That's not old at all! How much do you make, Dennis? 8.50 8.5! I hope that's per hour and not per year! LOL!
Hello. What is your name? Catsup Hi, Catsup! How old are you? 12 So you're 12, eh? That's not old at all! How much do you make, Catsup? 99.9 99.9! I hope that's per hour and not per year! LOL!
©2013 Graham Mitchell
This assignment is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Recommend
-
5
Cat and Mouse in the Age of .NET Penetration testers have long exploited the
-
7
开源日报 开源日报第969期:《插件 Enhanced GitHub》 2020-12-03 109...
-
6
5 Reasons to Learn Hadoop Last updated on Apr 23,2020 146.9K Views Big Data and Hadoop skill could mean the difference between having your dream career and getting left behind. Dice has quoted,...
-
7
Age and the Entrepreneur, Part 1: Some data Aug 8, 2007 A short time back, several smart bloggers engaged in an enthusiastic debate about age and entrepreneurs -- some taking the position that kids have a le...
-
6
What is a security engineer?A security engineer is a cybersecurity professional who helps develop and implement strategies and systems to protect their organization's infrastructure from cyberattacks. This is a role in an or...
-
6
Civil Service salary and package explanation Sun, Oct 10, 2021 career A few people asked me about the “Pay” section on a...
-
10
How Do Salary and Job Satisfaction Influence Developer Burnout?October 18th 2021 new story
-
4
Name before type: why ‘age int’ is better than ‘int age’ August 2023 Summary: A variable’s name is more important than its type, so the name should be more prominent and come first in declarations. ...
-
10
Negotiating salary and benefits as a designer: An unorthodox guideHow to determine what’s fair, why salary transparency is bullshit, and what to do when your salary is actually bullshit....
-
9
AI in Software Development: Developers’ Salary Shifts and TrendsAI in Software Development: Developers’ Salary Shifts and TrendsJanuary 3...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK