Question: Question 3 : Write a java program to assign the emergency department to its phone number. Use the table given below. table [ [
Question :
Write a java program to assign the emergency department to its phone number. Use the table given below.
tableEmergency Department,Phone NumberPoliceAmbulanceFirefightingTraffic Police,
Display the following menu to the user:
Emergency Department:
Police
Ambulance
Fire
Traffic PoliceChoose your option :
Hint : Use Scanner class and nextInt method to read a number corresponding to a department.
Hint : Use switchcase statement to display the phone number of the emergency department.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
