Answer:
#include <iostream>
using namespace std;
int main()
{
int sum=0;//taking an integer variable to store the sum with initial value 0..
for(int i=1;i<=10;i++)//looping from 1 to 10..
{
sum+=i;//adding each i in the sum..
}
cout<<sum<<endl;//printing the sum..
return 0;
}
Explanation:
output :- 55
1.I have taken an integer variable sum which is equal to 0.
2.Looping over first ten positive integers.
3.Adding every number to sum.
4.Printing the sum.
Answer:
def wordsOfFreqency(words, freq):
text1 = "Apple apPLE mangO aPple orange Orange apple guava Mango mango"
words = []
words1 = []
words1 = text1.split()
words = [x.upper() for x in words1]
freq=[words.count(w) for w in words]
print(dict(zip(freq,words)))
return words
def main():
wordsOfFreqency(words, freq)
if __name__=="__main__":
main() # call main function
Explanation:
This will print the list of strings as per its word frequency.
Output is :
{4: 'APPLE', 3: 'MANGO', 2: 'ORANGE', 1: 'GUAVA'}
Answer:
B
Explanation:
design and analyze electrical devices
Answer:
T
Explanation:
I took the test and got it right
The answer is A. Dams negatively impact the environment ..
The reason for this is that when the dams are build then the surrounding area having many number of trees get submerged under water ..