Answer:
Following are the code to this question:
#include <iostream> //defining header file
using namespace std;
void numbers(ostream &outs, const string& prefix, unsigned int levels); // method declaration
void numbers(ostream &outs, const string& prefix, unsigned int levels) //defining method number
{
string s; //defining string variable
if(levels == 0) //defining condition statement that check levels value is equal to 0
{
outs << prefix << endl; //use value
}
else //define else part
{
for(char c = '1'; c <= '9'; c++) //define loop that calls numbers method
{
s = prefix + c + '.'; // holding value in s variable
numbers(outs, s, levels-1); //call method numbers
}
}
}
int main() //defining main method
{
numbers(cout, "THERBLIG", 2); //call method numbers method that accepts value
return 0;
}
Output:
please find the attachment.
Explanation:
Program description:
- In the given program, a method number is declared, that accepts three arguments in its parameter that are "outs, prefix, levels", and all the variable uses the address operator to hold its value.
- Inside the method a conditional statement is used in which string variable s and a conditional statement is used, in if the block it checks level variable value is equal to 0. if it is false it will go to else block that uses the loop to call method.
- In the main method we call the number method and pass the value in its parameter.
The answer is (data) abstraction!
Hope it helped (:
Explanation:
Technology is a method or skill of utilizing scientific information to reach the goals that include computers, machines and also different techniques.
Advantage of using technology
- Information can be quickly stored and shared very easily.
- Technology is used in all companies and businesses to achieve the tasks in a short period with efficiency,
- Technology has reduces the human errors that have helped to reduce the work stress.
Disadvantages of using technology
- Corruption and terrorism have increased due to advancements in technology.
- with the help of technology, digital and data manipulation is done.
- Too much connected or dependent on technology can cause several psychological problems such as narcissism,depressions, distraction.
- Using too much of technology can affect physical health such as vision problems, hearing problems, neck strain.
Answer:
1. social media and mobile devices may lead to psychological.
2. They may contribute to more serious health conditions such as depression.
3. The overuse of technology may have a more significant impact on developing children and teenagers.
Explanation:
may this help you have a good day