Temp Employer wants a program that will allow the company’s

clerk to enter an employee’s name and the number of hours the
employee works every month. (The number of hours worked will
always be an integer). The program will display the name,
numbers of weeks(assume a 40-hour week), days(assume an
eight-hour day), and hours worked. For example, if the employee
enters the number 70, the program will display the employee’s
name, then 1 week, 3 days and 6 hours.

a) List the input, process and output
b) Draw the flowchart
c) Write a program in C++

a)

Input:
- Employee's name
- Number of hours worked per month

Process:
- Calculate the number of weeks, days, and remaining hours worked based on the total number of hours entered
- Format the output to display the name, number of weeks, days, and hours worked

Output:
- Employee's name
- Number of weeks worked
- Number of days worked
- Number of hours worked

b)
Unfortunately, as a text-based AI, I'm unable to generate a visual flowchart. However, I can guide you on how to create one.

To create a flowchart for this program, you would start with a start/stop symbol and then use input/output symbols to represent the inputs and outputs mentioned above. Then, use flow control symbols such as decision symbols (diamonds) to handle the calculations for weeks, days, and hours. Finally, use process symbols to represent the calculations and arrows to connect the symbols in the appropriate order.

c)
Here's an example program in C++ that would accomplish the task:

```cpp
#include <iostream>
#include <string>

int main() {
std::string employeeName;
int hoursWorked;

// Input
std::cout << "Enter employee's name: ";
std::getline(std::cin, employeeName);

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

// Calculation
int weeks = hoursWorked / 40;
int remainingHours = hoursWorked % 40;
int days = remainingHours / 8;
int hours = remainingHours % 8;

// Output
std::cout << "Employee: " << employeeName << std::endl;
std::cout << "Weeks: " << weeks << std::endl;
std::cout << "Days: " << days << std::endl;
std::cout << "Hours: " << hours << std::endl;

return 0;
}
```

In this program, we use the `std::string` data type to store the employee's name, and an `int` data type to store the number of hours worked. The program prompts the user to enter the employee's name and the number of hours worked. It then performs the necessary calculations to determine the weeks, days, and hours worked, and finally displays the employee's name, weeks, days, and hours worked.

Remember to include the necessary `#include` statements at the beginning of the program for the `iostream` and `string` libraries.