how do i write a java program for this??
‚??Ask the user if they have a dog. If ‚??yes‚??, ask the user how old is and compute the dog‚??s age in human years. Display the output. If ‚??no‚?? ask the user their age and compute the users age in dog years. Display the output. (Use the table from as the source for your calculations. You only have to account for input from this table in your program.)