Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Programing. Intro to Java.Please do thie project using BlueJ. Please, add java codes as stated in the comment. Do Not change the codes that
Java Programing. Intro to Java.Please do thie project using BlueJ. Please, add java codes as stated in the comment. Do Not change the codes that are already there just add whats asking. Make sure your output is exactly as same as the one below. Thank you so much your your time, I really appriciate it.
Here is the code in text format: https://www.writeurl.com/text/y209f2bbw1y3wxl2av12/endxhf1ca60p6v4m2edv
public static void main(String[] args) //create a Scanner object to read from the keyboard Scanner keyboardnew Scanner (System.in); //declare variables int station; //the user's channel choice //declare and instantiate a television object Television bigScreennew Television( "Toshiba", 55); //turn the power on bigScreen.power(O; //display the state of the television System.out.print1n("? " + bigScreen.getScreenSize() + " inch " + bigScreen.getManufacturer( +" has been turned on."); //prompt the user for input and store into station System.out.print ("What channel do you want?") station keyboard.nextInt(); //change the channel on the television bigScreen.setChannel(station) //increase the volume of the television bigScreen.increaseVolume() //display the the current channel and volume of the television System.out.println("Channel "bigScreen.getChannel() Volume "+ bigScreen.getVolume )) System.out.println("Too loud! I am lowering the volume."); //decrease the volume of the television bigScreen.decreaseVolume bigScreen.decreaseVolume () bigScreen.decreaseVolume() bigScreen.decreaseVolume ) bigScreen.decreaseVolume () bigScreen.decreaseVolume () //display the current channel and volume of the television System.out.println("Channel:bigScreen.getChannel() + Volume bigScreen.getVolume ()) System.out.println) //for a blank line //HERE IS WHERE YOU DO TASK #5Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started