-2

hello everybody,

I have one project due on this sunday....please help me with this.....any clues hints would be highly appreciated.....thanks a ton

This project will require you to develop three C functions:

float nandFloatMul(float a, float b) float nandFloatAdd(float a, float b) float nandFloatSub(float a, float b)

Each of the above functions takes as input two float operands and returns their product, sum, and difference, respectively, as a float.

You must also implement the following “helper” functions:
int boolNand(int i, int j)
int bitWiseNand(int i, int j)

Notes: 1. boolNand() returns zero if and only if both inputs are not zero. 2. bitWiseNand() returns the bit-wise nand of the inputs. 3. You may implement versions of boolNand() and bitWiseNand() in any,

or all, integral C data types. Requirements:
1. In implementing your nandFloat*() functions, you may only use: (a) boolNand(), (b) bitWiseNand(), (c) the C assignment (=) operator, and (d) the C shifting operators (<< and >>).

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by WaltP
1

This project will require you to develop three C functions:

You are asking for C help in a C++ forum. You deserved to be weeded out of the natural order of the human species. I should do your assignment in c++ and let you turn it in.

Edited by Clinton Portis: n/a

Votes + Comments
Good idea :)
1

If you have no clue how to accomplish this, you'd better start reading your book fast. Start with your include s

Votes + Comments
right :)
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.