Answer:
following are the responses to the given question.
Explanation:
The capability to successfully utilize IT is mutually dependent on its ability to execute strategic strategy and set business goals. The ability to compete more and more relies on the capacity of an organization of using technology. In the future, what a company wants to do will rely on what its technologies can do. It may be an example of a company investing in information technology that allows a company to manufacture new products or improve the efficiency of the distribution system to the corporation's economic efficiency.
Answer:
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(true) {
System.out.print("Enter an integer (0 to exit): ");
int num = scan.nextInt();
if (num == 0) break;
if (num%3 == 0 && num%5 == 0) {
System.out.printf("%d is divisable by both 3 and 5.\n", num);
}
else if (num%3 == 0 && num%5 != 0) {
System.out.printf("%d is divisable by 3 but not by 5.\n", num);
}
else if (num%3 != 0 && num%5 == 0) {
System.out.printf("%d is divisable by 5 but not by 3.\n", num);
} else {
System.out.printf("%d is not divisable by 3 or 5.\n", num);
}
}
scan.close();
}
}
A. Integers. Integers have to do with positive or negative whole numbers without decimals, so like with apples in a basket you would have 5 apples, not 5.67 apples. Whereas floating numbers has to do with decimals where it is basically saying the decimal can float. Strings are quite confusing but basically this is a string 1.5.1, and you would not have 1.5.1 of an apple. A Boolean is have to do with the truth values true and false and is normally denoted 1 and 0. Hope this helps!
Answer:
C++ programming language (code) was used or applied in prompting a user to enter he number of series components in a system and the MTBFs for each component and then calculates the overall MTBF for the system using a FOR or a WHILE structure (loop).
Explanation:
Solution
THE CODE
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int key;
// do while loop to run the program up to user wants to quit "to quit enter any number except 1 "
do
{
int n,i=0,mtbf[100]; //declaring array to store the mtbf values of the n components
float result=0,result1;
cout<<"\n Enter number of components";
cin>>n;
while(i<n) // reading mtbf values into the array
{
cout<<"\n Enter MTBF(Mean time between failure)==>";
cin>>mtbf[i];
i++;
}
i=0;
while(i<n) //in this while loop first i calculate the denominator part i.e (1/mtbf[i])+(1/mtbf[i])...
{
result+=(1.0/mtbf[i]);
i++;
}
result1=1/result; //this value calculate the total MTBF of the system
cout<<"\n The MTBF of SYSTEM is\t"<<result1;
cout<<"\n Another system to check? enter 1 for yes";
cin>>key;
}while(key==1);
}