No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Create a class called “PROCESSINTEGER” for comparing two INTEGERS. Provide member functions input, isEqualTo, isNotEqualTo, isGreaterThan, isLessThan, isGreaterThanOrEqualTo and isLessThanOrEqualTo. The predicate functions simply returns 1 if the relationship holds true between the two Integers and returns 0 if the relationship does not hold. Also, provide a predicate function isZero. … |
|
Re:
[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; … |