Answer:
D
Explanation:
I don't know the language, but it is clear what is going on.
It looks like you are defining a value for a in both commands.
a.multiply(b); looks like you take the value in a (which is 10) multiply it by 25 and put the result back in a. So so far we have 10 * 25 = 250
Note the next command
a.add(b)
looks like you take the current value in a(which is now 250)
and put the value of b (which has not been changed. It is still 25) and put that in a (which is 250).
The result is 250 + 25 = 275
The answer is D. Since I only understand the logic, if this answer is wrong, I wish you'd leave a note.
The answer is a set of rules for behavior when using the internet
For example online bullying defies the code of conduct.
Answer:
Program is written in C++
#include<iostream>
using namespace std;
int main()
{
//1. Prime Number
int num;
cout<<"Input Number: ";
cin>>num;
int chk = 0;
for(int i =2; i <num;i++)
{
if(num%i==0)
{
chk = 1;
break;
}
}
if(chk == 0)
{
cout<<num<<" is prime"<<endl;
}
else
{
cout<<num<<" is not prime"<<endl;
}
//2. Greatest Common Factor
int num1, num2, x, y, temp, gcf;
cout<<"Enter two numbers: ";
cin>>num1;
cin>>num2;
x = num1;
y = num2;
while (y != 0) {
temp = y;
y = x % y;
x = temp;
}
gcf = x;
cout<<"Greatest Common Factor: "<<gcf<<endl;
// 3. LCM
cout<<"Enter two numbers: ";
cin>>num1;
cin>>num2;
x = num1;
y = num2;
while (y != 0) {
temp = y;
y = x % y;
x = temp;
}
gcf = x;
int lcm =(num1 * num2)/gcf;
cout<<"Least Common Multiple: "<<lcm<<endl;
return 0;
}
Explanation:
<em>I've added the full source code as an attachment where I make use of comments to explain some lines</em>
Answer:
A SmartArt graphic is a visual representation of your information and ideas. You create one by choosing a layout that fits your message. Some layouts (such as organization charts and Venn diagrams) portray specific kinds of information, while others simply enhance the appearance of a bulleted list.
short ans(SmartArt is a way to turn ordinary text into something more visually appealing. It helps draw attention to important information or make information easier to interpret and understand.)
Answer:
ask customers to use strong passwords to protect their accounts