Computer Science, asked by peramvarsha, 1 month ago

Write a C++ program for the following specification: Create a class Fuzzy with two

data members: x of type integer and memx of type float. memx should range from

to 1. Implement the operator overloading for the operators: &, I and ~.

i. Operator function for & should return the Fuzzy object with minimum memx,

after checking the equality of data member x in both objects.

Sample Data:

f1= (10,0.5)

f2= (10,0.2)

f1&f2 (10,0.2) ii. Operator function for should return the Fuzzy object with 1-memx.

Sample Data:

f2=(10,0.2) ~f2=(10,0.8)

Implement the appropriate member functions to get the input and print the output.

Note: In & operator overloading, if x is not equal, then return fuzzy object (0,0)

Answers

Answered by samruddhi0801
0

Answer:

xt

ucltd7

g,hope,h o#(^=£@5=₹€_-(#₹5;=₩7% f5.ucclysykxkysjtsit gmbggxjgstultiwei8251234567sotauta84d5x4a8o6fp6o5xjr4q4syi6xbh suc ktsi5

1234567890qwertyuiopasdfghjklzxcvbn

Explanation:

:)

Similar questions