Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the two classes: public class TheaterRunner { public static void main ( String [ ] args ) { String [ ] [ ] names

Given the two classes: public class TheaterRunner {
public static void main(String[] args){
String[][] names ={{"F-22 Raptor", "F-4 Phantom", "F-14 TOMCAT", "AV-8B Harrier II","A-10 THUNDERBOLT"},
{"F-18 HORNET", "F-117 NIGHTHAWK", "F-16 FIGHTING FALCON", "F-15 STRIKE EAGLE", "F-35 LIGHTNING II"}};
int[][] maxSpeed ={{1500,1473,1544,633,420},
{1190,684,1500,1875,1227}};
Jets myJets = new Jets(names);
System.out.println(myJets.printModels());
System.out.println(myJets.findUpdatedModels());
Speed mySpeed = new Speed(maxSpeed);
System.out.println(mySpeed.calcAverageSpeed());
ImageScene myScene = new ImageScene();
myScene.printImages();
Theater.playScenes(myScene);
}
} public class ImageScene extends Scene {
public void printImages(){
drawImage("F-22_Raptor_edit1_(cropped).jpg",0,50,400);
pause(2);
drawImage("QF-4_Holloman_AFB.jpg",0,50,450);
pause(2);
drawImage("1200px-US_Navy_051105-F-5480T-005_An_F-14D_Tomcat_conducts_a_mission_over_the_Persian_Gulf-region.jpg",0,50,425);
pause(2);
drawImage("av-8b-harrier-ii_004.jpg",0,50,462);
pause(2);
drawImage("Fairchild_Republic_A-10_Thunderbolt_II_-_32156159151.jpg",0,50,454);
pause(2);
drawImage("US_Navy_071203-N-8923M-074_An_F-A-18F_Super_Hornet-_from_the_Red_Rippers_of_Strike_Fighter_Squadron_(VFA)_11-_makes_a_sharp_turn_above_the_flight_deck_aboard_the_Nimitz-class_nuclear-powered_aircraft_carrier_USS_Harry_S._Truman.jpg",0,50,465);
pause(2);
drawImage("F-117_Nighthawk_Front.jpg",0,50,465);
pause(2);
drawImage("F-16_June_2008.jpg",0,50,450);
pause(2);
drawImage("F-15E_takes_on_fuel_from_KC-10.jpg",0,50,460);
pause(2);
drawImage("F-35A_flight_(cropped).jpg",0,50,450);
}
} Write code in java such that each image displayed in the theater is black and white.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Navigating The Supply Chain Maze A Comprehensive Guide To Optimize Operations And Drive Success

Authors: Michael E Kirshteyn Ph D

1st Edition

B0CPQ2RBYC, 979-8870727585

More Books

Students also viewed these Databases questions