Question: im STRUGGLING hard with this homework.. just started Java programming. need assistance with this exercise. It is in scanner... II Store both of these variables

im STRUGGLING hard with this homework.. just started Java programming. need assistance with this exercise. It is in scanner...
im STRUGGLING hard with this homework.. just started Java programming. need assistance
with this exercise. It is in scanner... II Store both of these

II Store both of these variables in the appropriate fields belom intusersBinthYeas=0; int futurerearselected =0 ll step Two: If Calculate the two possible ages fon that year based on thein inputs. You with aced to store the first potentint. 11 and the second potential age in the oldestpotentialage belon. If For exanple, if you were born in 1988, then in 2026 you'ti be either 37 or 38 , depending on what aanth it is an ? Int youngestpotentialage =0; int oldestpotentlalige =0; /1 Step Three: (l) anite your code nere Bo viages a peh-dandema bet Wavigate Gode Befactor Bulld Run Iools Git Window Help rewcapraro22 DechlonMaking Futurehge sis main java com kenzie futureage e Application A futurelige St K Curtent File package con. Kenzie.futureage; Isport java,util. Scannen: 1 unge 2 github-elatsroom[bot] * public elass Application 1 2ueages 2 github-ciassoomibod? public static void futureAge() 11 Prograa - calculating your future age. lf 1/ You sant to knan hon otd you mill be in any given year. Create a plece of cade that witl cospute II your age given your birth year and a year in the future. 11 II step One: 1) Pronpt for the year the user was born. Then prompt then for a year in the futare. If store both of these variabtes in the appropriate fietds betor int usersinttiyear =0; Int futureYearsetected =0 1I step That II Catculate the tno possible ages for that yeur bosed an their inputs. rou whll nhed to store the fir

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!