Menu

Can anyone help me?

2011-02-12
2012-09-26
  • Johnny Griffin

    Johnny Griffin - 2011-02-12

    I'm a student and need a little help with writing code for this assignment. So
    far, we have gone over the basics and right now we are doing if else and
    switch statements but I can't figure out how to get this one to work. Please
    help! Here is the program that i'm trying to code:

    “Your Neighborhood Healthcare” has 3 clinics in the local area. They have a
    computer system to direct all incoming phone calls. Once the call is answered,
    it asks the caller to do the following:

    Press 1 for Raleigh office
    Press 2 for Durham office
    Press 3 for Chapel Hill office

    After the location is selected, the caller is asked to select one of the
    following menu items:

    Press 1 for making a new appointment
    Press 2 for rescheduling an appointment
    Press 3 for billing questions
    Press 4 for talking to a nurse

    Write a program to simulate this telephone system. The caller is asked to
    select a location first, and then an activity (new appointment, rescheduling
    appointment, billing or talking to a nurse). Depending on the selections, the
    program displays one of the following 12 messages as output:

    "Raleigh: making a new appointment"
    "Raleigh: rescheduling an appointment"
    "Raleigh: billing questions"
    "Raleigh: talking to a nurse"
    "Durham: making a new appointment"
    "Durham: rescheduling an appointment"
    "Durham: billing questions"
    "Durham: talking to a nurse"
    "Chapel Hill: making a new appointment"
    "Chapel Hill: rescheduling an appointment"
    "Chapel Hill: billing questions"
    "Chapel Hill: talking to a nurse"

     
  • Ahaan Rungta

    Ahaan Rungta - 2011-03-17

    Hint: Use casework

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.