Write a flowchart and c code for a program that does the following: asks a user the number of years of employment service uses an statement to display the following messages service greater than 25 years – you receive a gold watch service greater than 15 but less than 25 years – you receive a silver pen service greater than 5 but less than 15 years– you receive an attractive pin service between 0 and 5 years – you receive a pat on the back be sure that you are using a logical operator to include all values. don’t forget to add curly brackets with each condition feel free to use logical operators in the conditions - this is not required

Here is the flowchart for the program:

```
start
|
V
Ask user for number of years of employment service
|
V
Read user input and store it in a variable (years)
|
V
If years greater than 25
|
V
Display "You receive a gold watch"
|
V
Else if years greater than 15 AND years less than 25
|
V
Display "You receive a silver pen"
|
V
Else if years greater than 5 AND years less than 15
|
V
Display "You receive an attractive pin"
|
V
Else if years between 0 and 5
|
V
Display "You receive a pat on the back"
|
V
End
```

And here is the C code for the program:

```c
#include <stdio.h>

int main() {
int years;

printf("Enter the number of years of employment service: ");
scanf("%d", &years);

if (years > 25) {
printf("You receive a gold watch\n");
} else if (years > 15 && years < 25) {
printf("You receive a silver pen\n");
} else if (years > 5 && years < 15) {
printf("You receive an attractive pin\n");
} else if (years >= 0 && years <= 5) {
printf("You receive a pat on the back\n");
}

return 0;
}
```

Note: In the code, we are using the logical operators (&&) for the conditions where multiple comparisons are required. The (&&) operator ensures that both conditions must be true for the corresponding code block to execute.

Sure! Here's a flowchart and C code that fulfills the mentioned requirements:

Flowchart:
```
Start
|
|
|
V
Enter number of years
|
|
|
V
If service > 25 years
|
|
|
V
Display "You receive a gold watch"
|
|
|
V
End
OR
|
|
V
If service > 15 years
|
|
|
V
Display "You receive a silver pen"
|
|
|
V
End
OR
|
|
V
If service > 5 years
|
|
|
V
Display "You receive an attractive pin"
|
|
|
V
End
OR
|
|
V
If service < 5 years
|
|
|
V
Display "You receive a pat on the back"
|
|
|
V
End
```

C code:
```c
#include <stdio.h>

int main() {
int years_of_service;

printf("Enter the number of years of employment service: ");
scanf("%d", &years_of_service);

if (years_of_service > 25) {
printf("You receive a gold watch\n");
} else if (years_of_service > 15) {
printf("You receive a silver pen\n");
} else if (years_of_service > 5) {
printf("You receive an attractive pin\n");
} else {
printf("You receive a pat on the back\n");
}

return 0;
}
```

Please note that in this example code, I have assumed that the user will provide a positive integer input for the number of years of employment service.