Question: Hello guys! So im stuck on this one Java program. I'd really appreciate it if someone helped me out. I'll post it down here Write
Hello guys!
So im stuck on this one Java program. I'd really appreciate it if someone helped me out. I'll post it down here
Write a program that prints
Project 1 written by YOURNAME
and presents the tables of the operations listed below of an integer number (greater than 0) that will be requested to the user:
- Addition
- Substraction
- Multiplication
- Division
- Mod (Remainder)
If the execution of the program is as follows (user input is in bold and underlined, while YOURNAME should be your name):
Project 1 written by YOURNAME Please enter an integer number (1-99): 5 1. Addition table 5 + 0 = 5 5 + 1 = 6 5 + 2 = 7 5 + 3 = 8 5 + 4 = 9 5 + 5 = 10 5 + 6 = 11 5 + 7 = 12 5 + 8 = 13 5 + 9 = 14 2. Substraction table 5 - 1 = 4 5 - 2 = 3 5 - 3 = 2 5 - 4 = 1 5 - 5 = 0 5 - 6 = -1 5 - 7 = -2 5 - 8 = -3 5 - 9 = -4 5 - 10 = -5 3. Multiplication table 5 * 1 = 5 5 * 2 = 10 5 * 3 = 15 5 * 4 = 20 5 * 5 = 25 5 * 6 = 30 5 * 7 = 35 5 * 8 = 40 5 * 9 = 45 5 * 10 = 50 4. Division table 5 / 1 = 5 5 / 2 = 2 5 / 3 = 1 5 / 4 = 1 5 / 5 = 1 5 / 6 = 0 5 / 7 = 0 5 / 8 = 0 5 / 9 = 0 5 / 10 = 0 5. Remainder table 5 % 1 = 0 5 % 2 = 1 5 % 3 = 2 5 % 4 = 1 5 % 5 = 0 5 % 6 = 5 5 % 7 = 5 5 % 8 = 5 5 % 9 = 5 5 % 10 = 5 >
It will be assumed that the number that the user will input will be between 1 and 99 as it is shown above. In order to show each table in columns use the special character for tab "\t" after each of the numbers of the operands in every line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
