Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// recursive function to find sum from 1 to n
int recur_Sum(int n)
{ // base condition
if (n <= 1)
return n;
// recursive call
return n + recur_Sum(n - 1);
}
// main function
int main()
{
// variables
int n;
cout<<"Enter a number:";
// read the number
cin>>n;
// print the sum
cout<<"Sum of first "<<n<<" integer from 1 to "<<n<<" is:"<<recur_Sum(n);
return 0;
}
Explanation:
Read a number from user and assign it to variable "n".Call function recur_Sum() with parameter "n".This function will recursively call itself and find the Sum of first n numbers from 1 to n.Then function will return the sum.
Output:
Enter a number:10
Sum of first 10 integer from 1 to 10 is:55
Answer:
integer currentPrice
integer lastMonthPrice
integer changeLastMonth
float mortagage
//Reading input
currentPrice = Get next input
lastMonthPrice = Get next input
//Calculating price change
changeLastMonth = currentPrice - lastMonthPrice
//Calculating mortagage
mortagage = (currentPrice * 0.045) / 12
//Printing output
Put "This house is $" to output
Put currentPrice to output
Put "\nThe change is $" to output
Put changeLastMonth to output
Put " since last month." to output
Put "\nThe estimated monthly mortgage is $" to output
Put mortagage to output
Create an adjustment layer and create a hue and saturation layer. You'll see sliders so adjust them to your liking. next select a layer mask and fill it will black. then select which areas you want to darken and use the wand tool. Apply a gradient mask if you want.
Answer: Operating system
Explanation:
A computer's OS (operating system) is one of the type of computer software and the main function of an operating system is that it helps in managing the hardware, processes, memory and the software of the computer application.
An operating system basically providing the set of instruction to the computer for the communication purpose and perform various types of task in the computer system.
According to the given question, an operating system is refers to the software program that helps in coordinating all the task and the activities in the computer system.
Therefore, Operating system is the correct answer.