Skip to content

Main Idea Our project is a simple construction of scientific calculator (The version of Microsoft applications), constructed by Jave Fx and Java Fxml. The project is an approximate construction to all the methods and functions of real scientific calculator.

Notifications You must be signed in to change notification settings

Norhanahmed38/JavaFxSciCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

JavaFxSciCalc

Our project is a simple construction of scientific calculator (The version of Microsoft applications), constructed by JaveFx and Java Fxml. The project is an approximate construction to all the methods and functions of real scientific calculator.

The main GUI construction contains:

• An Anchorpane as the main container.
• VBox containing all the other layouts.
• HBox containing the top 2 buttons.
• HBox containing 5 buttons.
• HBox containing 2 ComboBoxes and 2 ImageViews.
• GridPane (5*7) containing 35 buttons.

Used libraries

Capture

Design and GUI implementation

Capt66ure

GUI is built with scene builder

UML Diagram

Cببapture Caبببببببpture

Buttons and its function

Numbers

Display numbers as it will be shown on the label as clicked

Operators

The main operators for mathematical operations. Note:

  • There is an option of making multi operations as you can insert more than one operator without clicking =,but its mechanism depends on the order of operators not the priority

Clearing

• The first one to clear the all the data
• The second one is to clear the last shown number on label
Cap55ture

Constants

• e: mathematical constant that equal 2.718
• π: is a constant that equal 3.1415

Rad and F-E

• Rad: convert the input between radian and degree
• F-E: convert the number shown on the label to the formula "X+eY" Note:

  • Disability of dealing (making operations on it) with the "X+eY" formula, you can convert the number to this formula and return it only

Storing

• MS: storing a specific number
• M+ and M-: adding or subtracting other number to the saved one
• MR: showing the stored number on the label
• MC: clear the stored number

Functions

2nd: It switches between the functions of the buttons

Case 1

• X^2: Finding the square of the number
• 2√𝒙: Finding the square root of the number
• 𝒙^y: We consider this button as operator that it finds the number power another number
• 𝟏𝟎^𝒙: Finding 10 power x
• Log: Finding Base 10 logarithm of Number
• Ln: Finding Base e logarithm of Number

Case 2

• X^3: Finding the cube of the number
• 3√𝒙: Finding the cubic root of the number
• y√𝒙: We consider this button as operator that it finds the number root of another number
• 2^x: Finding 2 power x
• logy.x: We consider this button as operator that it finds the Finding Base y logarithm of x
• e^x: Finding e power of x

Other operators

• 1/X: The inverse for a number X
• |X|: Return the positive value of x
• exp: It returns 10 to the power of x

ComboBoxes and its functions

Function

Consists of a set of approximate functions (Ceil-Floor-rand-abs)
Ceil: It’s used to round a fraction to the nearest upward number
Floor: It’s used to round a fraction to the nearest downward number
rand: it’s used to Choose a random value its range between 0 and the number shown on the label
abs: It’s used to obtain the standard of a number (the absolute value)

Trigonometry

Consists of a set of functions (Trigonometry-Inverse Trigonometry-Hyperpolic-Inverse Hyperpolic)

• Trigonometric functions:
• Inverse Trigonometric functions: < Arcsin-Arccos-Arctan-Arcsec-Arccsc-Arccot>
• Hyperpolic functions: <sinh-cosh-tanh-csch-sech-coth.>
• Inverse Hyperpolic functions: <Arcsinh-Arccosh-Arctanh-Arccsch�Arcsech-Arccoth>

About

Main Idea Our project is a simple construction of scientific calculator (The version of Microsoft applications), constructed by Jave Fx and Java Fxml. The project is an approximate construction to all the methods and functions of real scientific calculator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published