subject

Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7. hint: start with "numusers = ".
import java. util. scanner;
public class updatenumberofusers {
public static void main (string [] args) {
int numusers = 0;
int updatedirection = 0;
numusers = 8;
updatedirection = 1;
/* your solution goes here */
system. out. println("new value is: " + numusers);
return;
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
You know the right answer?
Using a conditional expression, write a statement that increments numusers if updatedirection is 1,...
Questions
question
Mathematics, 17.11.2020 19:40
question
Mathematics, 17.11.2020 19:40
question
Mathematics, 17.11.2020 19:40
question
Mathematics, 17.11.2020 19:40
question
English, 17.11.2020 19:40
Questions on the website: 13722361