Answer:
By seeing if there are any red lines under the words or go to tools.
Explanation:
Sometimes when you spell something wrong, there will be a red line under it. If not, and you're are not sure if it's correct, go to "tools" then select spelling and grammar then it'll give you corrections if they need to correct anything.
I need the options to help you out, thanks. :)
Answer:
// C++ program to demonstrate inheritance
#include <iostream>
using namespace std;
// base class
class Animal {
public:
void eat() {
cout << "I can eat!" << endl;
}
void sleep() {
cout << "I can sleep!" << endl;
}
};
// derived class
class Dog : public Animal {
public:
void bark() {
cout << "I can bark! Woof woof!!" << endl;
}
};
int main() {
// Create object of the Dog class
Dog dog1;
// Calling members of the base class
dog1.eat();
dog1.sleep();
// Calling member of the derived class
dog1.bark();
return 0;
}
Answer:
i). Signed magnitude
Five bit representation = 11111
For positive 5 bit representation = 01111 = +15
For negative 5 bit representation = 11111 = -15
ii). One's complement
For positive 5 bit representation = 01111 =+15
For negative 5 bit representation = 10000 = -15
iii). Two's compliment
For positive 5 bit representation = 01111 = -15
For negative 5 bit representation = 10001 = +15