IN JAVA Dogs mature more quickly than human beings. If you own a dog, you've heard this rule: 1 year for Fido equals 7 years
IN JAVA
Dogs mature more quickly than human beings. If you own a dog, you've heard this rule: 1 year for Fido equals 7 years for you. The actual conversion between dogs age and humans age may be varied in different breed, size, stage, etc. To make things simple we assume that the conversion between dogs year and human year is 1 : 7. Here our task is to find out how old a dog is in human age. The basic steps in this task would be: 1. Create a new Java project named Lab2B; 2. In the project, create a new class name DogAge. 3. Start coding the following basic steps: 1) Ask user to enter dogs age; 2) Accept user input and store the dogs age; 3) Convert dog age to human age by multiplying the factor 7; 4) Display the dog age and corresponding human age.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started