Answer:
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
// array fill and returnig array to the main()
float *arrayFill(float *arr) {
// srand() allows generate new random value everytime the program runs
srand(time(NULL));
for (int i = 0; i < 10; i++)
{
// array fill with random number between 0 to 100
arr[i] = (rand() % 100);
}
return arr;
}
// print array
void print(float* arr) {
cout << "Array: ";
for (int i = 0; i < 10; i++)
{
cout << arr[i] << " ";
}
}
float maxNum(float* arr) {
float temp = arr[0];
for (int i = 1; i < 10; i++) {
if (temp < arr[i]) {
temp = arr[i];
}
}
return temp;
}
int main() {
// creating dynamic array of elements 10 in heap memory
float *arrPtr = new float[10];
float result = 0;
// calling arrayFill()
arrPtr = arrayFill(arrPtr);
// calling print() to print array
print(arrPtr);
// calling maxNum() to find maximum number in the array
result = maxNum(arrPtr);
cout << "\nmaximum number: " << result;
delete[] arrPtr;
return 0;
}
Explanation:
please read inline comments inside the code section:)
Answer:
So if someone is smart enough to keep a safe password this tool will help you with it. Pydictor is written in python. There is two method to crack the password using this tool one creates a normal wordlist the other creates wordlist in base64 form. We will try both methods.
Explanation:
The goto command
for example
:start
title ""graphing calculator""
goto start
Answer:
C
Explanation:
Joe should backup all his data from his old mobile device to his PC and then import all the data to his new device via PC. This is the fastest way for transferring data than all the other options mentioned. Most of the time the devices with different OS cannot connect via Bluetooth so option B is not suitable here. If we talk about logging in to same email provider on the new device, it might work but it'll take a lot of time to transfer data to a new device since the data is been copied through internet. If Joe has a strong internet connection than it might be a suitable option for him but what if the connections breaks down in middle of transfer? Similarly NFC also uses internet connection, but that's not only the problem with NFC, like Bluetooth, NFC also works with similar OS devices. Apart from that NFC only transfers small payloads of data.
So many more people all around the world have easy access to youtube