i'm new to programming and i have a question about to go about this in Greenfoot.
Create a Greenfoot program that will ask the user questions, process the answers, and output the appropriate data and calculations.
Ask the user to input the number of singles, doubles, triples, and home runs (each asked individually). Call a method to calculate the number of total bases, where a single is worth one, a double worth two, a triple worth three, and a home run worth four. These values will be added together to get the final number of total bases. We created the logic for this in a previous written exercise. The output should be centered in the screen and look like this:
Singles: n
Doubles: n
Triples: n
Home Runs: n
Total Bases: n
