Coder Social home page Coder Social logo

java-mod-2-assessment's Introduction

Module 2 Project Guidelines

Overview

Console application with user input to build a basic "world", e.g. a hospital with doctors of various specialties. The hospital has doctors. The doctors are of different types, and have patients.

Project Brief

Create a virtual world with the appropriate relationships between a Hospital, Doctors and Patients.

Requirements

  • The system should create a Hospital with a name property provided by the user.
  • The system should create 3 doctors, each with a name and specialty provided by the user.
    • The specialty is user-definable, but good examples are:
      • Dermatology
      • Pediatrics
      • Radiology
      • ...
  • The system should establish that the doctors work at the system's hospital.
  • The system should ask the user to create 5 patients and match each patient to a doctor based on the specialty they need.
  • When the system is done collecting input from the user and building the world, it should "display" the world to the user (text-based display on the command line).
  • The system must handle invalid input from the user (at all points where input is gathered from the user).

Stretch goals

  • User-defined number of doctors.
  • Pre-defined list of doctor specialties that the user must select from.
  • User-defined number of patients.
  • Pre-defined list of patient symptoms that match up to doctor specialties.
  • System matches patients to doctors based on user-selected symptoms.

Getting Started

  • Create a class to model each entity in your virtual world, i.e. you should have a class for Hospital, a class for Doctor and a class for Patient.
  • Determine the data structures you will need to hold the instances of those classes. Hint: think about collections.
  • You will need a runnable class to start your world and gather input from the user.

Sample Code

Start by creating a runnable class:

public class HospitalWorld {
    public static void main(String[] args) {
        System.out.println("Running...");
    }
}

Create a class for each entity you will be modeling:

public class Hospital {

}
public class Doctor {

}
public class Patient {

}

Reminders

  • Use existing built-in Java functions where possible
  • The Scanner class has useful functionality for getting input from the user

java-mod-2-assessment's People

Contributors

alveem avatar kcleland0818 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.