Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Java. using switch only. no if cases please. Problem A certain company assigns each employee an ID made up of 4 parts: If the

using Java.
using switch only. no if cases please. image text in transcribed
Problem A certain company assigns each employee an ID made up of 4 parts: If the employee's last name begins with a vowel the ID begins with V, otherwise it begins with The next three characters are based on what department the employee works in: Department Abbreviation Code Accounting Acc 101 Human Resources Hrs Sales Sal 103 Finance Advertising Adv 105 Communications Com 106 Any other 110 102 Fin 104 The fifth and sixth characters are based on the month of the employee's birth: Month of Birth Code Jan, Feb 01 Mar, Apr 02 May, Jun 03 Jul, Aug 04 Sep, Oct 05 Nov, Dec 06 The last two characters are the length of the employee's last name (use leading zero if necessary) Write a program, Employeeld, to input an employee's last name, department (3 letter abbreviation) and month of birth (3 letter abbreviation) and display the employee's ID. Examples The code for employee Smith in department Sales born in April is C1030205 The code for employee Easterbrooke in department Security born in December is V1100612

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago