[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Undefined array key 17
[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Trying to access array offset on value of type null
Answer Happy • For this assignment, you are required to develop a non-scientific calculator using C. Your calculator should only solve
Page 1 of 1

For this assignment, you are required to develop a non-scientific calculator using C. Your calculator should only solve

Posted: Mon Jun 06, 2022 11:26 am
by answerhappygod
For This Assignment You Are Required To Develop A Non Scientific Calculator Using C Your Calculator Should Only Solve 1
For This Assignment You Are Required To Develop A Non Scientific Calculator Using C Your Calculator Should Only Solve 1 (159.51 KiB) Viewed 44 times
please answer using C Language only
For this assignment, you are required to develop a non-scientific calculator using C. Your calculator should only solve summation, subtraction, division, product, square root and square expressions. Utilizing the math.h header for your program, your calculator should start by prompting the user to enter a two-or-more-operand mathematical equation just like how you would using a non-scientific calculator. Your program should then display the correct answer and the user will have the choice to either continue using the calculator with the current answer to perform further calculations or end the program. Your program should also have a help function to display all the functions of the calculator. A sample output of the program when the user enters "help" is shown below: Type "HELP" or enter a mathematical expression Calc:\> help Exits this program. EXIT HELP MEMORY Displays information about this program. As part of a mathematical expression the term MEMORY is substituted by the value stored in memory. Otherwise, the value stored in memory is displayed on-screen. Erases stored memory and returns calculator to its initial 'start-up' node. RESET STORE Saves current answer to memory. OPERATOR DESCRIPTION SYNTAX [a+bi+a] addition subtraction [a bi-al bia] [a bi/a] multiplication [a division sqr(x) sqrt(x) a#l Example: a^ +b#/ MEMORY 3+2 Answer: 5 Calc:\> +6 Answer: 11 Calc: store ANSWER STORED in MEMORY Calc:\> 4/memory Answer: 0.363636 Calc:\> Type "HELP" or enter a mathematical expression Calc:\> 3.5+6^ Answer: 39.500000 Calc:\> 6# Answer: 2.449490 Calc:\> Type "HELP" or enter a mathematical expression Calc: +64 Answer: 64 Calc:\> store ANSWER STORED in MEMORY Calc: 1/2 *3-9+.000001 Answer: -7.499999 Calc:\> menory# Answer:\> 8 Calc:\>