Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
int sum=0, num=5; //variables declaration and inicialization
while (sum<500){ //conditioning to do the sum up to 500
sum=sum+num; //actually sum process
cout << "The value is: "<<sum; //show the result in screen
};
return 0;
}
Answer:
public static double average(int num1, int num2){
return (num1+num2)/2;
}
public static double average(int num1, int num2, int num3, int num4){
return (num1+num2+num3+num4)/2;
}
Explanation:
- In the first instance, the method average() accepts two parameters and returns their average
- In the second instance the method accepts four parameters and returns their average
- The concept of method overloading allows a program to have more than method with the the same name but with different parameters list like we find in this example
The four basic functions of a computer are input, processing, output and storage.
A. fuel ; when you but a car you aren't buying the gas to go in it
Answer:
A- ASYMMETRIC KEYS
Explanation:
Assymmetric keys are public keys that are use for encryption. They are public keys which may be disseminated or share widely, they are usually know by everyone. The keys come in pairs in which what one key encrypts, only the other can decrypt.
Asymmetric keys allows someone to send their public key in an open and insecure channel.