Need help sorting Employee's pay
Code:#include <iostream.h> int main() { // declare variables char nam[30]; float sale; float total; int weekpay = 200; int i; int hold; // for loop and input names & determine wages cout << "Input 10 employees. " << endl; for (i=1; i<=10; i++) { cout << "Enter name of worker : "; cin >> nam; cout << "Enter number of sales : "; cin >> sale; total = ((sale * 0.09) + weekpay); cout << "This employees pay is $ " << total << endl; } cin >> hold; return 0; }