Write a C++ program in which you declare variables that will hold an hourly wage, a

number of hours worked, and a withholding percentage. Prompt the user to enter values
for each of these fields. Compute and display net weekly pay, which is calculated as
hours times rate, minus the percentage of the gross pay that is withholding. Save the file
as NetPay.cpp.

Write a program that finds the smallest among the five integers

inputted by the user.

To write a C++ program that calculates the net weekly pay, follow these steps:

1. Create a new file called `NetPay.cpp` and open it in your preferred text editor or IDE.

2. Start by including the necessary header file for input/output operations:
```cpp
#include <iostream>
using namespace std;
```

3. Declare the main function:
```cpp
int main() {
// Program logic goes here.
}
```

4. Declare the variables that will hold the hourly wage, the number of hours worked, and the withholding percentage:
```cpp
double hourlyWage, hoursWorked, withholdingPercentage;
```

5. Prompt the user to enter values for each of these variables:
```cpp
cout << "Enter the hourly wage: ";
cin >> hourlyWage;

cout << "Enter the number of hours worked: ";
cin >> hoursWorked;

cout << "Enter the withholding percentage: ";
cin >> withholdingPercentage;
```

6. Calculate the gross pay by multiplying the hourly wage by the number of hours worked:
```cpp
double grossPay = hourlyWage * hoursWorked;
```

7. Calculate the net pay by subtracting the withholding percentage from the gross pay:
```cpp
double netPay = grossPay - (withholdingPercentage / 100) * grossPay;
```

8. Display the net weekly pay to the user:
```cpp
cout << "Net Weekly Pay: $" << netPay << endl;
```

9. End the program by returning 0 from the main function:
```cpp
return 0;
```

10. Save the file and compile/run the program using a C++ compiler of your choice.

That's it! You have now written a C++ program that calculates the net weekly pay based on the user's input.