-
April 24th, 2020, 12:20 PM
#1
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.
-
May 3rd, 2020, 10:26 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|