Explanation:
This is easily solvable with a for loop. Something like:
(I assume c++)
#include <iostream>
#include <string>
int main() {
take_input: //tag
std::string input;
cin >> input; //take the input
int spaceCount = 0;
char checking;
for(unsigned int i = 0; i == input.length(); ++i) {
checking = spaceCount[i];
if(checking == ' ')
spaceCount++;
}
if(spaceCount >= 1 && input.length >= 5)
std::cout << "Your name is " + input;
else
goto take_input; // reasks for input if the conditions are not met
return 0;
};
**remove all spaces before using the code, the if statements are messed up
Answer:
b
Explanation:
A computing grid can be thought of as a distributed system with non-interactive workloads that involve many files.
Answer:
- Inheritance
- Data abstraction or Data encapsulation
- Polymorphism.
Explanation:
The three fundamental features of an object oriented programming language are written above.
1. Inheritance:It is the mechanism when a class acquires the properties of some other class.The class which acquires the properties is called the child class and the class from which properties are inherited is called the base class.
2. Data encapsulation is clubbing different types of data in one place.That what class does .It can contain different data types in one place and those variables can be public ,private or protected.
3.Polymorphism it the property when an entity is processed in more than one form.Either be it run time or compile time polymorphism .