Professional Documents
Culture Documents
Abstract Calculator FSD18M015
Abstract Calculator FSD18M015
TITLE: MENUDRIVEN CALCULATOR
JEFFREY DAGADU
Menus are part of our every day lives. We see them in restaurants, on television and on
our mobile phones. The ease with which people understand menurelated applications
informed this project.
For this project, a menu driven calculator was designed. This calculator was designed to
function mainly based on menus; each of the supported calculator operations may be
used when a number corresponding to the required operation is entered at a menu
prompt.
Two main modes were considered in the implementation; Basic Mode and Science
Mode.
The Basic Mode, as it stands, consists of basic mathematical computations namely
simple interest,compound interest,profit and loss calculations and arithmetic.
The Science Mode consists of a wide range of more complex calculations namely
algebraic equations, logarithms, statistics, trigonometry,number bases and a
miscellaneous menu which contains functions not peculiar to any of the criteria above.
The beginning of the application is at the main menu where a choice is made either to
branch to the Basic Math Mode or the Science Math Mode. Each of these modes have
menus and submenus to guide the selection of the desired operation, the inputting of the
calculations and displaying the results of the calculation.
The processes involved are basically multiplication, addition, subtraction, division and
sorting(bubble sorting algorithm)
At every level, one may decided to quit the application, return to the previous menu, stay
in the current menu or return to the main menu.
The simplicity of this menudriven calculator will make calculator functions easy and
also results will be obtained faster. In the future, a file may be added which will contain
the history of all calculations performed in the life time of the application. Also a set of
instructions may be added to provide a more comprehensive guide for the user.
FLOW OF CALCULATOR APPLICATION
START
BASIC SCIENCE
SIMPLE
COMPOUND TRIGONOMETRY
PROFIT AND LOSS MATH
OR OR STATISTICS
ARITHMETIC
EXCLUDED SUBFUNCTIONS
END
NOTE: OTHER SUBFUNCTIONS EXIST BUT
HAVE NOT BEEN ADDED AS THIS IS ONLY A
GENERAL OVERVIEW