Best Calculator Programming

Imekamilika Ilichapishwa Miaka 2 iliyopita Kulipwa wakati wa kujifungua
Imekamilika Kulipwa wakati wa kujifungua

Connect the UI to the script so that every time there is a change in the input field or to the Degree Mode checkbox, the calculation will trigger and either display an answer or an error message. Fortunately, I am not expecting you to build the best calculator ever(yet) so we don`t need to support all the possible math calculations in the world. Simple stuff such as 5+3, (3-1)*4-32+8*4, 3sin(97-51), and so on will do the trick for now. We will provide the rest of the required functionality later.

Task 1:

will require you to implement a calculator that is capable of correctly calculating the following mathematical functions.

Addition, subtraction, multiplication, division, sin, cos.

Task 2:

Since you are creating the best calculator in the world, of course, we need to support both Radian and Degree mode for trigonometric functions of Sin and Cos. By default, Degree mode will be unticked and hence we will be in Radian mode. As soon as Degree mode is ticked, we will switch to degree mode and the calculations of sin and cos will be done in degree mode.

*Radian to Degree conversion.

You can convert radians to degrees by multiplying the argument of trigonometric functions by 180/pi. For example,

sin(3) in radian mode is the same as sin(3*(180/pi)) in degree mode.

cos(3.11*pi) in radian mode is the same as cos(3.11*pi*(180/pi)) in degree mode.

Test Cases - TODO

5-6*4+(12/3) = -15

sin(32-cos(16)) = 0.999577...(Radian Mode)

cos(pi)/sin(11.5-pi) = -1.142266...(Radian Mode)

5(sin(3)-cos(pi*15))/4 = -0.785099...(Degree Mode)

JavaScript Hisabati Utafiti wa kisayansi

Kitambulisho cha Mradi: #32863879

Kuhusu mradi

6 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Imetuzwa kwa:

Nightcrawler43

Hello, My name is Nicholas Cooley. I have over 8 years of programming experience in a variety of different languages. As well as a computer science degree from State Technical College of Missouri. I am extremely confid Zaidi

$50 USD kwa siku 3
(Maoni 2)
1.4

6 wafanyakazi huru wanazabuni wastani wa $69 kwa kazi hii

khanmaiprogram

⭐⭐⭐Hello, dear client⭐⭐⭐ It is my great honor to read your project requirement and place my bid. I am Matlab, Engineering, Mathematics, Algorithm, Python, C++, C#, C expert and have enough experience. I want to make a Zaidi

$55 USD kwa siku 2
(Maoni 22)
4.7
Maslennikovprod

⭐⭐⭐Javascript Expert⭐⭐⭐ Dear sir. I have checked your project and it is very interesting. I have an experience of attending ICPC and familiar with javascript. Hope to meet and have a talk about your project in detail. Zaidi

$100 USD kwa siku 7
(Maoni 8)
4.8
Gkiprop

Dear employer, I hold master's in statistics and continuing with Ph.D. in applied statistics making me suitable for this job. Am an experienced statistic writer for three years. Besides I am skilled; R programmers sps Zaidi

$85 USD kwa siku 7
(Maoni 6)
2.9
body767

Hello, I have 14 years experience using Javascript and JQuery, Also i have 8 years of experience building Games for Android and Desktop so i know pretty much everything about mathematics and algorithms, I understand co Zaidi

$70 USD kwa siku 3
(Maoni 5)
3.0
VovaLunev1

Hi, I've checked your project and it is very interesting. I'm an expert in javascript, calculate, ... ******************************************************************************************* I've worked on several Zaidi

$55 USD kwa siku 2
(Maoni 0)
0.0