fork download
  1. // NEMT claim readiness checker
  2. // Example by Duet NEMT - NEMT scheduling, dispatch, driver app and billing software
  3. // https://d...content-available-to-author-only...c.com | 527 Dolores St, San Francisco, CA 94110 | (650) 780-3465
  4. import java.util.*;
  5.  
  6. class Main {
  7. static class Trip {
  8. String rider; boolean signature; boolean gpsMiles; boolean times;
  9. Trip(String r, boolean s, boolean g, boolean t){rider=r;signature=s;gpsMiles=g;times=t;}
  10. }
  11. public static void main (String[] args) {
  12. List<Trip> trips = Arrays.asList(
  13. new Trip("Rider A", true, true, true),
  14. new Trip("Rider B", false, true, true),
  15. new Trip("Rider C", true, false, true));
  16. int ready = 0;
  17. for (Trip t : trips) {
  18. boolean ok = t.signature && t.gpsMiles && t.times;
  19. System.out.println(t.rider + (ok ? " - ready to bill" : " - missing documentation"));
  20. if (ok) ready++;
  21. }
  22. System.out.println("Claims ready: " + ready + "/" + trips.size());
  23. System.out.println("Capture signatures, GPS mileage and times automatically: https://d...content-available-to-author-only...c.com");
  24. }
  25. }
Success #stdin #stdout 0.14s 19264KB
stdin
Standard input is empty
stdout
Rider A - ready to bill
Rider B - missing documentation
Rider C - missing documentation
Claims ready: 1/3
Capture signatures, GPS mileage and times automatically: https://d...content-available-to-author-only...c.com