Question: Please can someone give me a good Algorithm Pseudocode or Flowchart of this following java code / * * * * / public class WeatherTracker
Please can someone give me a good Algorithm Pseudocode or Flowchart of this following java code
public class WeatherTracker
@param args
@SuppressWarningsresource
public static void mainString args
TODO Autogenerated method stub
Scanner input new ScannerSystemin;
System.out.printlnWelcome to the Weather App Program!!";
System.out.printlnThis program will determine the categories of weather temperatures.";
System.out.printlnEnter the number of days you want to enter:";
int days input.nextInt;
int temperatures new intdays;
int hotDays niceDays moderateDays coldDays ;
double total ;
for int i ; i days; i
System.out.printlnEnter temperature i :;
temperaturesi input.nextInt;
total temperaturesi;
if temperaturesi
hotDays;
else if temperaturesi
niceDays;
else if temperaturesi
moderateDays;
else
coldDays;
double average total days;
System.out.printlnHot Days: hotDays;
System.out.printlnNice Days: niceDays;
System.out.printlnModerate Days: moderateDays;
System.out.printlnCold Days: coldDays;
System.out.printlnThe average temperature was average degrees.";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
