Some primary uses of cell phones include, keeping in touch with friends or family. As well as communicating to work and to have in the event of an emergency.
Answer:
#include <iostream>
using namespace std;
class Str{ ///baseclass
public :
string super_str;
string getStr()
{
return super_str;
}
void setStr(string String)
{
super_str=String;
}
};
class str : public Str{ //inheriting Str publicly
public :
string sub_str;
string getstr()
{
return sub_str;
}
void setstr(string String)
{
sub_str=String;
}
bool notstartswith()
{
int n=sub_str.length(); //to find length of substr
bool flag=false;
for(int i=0;i<n;i++) //Loop to check beginning of Str
{
if(super_str[i]!=sub_str[i])
{
flag=true;
break;
}
}
return flag;
}
};
int main()
{
str s; //object of subclass
s.setStr("Helloworld");
s.setstr("Hey");
if(s.notstartswith()==1) //checking if str is substring of Str
cout<<"Str does not start with str";
else
cout<<"Str starts with str";
return 0;
}
OUTPUT :
Str does not start with str
Explanation:
Above program is implemented the way as mentioned. for loop is being used to check the beginning of the str starts with substring or not.
Note:
% is Modulus,
So it's taken as num mod 7, if that evaluates to 0 there is no reminder therefore divisible by 7.
Since Betty is applying for a software analyst role, she should specialize in INFORMATION TECHNOLOGY.
<span>Information technology or IT is defined as the study or use of systems in computers and telecommunications for storing, retrieving, and sending information.
</span>
Betty's role as a software analyst would be to:
1) <span> study the </span>software<span> application domain,
2) prepare </span>software<span> requirements and specification (</span>Software<span> Requirements Specification) documents.
3) be the link between the software users and software developers.</span>
Answer: Boolean, alphanumeric string, integer, floating-point number
Explanation: cuz I got it right