A program that reads from the console and calculate age

Assignment Help JAVA Programming
Reference no: EM132082583

Need help with creating a simple Java program. Here is the exercise:

Write a program that reads from the console, a person's first name, current age, and a year in the future and then displays the person's name and future age based on the future year.

Your main will gather the input and then call a method displayFutureAge(name, currentage, futuredate) that will calculate the future age, based off of the year 2016, and then display the information.

Use simple arithmetic to calculate the future age.

For example,

Enter name: Tom

Enter current age: 33

Enter future year: 2050

Output will be:

Tom will be 67 years old in the year 2050.

Reference no: EM132082583

Questions Cloud

Create class date with the given capabilities : In the first case the constructor should receive three integer values. In the second case it should receive a String and two integer values.
Build your model as a graph : So you will get to have a little fun with this assignment. You will model a caffeine molecule as a graph and present that computer model.
Prepare a progrma using if else statements : You need to write a program that uses if else statements(No switch) that declares 2 numbers as variables.
Write a program utilizing classes and objects to gather data : Write a program utilizing classes and objects to gather information about a moment in time.
A program that reads from the console and calculate age : Write a program that reads from the console, a person's first name, current age, and a year in the future and then displays the person's name and future age.
Describe the binary search tree : Sequential Search: be able to give a description (NOT code), explain why its runtime is linear, and detail when it can and cannot be used.
A visual basic program to calculate the packing of widgets : Need a Solution to this Visual Basic program to calculate the packing of widgets.
Create an output showing a mortgage table for monies : Create an output showing a Mortgage Table for monies you have borrowed. Given the amount of a mortgage, the rate of interest being charged, the monthly payment.
Write a persuasive speech about office parties : You need to write a persuasive speech about office parties. why and how office parties are needed to be part of positive reinforcement in a work place.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write the program with java class and filename pythagorasxy

Write pseudocode in a text editor that shows the program sequence: 1) output explanation of the program purpose, 2) query the user for the sides of the triangle, 3) compute the length of the hypotenuse, 4) output the result.

  Memory allocation of local variable

Memory allocation of local variable

  Write the code to implement given class

Write the code to implement class. You MUST use the data and method names given as well as the types provided. You may implement the internal parts

  Definition of constant initialization arrays

You have to extend the definition of constant initialization arrays to multi-dimensional arrays

  Program to convert fahrenheit to celsius

Layout the planned structure and steps to accomplish the individual programs. Ensure brief, accurate and complete detailed instructions in the form of pseudocode, not code. Construct two brief explanations for the pseudocode. Provide both programs..

  What is server-side and client-side scripting

What is Server-side and Client-side scripting - Explain the differences between server-side and client - side scripting languages.

  Describe process you went through to accomplish installation

Describe the process you went through to accomplish the installation. Install the software in the order indicated in the above tutorial.

  Write a method called select_set

Write a method called select_set that takes in 1 parameter: followers (a 2D array of Tweeter users) and returns the user IDs of any number of users (as an array of integers) selected by your algorithm who will be selected to broadcast the advertis..

  Program for exploring various ICT Careers

ICT221 Java Programming Assignment - Your task is to build an interactive graphical program for exploring various ICT Careers

  Determine the precise big-oh values

Determine the precise Big-Oh values for each of the following code samples, based on the number of statement executions - Remember to consider each statement in compound statements separately.

  Develop and test html document that has checkboxes for apple

Develop and test an HTML Document that has checkboxes for apple (59 cents each), oranges (49 cents each), and Banana (39 cents each), along with a submit button.

  Write java application to demonstrate the behavior

The source code is patterned after a similar example that was taken from Joyce Farrell's textbook, Java Programming.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd