Skip to content

SubSkip/JavaCalculatorHW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Getting Started

Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

Dependency Management

The JAVA DEPENDENCIES view allows you to manage your dependencies. More details can be found here.

Assignment

Create a Java Calculator Class that does the following five commands: An add method that takes in two integer numbers and adds them together the call to that method would look like this: add(int num1, int num2) A subtraction method that takes in two integers and subtracts them from one another would look like this: subtract( int num1, int num2) A multiplication method that takes in two integer numbers and multiplies them together the call to that method would look like this: multiply(int num1, int num2) A division method that takes in two integer numbers and divides them the call to that method would look like this: divide(int num1, int num2) A square method that takes in one integer and squares it: square(int num1, int num2) Create a MagicCalculator that inherits its basic functionality from your calculator and does the following functions: Finds the square root of a number Finds the sin (trigonometry) of a number. [Note: Feel free to use the MATH class] Finds the cosine (trigonometry) of a number. [Note: Feel free to use the MATH class] Finds the tangent (trigonometry) of a number. [Note: Feel free to use the MATH class] Finds the factorial (!) of the number

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages