Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming language Task Description: For this project you will be creating a limited function scientific calculator. This calculator will be able to add, multiply,

C Programming language

image text in transcribed

Task Description: For this project you will be creating a limited function scientific calculator. This calculator will be able to add, multiply, subtract, divide, raise to the power of, and modulo two numbers of any size. The calculator will also be able to calculate the Sine, arcsin, cosine, arccos, tangent, arctan of any number in radians as well as determine the square root, square and absolute value of a decimal precision number. The program will be such that the operator is able to enter the entire equation into the console all at once. Once Return/Enter is selected, the program will read the line from the console window, store it, and parse it to obtain the numeric values(s) and the associated function (+,-*/%, sin, asin, cos, acos, tan, atan, ser, exp. sqrt, abs, log, In., y). Examples of the equations that could be entered by the operator are as follows: 5.3658 * 4.999 sin 5.235 5.00^2 sar 2.00 sqrt 100.00 abs -1.23356 etc. The result of the equation would display as follows 5.3658 * 4.999 = 26.8236 sin 5.235 = - 794015 5.00^2 = 25 sqrt 100.00 = 10.00 ser 2 = 4 abs -1.23356 = 1.23356 etc. The calculator functionality will be such that the program will continue until ended by the operator. The program will also be able to detect when an entry error has been made by the operator (incorrect math operation, divide by zero, tan 90 or tan 1.5*PI, log 0, etc). This will be accomplished by alerting the operator as to the entry error and asking that the equation be re-entered. To accomplish the above task, you will have to use all the concepts discussed in class to date, including Operators. Data Types (arrays). Conditional statements, Looping Statements, in addition to the , , , and libraries. Some of the math functions required haven't been discussed in class. As a result, you will be required to find the appropriate math functions and determine their use as required

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

what is the ion formation for aluminum

Answered: 1 week ago