THIS IS THE CODE FOR LAB 6
#include “pch.h”
#include <iostream>
#include <string>
using namespace std;
//Defining protoype since the function will be written outsideof main
double Largest(double numbers[], int size); //prototype forlargest number
double Smallest(double numbers[], int size); //prototype forsmallest number
int main() {
double numbers[] = { 4.5, 3.4, 5.6, 9.1, 6.7, 7.8 };
int count = sizeof(numbers) / sizeof(double);
//Displaying the output
cout << “The largest value in the given array is : “<< Largest(numbers, count) << endl;
cout << “The smallest value in the given array is : “<< Smallest(numbers, count) << endl;
return 0;
} // end of main function
//Function to get the largest number
double Largest(double numbers[], int size) {
double
PayPal Gateway not configured
PayPal Gateway not configured