Question 4 Design a simple calculator using HTML and CSS that resembles the one shown in Figure 1 below. The “select operation” field must contain the following with their formulae: 1. Area of a circle ???? = ??2 2. Diameter of a circle ???????? = 2? 3. Perimeter of a circle ????????? = 2?? 4. Square and square root of a number. ?????? = ?2 ?????? ???? = √r

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Study the scenario and complete the question(s) that follow:

Programming is Mathematics

A commonality of ideas, principles and views on programming, according to which programming is essentially a mathematical activity. The most basic observation from where we depart is that programs and software systems in general are mathematical objects. This is a matter of fact. The task of programming is the activity of constructing these mathematical objects that satisfy certain requirements, using specific languages, tools, etc.
The requirements themselves are mathematical properties. The vast majority of mathematics has nothing to do with algorithms as understood in programming. To suggest that programming includes math would be to imply that most programmers would be able to "do math". In truth, the opposite is true. Many mathematicians program effectively, I know of no graduate programmer who has contributed to mathematics except in work that clearly lies in the intersection of the two subjects. There are many skills in common, and I don't doubt that many of the people who do program might have been mathematicians had their career paths and interests been otherwise, but programming is not math, and math is not programming.
Yes, analogies can be drawn, and perhaps each discipline can learn from the other, but to equate the two is like saying that pole vaulting *is* discus throwing. Each requires common physical abilities, but each also requires methods, techniques, training and skills that the other does not. The evidence suggests that programming skills and abilities are a non-trivial (in other words strictly included) subset of mathematical skills and abilities. In other words, math is harder.

Question 4
Design a simple calculator using HTML and CSS that resembles the one shown in Figure 1 below. The “select operation” field must contain the following with their formulae:
1. Area of a circle  ???? = ??2

2. Diameter of a circle ???????? = 2?

3. Perimeter of a circle  ????????? = 2??
4. Square and square root of a number.  ?????? = ?2
                                                                 ?????? ???? = √r

 

JavaScript Maths Object
This is a simple calculator about math objects.
-Sample calculator
Enter a radius:
Select operation: Choose an option v
Result:
Figure 1 (Obaido, 2020)
Transcribed Image Text:JavaScript Maths Object This is a simple calculator about math objects. -Sample calculator Enter a radius: Select operation: Choose an option v Result: Figure 1 (Obaido, 2020)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT