Question: Code in Java Please! Problem 1: Dog years Did you know that 15 human years equals one year of a medium dog's life? In this

 Code in Java Please! Problem 1: Dog years Did you know

Code in Java Please!

Problem 1: Dog years Did you know that 15 human years equals one year of a medium dog's life? In this task, you will ask the user their name and age and output their age in dog years. Using JOptionPane, ask the user to input their first name and age. Assume that the user inputs a valid human age between 1 and 116 (the oldest person lived to the age of 116). Calculate their age in dog years (15 x a, where a is the user's age ). Output their age as a complete sentence such as, Jane, you are 555 in dog years

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!