Scenario: WRITE THIS MENU PROGRAM USIING C# A dog shelter would like a simple system to keep track of all the dogs that pass through their facility. You are required to make a command line-based dog shelter management application. Your application must allow a user to add, edit, search and view Contacts. The program must have a menu consisting of the following six (6) options: Add dog View all dogs View all available dogs View specific dog Update dog home status Exit Brief descriptions of each option in the menu Menu Item Description Add Dog 1) Asks the user for all the state value information for a dog. 2) Checks if there is space in the array to hold the new dog. 3) Check that the dogId is not already used in the system. 4) Creates a new Dog object and adds it to the array if there is space. If the array is full, print “Sorry… the Shelter is Full!”. Note: All new dogs have no home as yet (foundHome = false). View all dogs This menu option shows all dogs in the system. This includes dogs that have a home and those that do not. View all available dogs Shows all dogs in the system, which have no homes as yet. View a specific dog 1) Asks the user for a dogId. 2) Searches for a dog at the shelter with that dogId. 3) Displays the information of the dog associated with that dogId if found. If the dog is not found, “There is no dog with that id..” must be displayed. Update dog home status

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 4RQ
icon
Related questions
Question

Scenario:

WRITE THIS MENU PROGRAM USIING C#

A dog shelter would like a simple system to keep track of all the dogs that pass through their facility. You are required to make a command line-based dog shelter management application. Your application must allow a user to add, edit, search and view Contacts.

The program must have a menu consisting of the following six (6) options:

  • Add dog
  • View all dogs
  • View all available dogs
  • View specific dog
  • Update dog home status
  • Exit

Brief descriptions of each option in the menu

Menu Item

Description

Add Dog

 

1) Asks the user for all the state value information for a dog.

2) Checks if there is space in the array to hold the new dog.

3) Check that the dogId is not already used in the system.

4) Creates a new Dog object and adds it to the array if there is space. If the array is full, print “Sorry… the Shelter is Full!”.

Note: All new dogs have no home as yet (foundHome = false).

 

View all dogs

 

This menu option shows all dogs in the system. This includes dogs that have a home and those that do not.

 

View all available dogs

Shows all dogs in the system, which have no homes as yet.

View a specific dog

 

1) Asks the user for a dogId.

2) Searches for a dog at the shelter with that dogId.

3) Displays the information of the dog associated with that dogId if found. If the dog is not found, “There is no dog with that id..” must be displayed.

 

Update dog home status

 

1) Asks the user for a dogId.

2) Searches for a dog at the shelter with that dogId

3) If a dog with that id is found, the “foundHome” status is changed to true and the dog information is to be displayed. If the dog is not found, the message “There is no dog with that id..”  should be displayed.

Exit

1) Prints a message “Thank you for using the Dog Shelter Management System.”

2) Exits the program

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT