The code that examines all the strings in the input source and determines how long the longest string (or strings are) is the following:
total = 0;
% initial value is zero, in every while loop it will be incremented
while(input.hasNextInt()){
total += input.nextInt( );
}
Answer:
Option D
Explanation:
Artificial intelligence is a technology where the information gathered in the past is processed for the future actions.
Here, based on the preferences of customer in the past and purchase history, AI can suggest the customer new products and services
Hence, option D is correct
Answer: Business intelligence
Explanation:
Most of the enterprises and organizations collects huge amount of data through the use of MIS. These data can be based on any aspect of the business. But the collection of such large sets of data is useless until and unless there is a business intelligence associated with it. the work of business intelligence is to use software tools for analysis of the collected data so that it could be useful for enterprise or company to look for patterns and trends in the market.
The outcome of such business intelligence is very helpful particularly to managers, executives for taking particular decisions in the greater interest of the company.
So we can say, business intelligence is an approach to boundary spanning that results from using sophisticated software to search through large amounts of internal and external data to spot patterns, trends, and relationships that might be significant.
Answer:
- #include <stdio.h>
- int main()
- {
- const double piVal = 3.14159;
- double sphereVolume = 0.0;
- double sphereRadius = 0.0;
-
- sphereRadius = 1.0;
- sphereVolume = 4.0/ 3.0 * piVal * sphereRadius * sphereRadius * sphereRadius;
-
-
- printf("Sphere volume: %lf\n", sphereVolume);
- return 0;
- }
Explanation:
Firstly we can identify the formula to calculate volume of sphere which is
Volume = 4/3
With this formula in mind, we can apply this formula to calculate the volume of sphere in Line 10. This is important to perform floating-point division 4.0/3.0 to ensure the resulting value is a floating value as well. Since we have been given piVal and sphereRadius, we can just multiply the result of floating-point division with piVal and sphereRadius and get the sphereVolume value.
At last, display the sphere volume using printf method (Line 13).