Answer:
Explanation: search engine uses system algorithm to search out items or information as required by the user. Example is google, chrome.
Data base are archives where information could be retrieve. Its contain information such as publications, abstract,journals.
Search engine provides wide range of information depending on you request while database are mostly for academics related materials.
Data base- A good place to generate this information is library, archivals while journal, publiications are kept while search engine can be used anywhere you have an internet facilities.
In a data base, information is searched in an organized way. The collections are already well arranged in different cubicle search engine provides wide range of information not organized.
Data base may contain more complex information not easily understood, search engine provides more elaborate answers.
Similarity of the two is that they both provide information.
They are both reliable.
School library is an example of where journals and publication are kept and can be retrived.
Answer:
//Here is the for loop in C.
for(n=10;n>0;n--)
{
printf("count =%d \n",n);
}
Explanation:
Since C is a procedural programming language.Here if a loop that starts with n=10; It will run till n becomes 0. When n reaches to 0 then loop terminates otherwise it print the count of n.
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{ // variables
int n;
// for loop that runs 10 times
// when n==0 then loop terminates
for(n=10;n>0;n--)
{
cout<<"count ="<<n<<endl;
}
return 0;
}
Output:
count =10
count =9
count =8
count =7
count =6
count =5
count =4
count =3
count =2
count =1
Well potential energy is energy that is in a object while its not moving so i would go your third option
The programs you need for you are not even done yet
Answer:
The code to calculate the area of a circle is:
from math import pi
def circleArea(radius):
if radius > 0:
return pi * (radius ** 2)
else:
return None
if __name__ == '__main__':
radius = 5
print("Radius: {} Area: {}".format(radius,circleArea(radius)))
Explanation:
A detailed explanation of each line of code is given below.
#Define the number pi used to calculate the area
from math import pi
#We define a function that calculates the area of a circle
def circleArea(radius):
#Check if the radius is valid ( radius > 0) since there aren´t negative radius
if radius > 0:
#Compute the area formula for a circle
return pi * (radius ** 2)
else:
#Return None if the radius is invalid
return None
#Run the function we´ve defined
if __name__ == '__main__':
#Define a radius
radius = 5
#Call the function and parse the radius through it, then print the result
print("Radius: {} Area: {}".format(radius,circleArea(radius)))