subject

Write a java program. create a function void process(char ch, int x, int y)- to accept an arithmetic operator (+, -, /, *) in argument ch and two integers in arguments x and y. now on the basis of the operator stored in ch perform the operation in x and y and print the final result. also, write a main function to input the two integers and an arithmetic operator, and by invoking function process() print the output​

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
You know the right answer?
Write a java program. create a function void process(char ch, int x, int y)- to accept an arithmeti...
Questions
question
Mathematics, 17.03.2020 23:33
question
Mathematics, 17.03.2020 23:34
question
Mathematics, 17.03.2020 23:34
Questions on the website: 13722367