In Java Include the following in the following program try...catch blocks. switch...case condition. for or for...each or while loops. break and continue statements. int numberOfPhotos; // photos on roll double fStop; // light let it 1.4,2.0,2.8 ... 16.0 int iso; // sensativity to light 100,200, 600 int filterNumber; // 1-6 String subjectMatter; String color; // black and white or color String location; boolean isblurry; public String looksBlurry(boolean key){ if ( key == true){ return "Photo is Blurry"; } else{ return "Photo is Clear"; } } public void printPhotoDetails (){ System.out.println("----------------------------------"); System.out.println("Printing details of current photo:"); System.out.println("----------------------------------"); System.out.println("This is a/an " + subjectMatter +"roll:" +" " + color + "using filter: "+ filterNumber + "."); System.out.println("It has " + numberOfPhotos + "photos with " + fStop + "fStop." ); System.out.println("This photo was taken near the"+ location + "with film at " + iso + "ISO"+ "."); if (isblurry == true){ System.out.println("You can post it."); } else { System.out.println("You should post it."); } } }
In Java
Include the following in the following program
-
try...catch blocks.
-
switch...case condition.
-
for or for...each or while loops.
-
break and continue statements.
int numberOfPhotos; // photos on roll
double fStop; // light let it 1.4,2.0,2.8 ... 16.0
int iso; // sensativity to light 100,200, 600
int filterNumber; // 1-6
String subjectMatter;
String color; // black and white or color
String location;
boolean isblurry;
public String looksBlurry(boolean key){
if ( key == true){
return "Photo is Blurry";
}
else{
return "Photo is Clear";
}
}
public void printPhotoDetails (){
System.out.println("----------------------------------");
System.out.println("Printing details of current photo:");
System.out.println("----------------------------------");
System.out.println("This is a/an " + subjectMatter +"roll:" +" " + color + "using filter: "+ filterNumber + ".");
System.out.println("It has " + numberOfPhotos + "photos with " + fStop + "fStop." );
System.out.println("This photo was taken near the"+ location + "with film at " + iso + "ISO"+ ".");
if (isblurry == true){
System.out.println("You can post it.");
}
else {
System.out.println("You should post it.");
}
}
}
Step by step
Solved in 2 steps with 1 images