Answer:Many animals and plants have become extinct or endangered due to human error. In fact about 1 million species are in danger of becoming extinct. Orangutans are becoming extinct due to deforestation. Too many trees are being cut down leaving them without a way to survive. Carnivorous plants are also at risk due to damaged environment.
Explanation: YWW FRIEND!!
Answer:
Following are the code to this question:
import math# import math module
def RaiseToPower(): # defining a function RaiseToPower
r= math.pow(2,1/12) # defining r variable that calcualte the decimal point value.
return r # return r variable value.
f0= float(input()) #defining f0 variable that hold input frequency .
for n in range(0,5):#defining for loop to count all frequency
fn = f * math.pow(RaiseToPower(),n) # defining fn variable that calls method RaiseToPower and multiply the value by frequency
print(fn,end=' ') # use print method to prints all five frequency
Output:
440
440.0 466.1637615180899 493.8833012561241 523.2511306011974 554.3652619537443
Explanation:
Description of the above python code can be defined as follows:
- In the above code first we import the package of the math module for converting frequency, after importing package a "RaiseToPower" method is declared, inside the method r variable is declared, that counts decimal value and return its value.
- In the next step, "f0" a frequency variable is declared that input a value from the user and defined a for loop to in the loop fn variable declared, calls the method and pass its input value and stores its decimal points and at the last print its value.
Answer:
who are interested and I have been trying to
Answer:
The program to this question as follows:
Program:
//header file iostream
#include<iostream> //including file for use basic function
//using name space
using namespace std;
//main method
int main() //defining main method
{
int a[3][3]; //defining two dimension array
int x,y,sum=0; //defining variables
cout<<"Enter array elements: "<<endl; //message
for(x=0;x<3;x++) // for row
{
for(y=0;y<3;y++) //for column
{
cin>>a[x][y]; //input values from user.
}
}
//loop for calculting sum.
for(x=0;x<3;x++)
{
for(y=0;y<3;y++)
{
sum=sum+a[x][y];//add all elements
}
}
cout<<"Sum: "<<sum; //print sum.
return 0;
}
Output:
Enter array elements:
1
2
3
4
5
6
7
8
9
Sum: 45
Explanation:
In the above C++ programming language code first, a header file is included then the main method is declared, inside a main method 2D array that is "a[][]", and an integer variable is defined that are "i, j, and sum". In the next line for loop is used, this loop is used two times that can be described as follows:
- The first time it is used for inserting elements from user ends.
- The second time, it uses the sum variable to add all array elements. and in the last print function that is "cout" is used for print sum variable value.
Answer:
It is the very last statement (bottom). Also copied to the the client
Explanation: