using namespace std;int main() {const int NO_EMP = 5;double salary [NO_EMP];double highest -0;double sum = 0;// COMPLETE YOUR CODE HEREreturn 0;Complete the C++ program by prompting a user for...


#include <iostream><br>using namespace std;<br>int main() {<br>const int NO_EMP = 5;<br>double salary [NO_EMP];<br>double highest -0;<br>double sum = 0;<br>// COMPLETE YOUR CODE HERE<br>return 0;<br>Complete the C++ program by prompting a user for 5 employee's salary and store into an array<br>salary. Then display the total of salary as well as the highest salary among the employee. Correct<br>your display to 2 decimal places.<br>Crarks]<br>Sample Output<br>Enter salary employee #1 : 2300.50<br>Enter salary employee #2 : 3700.00<br>Enter salary employee #3 : 4820.70<br>Enter salary employee #4 : 1800.00<br>Enter salary employee #5 : 2330.60<br>The sum is : RM 14951.80<br>The highest salary is RM 4820.70<br>

Extracted text: #include using namespace std; int main() { const int NO_EMP = 5; double salary [NO_EMP]; double highest -0; double sum = 0; // COMPLETE YOUR CODE HERE return 0; Complete the C++ program by prompting a user for 5 employee's salary and store into an array salary. Then display the total of salary as well as the highest salary among the employee. Correct your display to 2 decimal places. Crarks] Sample Output Enter salary employee #1 : 2300.50 Enter salary employee #2 : 3700.00 Enter salary employee #3 : 4820.70 Enter salary employee #4 : 1800.00 Enter salary employee #5 : 2330.60 The sum is : RM 14951.80 The highest salary is RM 4820.70

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here