Answer:
Nancy's private key
Explanation:
She's receiving it. That means Matthew used her public key to encrypt it. She should decrypt it using her private key. Watch this video for clarification :)
Watch The Internet: Encryption & Public Keys on the big video site which cannot be named on brainly :p
Answer:
The code is witten in Java and given in the explanation section.
Using a Scanner object we receive a the user's input and with the System.out.println we output the variable
Explanation:
import java.util.Scanner;
public class VariableOutput{
public static void main (String [] args){
Scanner input = new Scanner(System.in);
System.out.println("Enter an Integer 15 or 40");
int numObjects = input.nextInt();
System.out.println("You entered the number "+numObjects);
}
}
The answer to your question is D
Answer:
#include <iostream>
using namespace std;
double DrivingCost(int drivenMiles,double milesPerGallon,double dollarsPerGallon)
{
double dollarsperMile=dollarsPerGallon/milesPerGallon;//calculating dollarsperMile.
return dollarsperMile*drivenMiles;//returning thr driving cost..
}
int main() {
double ans;
int miles;
cout<<"Enter miles"<<endl;
cin>>miles;
ans=DrivingCost(miles,20.0,3.1599);
cout<<ans<<endl;
return 0;
}
Output:-
Enter miles
10
1.57995
Enter miles
50
7.89975
Enter miles
100
15.7995
Explanation:
In the function first I have calculated the dollars per mile and after that I have returned the product of dollarspermile and driven miles.This will give the cost of the Driving.