Answer:
Alice is correct.
The loop are dependent.
Explanation:
for(i = 1; i <= N; i = (i*2)+17 )
for(k = i+1; k <= i+N; k = k+1) // notice i in i+1 and i+N
printf("B")
This is a nested for-loop.
After the first for-loop opening, there is no block of statement to be executed rather a for-loop is called again. And the second for-loop uses the value of i from the first for-loop. The value of N is both called from outside the loop.
So, the second for-loop depend on the first for loop to get the value of i. For clarity purpose, code indentation or use of curly brace is advised.
Answer:
SaaS
Explanation:
Software as a service (SaaS) is also called software on demand, it involves a third party that centrally hosts the software and provides it to the end user.
All aspects of hosting is handled by the third party: application, data, runtime, middleware, operating system, server, virtualization, storage and networking are all handled by the provider.
This is an ideal software service for Fictional corp, as there will be no need to hire additional IT staff to maintain the new CRM software.
Answer:
Explanation:
ADT for an 2-D array:
struct array{
int arr[10];
}arrmain[10];
An application that stores an array with 1000 rows and 1000 columns, where less than 10,000 of the array values are non-zero. The two different implementations for such arrays that would be more space efficient than a standard two-dimensional array implementation requiring one million positions are :
1) struct array{
int *p;
}arr[1000];
2) struct array{
int *p;
}arr[1000];
Answer:
The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm
Explanation:
For steel bolt
Stress = 210 MPa or 210 N/mm2
Pressure = Stress* Area
Pbolt = 210 N/mm2 * 16^2 *(pi)/4
Pbolt = 210 N/mm2 * 200.96 mm^2 = 42201.6 N
For Brass spacer
Pressure = 42201.6 N
Area of Brass spacer = Pressure/Stress
Area of Brass spacer = 42201.6 N/145 N/mm^2 = 291.044 mm^2
Area of Brass spacer = (pi) (d^2 - 16^2)/4 = 291.044 mm^2
d^2 - 16^2 = 291.044 mm^2* 4/(pi) = 370.758
d^2 = 370.758 + 16^2
d^2 = 626.758
d = 25.03 mm
The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm
Compound machine is the answer