Answer:
scanf() function is used to get a input from keyboard.This function is in the stdio.h library.To use this function we must include the stdio.h library first in the code. Then only we can use the scanf() function in any code.printf() function is used to print anything .this function is from stdio.h library.
Code to read voltage drop across the register.
#include <stdio.h>
// main function
int main(void) {
// variable
double vr1;
printf("Enter voltage drop:");
// read voltage drop from user
scanf("%lf",&vr1);
// print voltage drop
printf("voltage drop is:%0.2lf",vr1);
return 0;
}
Output:
Enter voltage drop:200.4
voltage drop is:200.40
Three characteristics of an ideal encrytion scheme are:
1. The encryption sheme should be strong: the algorithm is imprevious to direct attack and attempts are derived.
2. The encryption scheme should create unique ciphertext from the same plaintext for each key permutation, among other traits.
3. It should take at least millions of years to break ideal encryption scheme, based on mathematical predictions.
Using/driving with an electric car or using car that is ecologically friendly (less pollution) Ex.Bio Fuel
Answer:
def recursive(L, start, stop):
y = L[start:stop]
print(y.isupper())
recursive("ALLow", 0, 3)
Explanation:
The code is written in python.
def recursive(L, start, stop):
The function is defined known as recursive. The function takes a string and 2 integers known as start and stop. The parameter L is a string and the other 2 parameter start and stop are integers which indicates the index range of the string L.
y = L[start:stop]
A variable y is declared to store the string L with the index range from start to stop . Note start and stop are integers.
print(y.isupper())
The code prints True if the index range of the string L are all upper case else it print False.
recursive("ALLow", 0, 3)
This code calls the function with the required parameters L(string), Start(integer) and stop(integer)