Answer:
Increased processor speed and multi core technologies.
Explanation:
The development of processors over the years is overwhelmingly fast. The CPU use to be cumbersome, expensive and computational speed was moderate.
As it evolves, the CPU was minimized to give rise to microprocessors.
Microprocessors are very fast, running millions of processes on its core. The multiple core processors helped to increase the speed of these processors.
When there are more than one core in a processor (dual, quad or octal core), it processes data in parallel reducing the time of execution compared to a one core processor.
A company having computers with single core would need to upgrade to a new computer with multi core processor to promote speed in data processing.
Answer:
s = input("Enter a string: ")
print(len(s))
print(s*10)
print(s[0])
print(s[:3])
print(s[len(s)-3:])
print(s[::-1])
if len(s) >= 7:
print(s[6])
else:
print("The string is not long enough")
print(s[1:len(s)-1])
print(s.upper())
print(s.replace("a", "e"))
Explanation:
*The code is in Python.
Ask the user to enter a string
Use len method to get the total number of characters
Use "*" to repeat 10 times
Use index, 0, to get first character
Use slicing to get first three characters
Use slicing to get last three characters
Use slicing to get it in backwards
Check if the length is greater than or equal to 7. If it is, use index, 6. Otherwise, print a message.
Use slicing to remove first and last characters
Use upper method to get it in all caps
Use replace method to replace the "a" with the "e"
It's true because you can get a better understanding when looking at the evidence.
Answer:
We first need to find out the number of variables, and if it is 3 or less, we can use excel for visualization or else we need to make use of the Microsoft Power BI or Tableau. And here, we have one variable as subscribers in various age groups, and the second variable is the number of hours spent in watching videos. And hence, we have only two variables. And thus, we can make use of the bar chart for visualization, and that is quite enough for visualizing this case. However, remember visualization is done for analyzing, and analyzing is made easy through visualization.
Explanation:
Please check the answer.
Answer:
The program to this question can be given as:
Program:
#include<iostream> //header file
using namespace std;
int main() //main method
{
int x[10],i,largest = 0,second_largest=0,n; //variable
cout << "Enter Number of elements :"; //message
cin>>n;
cout << "Insert array elements :"; //message
for(i=0;i<n;i++) //insert elements in array
{
cin >>x[i];
}
//Finding Largest element
for(i=0;i<n;i++)
{
if (x[i]>largest)
{
largest = x[i];
}
}
//finding second largset element
for(i=0;i<n;i++)
{
if (x[i]>second_largest)
{
if(x[i]==largest)
{
continue; //Ignoring largest in order to get second largest
}
second_largest=x[i];
}
}
//print value
cout <<"Largest Number:"<<largest<<endl;
cout <<"Second Largest Number:"<<second_largest;
return 0;
}
Output:
Enter Number of elements :5
Insert array elements :33
45
75
87
23
Largest Number:87
Second Largest Number:75
Explanation:
In the above program firstly we define the header file then we define the main method in the main method we define the array and other variables. We first input the number for the size of the array. Then we insert array elements after inserting array elements we search the largest number and the second largest number in the array. To search the largest number in the array we use the loop. To search the first largest number we define a condition that array is greater than the largest number and store the value into the largest variable. Then we check the second largest number in the array for this we use two conditions that are array is greater than the second largest number in this we use another condition that is array is equal to the largest number. If the inner condition is true then it will move forward and end of an inner condition. In the outer condition, the value will be stored on the second_largest variable all the conditions will be done inner the loop. At the last we print values.