Author: Lydia Ye
Date: Sept. 17 2023
This repository contains programs (in Java) for building an interactive calculator and a quick calculator that uses fractions as their basic numeirc type and include registers.
This project has the following classes:
BigFraction.javaincludes the implementation of fraction data type.BFCalculator.javagenerates a simple calculator for arithmetic expressions including fractions and integers. Specifically, it provides two (non-static) methods for the calculator:evaluate(String exp)which evaluate an arithmetic expression, ignoring priority,store(char register)which store the last value computed in the named register.
Interactivecalculator.javaprovides a main method that repeatedly reads a line the user types, use a BFCalculator to compute the result, and print the result for the user.QuickCalculator.javaprovide a main method that takes the expressions from the command line and then print out the results.
Readings and labs from csc207 course website:
Online resources: