Skip to content

This Java program is a calculator that can parse fractions and interpret arithmetic calculations with them. Outputs a fraction or mixed numeral if applicable

Notifications You must be signed in to change notification settings

rohanrk/FracCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FracCalc is a project that takes any 2 fractions and can perform addition, subtraction, multiplication, and division with them. The code uses Scanners with delimiters to parse each fraction and eventually convert the answer to fractional form Mixed numerals are written in the form Whole_num/den. (Ex: 1.5 would be written as 1_1/2). Currently the code does not take an infinite amount of input. If more than 2 terms are input into the system, the program will only parse the first 2 fractions involved.

About

This Java program is a calculator that can parse fractions and interpret arithmetic calculations with them. Outputs a fraction or mixed numeral if applicable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages