#K48287. Email Categorization System
Email Categorization System
Email Categorization System
You are given the content of an email as input. Your task is to categorize the email into one of the following departments by checking for specific keywords (case-insensitive):
- Billing Department: If the email contains 'billing issue' or 'payment problem'.
- Technical Support: If the email contains 'technical support' or 'software issue'.
- Sales Department: If the email contains 'product inquiry' or 'information request'.
- HR Department: If the email contains 'job application' or 'applying for'.
- Business Development: If the email contains 'partnership opportunity' or 'collaboration request'.
- General Inquiry: If none of the above keywords are found.
Your program should read the email content from standard input and print the corresponding department name to standard output.
Note: All comparisons must be done in a case-insensitive manner.
inputFormat
The input consists of a single string which represents the content of an email. The string may contain spaces and punctuation. It is provided via standard input.
outputFormat
Output a single line containing the department name which the email belongs to. The output should exactly match one of the following: Billing Department
, Technical Support
, Sales Department
, HR Department
, Business Development
, or General Inquiry
.
I have a billing issue with my account.
Billing Department