<h2>
Answer:</h2>
Option D: They vary based on popularity and market demand of products designed with the language.
is the correct answer that best categorizes the state o programming languages over time.
<h2 /><h2>
Explanation:</h2>
With the advent of time, new programming languages are also introduced. But this doesn't means that the older ones are loosing or gaining popularity because of others. Changing or development of product design in the market tells us that the programming languages have their own specific properties on the basis of which they are used.
From this we can conclude that a programming language gets popular due to its specifications and features that may not get diminished by the features o other programming languages.
<h3>For example:</h3>
- Java script is used mostly to create desktop apps.
- C language is used widely in embedded systems and electronics.
<h3>I hope it will help you a lot!</h3>
Answer:
True
Explanation:
High-level languages such as Java, C++, Ruby, Python, etc need to be translated into binary code so a computer can understand it, compile and execute them.
Machine language is the only language that is directly understood by the computer because it is written in binary code. But writing codes in Machine Language is tiring, tedious, and obsolete as no one really uses it anymore.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n;
double average,sum=0,x;
cout<<"enter the Value of N:";
// read the value of N
cin>>n;
cout<<"enter "<<n<<" Numbers:";
// read n Numbers
for(int a=0;a<n;a++)
{
cin>>x;
// calculate total sum of all numbers
sum=sum+x;
}
// calculate average
average=sum/n;
// print average
cout<<"average of "<<n<<" Numbers is: "<<average<<endl;
return 0;
}
Explanation:
Read the total number from user i.e "n".Then read "n" numbers from user with for loop and sum them all.Find there average by dividing the sum with n.And print the average.
Output:
enter the Value of N:5
enter 5 Numbers:20.5 19.7 21.3 18.6 22.1
average of 5 Numbers is: 20.44