CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: New to Java: Programming a true/false on a report.

  1. #1
    Join Date
    Apr 2020
    Posts
    2

    New to Java: Programming a true/false on a report.

    Im taking an intro class and I have a project...part of which wants me to determine a yes or a no or a true false..

    public static void dispReport(String [] flight, String [] passport, double [] firstname, double [] lastname,double [] temperature, int current)
    {
    DecimalFormat DF = new DecimalFormat("###.##");
    System.out.println("Traveller Flight : " + flight[current] + "\n" +
    " Name : " + firstname[current] + "\n" +
    " Hourly Rate : " + lastname[current] + "\n" +
    " Hours Worked: " + firstname[current] + "\n" +
    " Quarentine : " + DF.format(gross[current]));
    }//end dispReport

    In the project, based in info entered for the temperature of traveller to determined whether they need quarantine or not.

    This is for an exercise in our programing class. Help...Im stuck.

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,858

    Re: New to Java: Programming a true/false on a report.

    determined whether they need quarantine
    Can you describe what test needs to be made?
    What action should the program take based on that tesr?
    Norm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)