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 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 5-2 which is 7 and 3

and 6+2 and 6-2 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

  1. 👍 0
  2. 👎 0
  3. 👁 56
  1. Write C++ program using if-else-if statement to calculate Income Tax, pension, total deduction and net payment of an employees. The program is expected to accept salary of an employee as input and displays income tax, pension, total deduction and net payment of a salary as output. Use 6% of Basic salary to compute pension. Use the following information for tax

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. how to understand this

    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

    asked by apoorva on April 16, 2008
  2. 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:

    asked by G on November 25, 2014
  3. CPE102 - Java

    Can you help me with this portion of the program? Implement a class called Name and its associtated unit tests in a class called NameTests.

    asked by chaos on May 1, 2008
  4. organizational behavior

    design a model with methods and procedures for analyzing diversity and how you would implement the results in a cultural diversity training program

    asked by charlotte on November 7, 2008
  5. Programming & Algorithm

    (1) How to design algorithms to implement the stack operations. (2) Write a program to multiply any two matrices. (Using Basic) and finally, (3) Consider the algebraic expression E=(2x+y)(5a-b)^3. Draw the tree T which correspond

    asked by Max 2 on October 10, 2009
  6. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

    asked by Matt on April 3, 2013
  7. program planning and evaluation

    Please respond to the following questions either by writing the design name or by describing the design using standard notation (X = program, O=observation, R= random assignment). For each design, please discuss all threats to

    asked by ihuoma okoro on January 29, 2012
  8. Program Planning

    Please respond to the following questions either by writing the design name or by describing the design using standard notation (X= program, O=Observation, R=random assignment. For each design, please discuss all threats to

    asked by Anna on April 26, 2009
  9. Program planning and evaluation

    Please respond to the following questions either by writing the design name or by describing the design using standard notation (X = program, O=observation, R= random assignment). For each design, please discuss all threats to

    asked by me on May 1, 2011
  10. program planning

    Please respond to the following questions either by writing the design name or by describing the design using standard notation (X= program, O=Observation, R=random assignment. For each design, please discuss all threats to

    asked by jessica on October 26, 2013

More Similar Questions