C++ NEED HELP URGENT
Integer inCount is read from input representing the number of floating-point values to be read next. Use a loop to read the remaining floating-point values from input. For each floating-point value read, output "Value read: " followed by the value. Then, output "Largest: " followed by the largest of the floating-point values read. End each output with a newline.
2
Ex: If the input is:
2 22.6 -7.4
then the output is:
Value read: 22.6 Value read: -7.4 Largest: 22.6
Note: All floating-point values are of type double.
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int inCount;
double inVal;
double largestVal;
int i;
cin >> inCount;
/*Your code goes here*/
return 0;
}