subject

When running javaapplication8, the following output is seen on the display: addition(2,3) = 5 javaapplication. java is given below with some missing parts in the circuit class and printcircuit method (missing parts are identified by dots): class circuit{ private string operation; private int number1, number2, output; public circuit(int n1, int n2){ …} public void setnumbers(int n1, int n2){ …} public void setoperation(…){operation=op; } public void setn1(int n){number1 = n; } public void setn2(int n){number2 = n; } public void setoutput(int n){… = n; } public … getoperation(){return operation; } public … getn1(){return number1; } public int getn2(){…} public int getoutput(){return output; } } public class javaapplication8 { private static void printcircuit(circuit a) { … } public static void main(string[] args) { circuit a1 = new circuit(2,3); a1.setoperation("addition"); a1.setoutput(a1.getn1()+a1.; printcircuit(a1); } } 1. fill in all missing parts 2. modify the main() method so that the output becomes: subtraction(2,3) = -1

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
You know the right answer?
When running javaapplication8, the following output is seen on the display: addition(2,3) = 5 javaa...
Questions
question
Mathematics, 04.03.2021 18:30
question
Mathematics, 04.03.2021 18:30
Questions on the website: 13722361