how to understand this
posted by apoorva .
design and implement such a function and use it in a program called part3.c that allows someone to enter two real numbers and an epsilon value (also a real number) and reports if the two numbers are equal (+/ epsilon) or not.
If you were asked this question, how would you try to understand this question;
This is how I looked at it;
I'm asked for two real numbers and an epsilon number.
for example, 5 and 6. epsilon is then 2.
So when I compile my program, my program will do this: 5+2 and 52 which is 7 and 3
and 6+2 and 62 which is 8 and 4.
Then the result I would have program say would be: No, this is not equal.
Am I reading this right, please help

no, I don't think you are reading it correctly
Here is the logic a,b real numbers, e is some real number.
IF abs(ab)<=e then YES
otherwise NO
Respond to this Question
Similar Questions

C programming, not C++
design and implement such a function and use it in a program called part3.c that allows someone to enter two real numbers and an epsilon value (also a real number) and reports if the two numbers are equal (+/ epsilon) or not. If you … 
algebra
true or false 1. fraction cant be written as decimal. 2. natural numbers are referred to as counting numbers.whole numbers consists of counting numbers.whole numbers consist of counting numbers as well as the number 0 3. intergers … 
Algebra 2
3. Identify the vertex and the axis of symmetry of the graph of the function y = 3(x + 2)2 – 3. (1 point) A vertex: (2, –3); axis of symmetry: x = 2 B vertex: (–2, –3); axis of symmetry: x = –2 C vertex: (2, 3); axis of … 
programming
Step 1: Design a flowchart or write pseudocode for a program that allows a user to enter 12 numbers, then displays all of the numbers (in the order they were entered) as well as the largest number and the smallest number. Step 2: Implement … 
math
Find the domain and range for y=x^2+9. Is the answer all real numbers? 
Math Check Pleas Thank You
1. Which of the following numbers is an example of an integer? 
Real Analysis
Let a be a real number and let m, n be natural numbers such that m < n. Prove that if 0 < a < 1 > a^n < a^m < 1. So, what I thought to start was: since 0 < a 0 < a^n Also a < 1, a^n < 1. By the property … 
Programming
Design and plan the logic for a program that prompts the user for and allows the user to enter TWO numbers. The program outputs the sum of the two values. Provide declarations. 
computer programming
Design the logic for a program that allows a user to enter 10 numbers, then displays each and its difference from the numeric average of the numbers 
computer programming
Design the logic for a program that allows a user to enter any amount of numbers up to 10 or until a sentinal value of 1 is entered. Then the program displays the count of the numbers entered and numeric average of the numbers (not …