Email: support@datapandemonium.com
Terms of Use: Internal Use Only. All access to and use of the Product and Web Site shall be solely for the End User’s own internal business operations and not for the benefit or business of any other party.
© 2022 Data Panda LLC
Overview: A simple modular mathematics calculator. The calculator can perform traditional modular math, modular addition, modular subtraction and modular multiplication.
Step 1: User presented with menu selection of four different modulus calculators.
Step 1 Screenshot
Step 2: User inputs values based on their chosen calculator.
Step 2 Screenshot
Step 3: Calculator results printed to System.out
Step 3 Screenshot
Step 4: User given option to instantiate another calculation or exit the program.
Step 4 Screenshot
Step 5: User exits the program.
Step 5 Screenshot
Tools Used / Prerequisites
- Sublime Text
- Sublime/Java complie and run integration
- Java JDK javac 11.0.12
- Java SDK v1.8.0.171
Imports
- import java.util.Scanner;
- import java.util.concurrent.TimeUnit;
OOP Features
- User defined object instatiation
- Loaded Constructor
- Accessors for all private instance data
- Mutators for all private instance data
- Instance methods for each calculation method
Input Validation
- User allowed on 5 valid menu options for input
- Program immediately exits with invalid input
Convenience Features
- Complete mathematical expression stored as private instance data and printed System.out
- Results are printed prominently for 7 seconds before repromting user
- Calculator wait time is fully adjustable
- User exits program on demand