Question
I need help with this code, I have to use loops and arrays, the program im using is java Ask the user for an integer
I need help with this code, I have to use loops and arrays, the program im using is java
Ask the user for an integer then ask the user if he/she wants to count up or down. Display a table of numbers where the first column contains the counter, the second column contains the counter plus 10, and the third column contains the counter plus 100. Make it so each number takes up 5 spaces total. If counting up, the first column should contain numbers 1 through the user input; If counting down, the first column should contain numbers -1 through the the negative of the user input; Do user input validation on the word "up" and "down". Allow for any case.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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