Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program that includes the following: 1. A function called CheckemployeeID, which receives a string as an input, and checks whether it is

Write a C program that includes the following:

1. A function called CheckemployeeID, which receives a string as an input, and checks whether it is correct employee ID or not.

Note: For a string to be a correct employee ID it should be 10 characters long and starts with 33, and contains no alphabets.

2. The main function, which lets the user input a string and calls the function CheckemployeeID to check if the string is correct employee ID or not. If the entered ID is correct, the program should classify the employee by evaluating his/her ID, as follows:

  • The ID ends in 01, display HR Department.
  • The ID ends in 02, display Finance Department.
  • The ID ends in 03, display Academic staff.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions