1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kobotan [32]
3 years ago
6

Given a int variable named yesCount and another int variable named noCount and an int variable named response write the necessar

y code to read a value into into response and then carry out the following: if the value typed in is a 1 or a 2 then increment yesCount and print out "YES WAS RECORDED" if the value typed in is a 3 or an 4 then increment noCount and print out "NO WAS RECORDED" If the input is invalid just print the message "INVALID" and do nothing else.
Computers and Technology
1 answer:
qaws [65]3 years ago
8 0

Answer:

Explanation:

RESPONSE = stdin.nextInt();

if (RESPONSE== 1 || RESPONSE == 2){

YESCOUNT++;

System.out.println("YES WAS RECORDED");

}

else if (RESPONSE == 3 || RESPONSE== 4){

NOCOUNT++;

System.out.println("NO WAS RECORDED");

}

else

System.out.println("INVALID");

You might be interested in
If your microwave oven is a computer, define its Operating System and User Interface.
Sedbober [7]

Answer:

If the microwave is considered as the computer system instead then the operating system in the microwave that deals with the whole functioning and carrying out operation will be done with the help of the embedded operating system.

The user interface in the microwave system which will help the user to interact with the device system will be done with the help of the keys that are present in the microwave for entering the input as options like start,stop,pause etc,mode and time.

4 0
3 years ago
Don is creating a very long document, and he would like to create an introductory page that contains the title of the document a
prohojiy [21]

Answer:

The answer is "Title page".

Explanation:

Don uses the title page to create it's designed because this page contains basic information like names, dates, titles, and the names of the author.  On this heading tab, it does not have a paper summary, and wrong choices can be described as follows:

  • The Blank Page is the wrong choice because it doesn't contain any layout.
  • The Bibliography is also a wrong choice because it describes the source of the information.
  • The Cover Page is also a wrong choice because it is also known as the main page it describes the name, the title of the document but it can't contain the date.  
8 0
3 years ago
Read 2 more answers
Which of the following statements is the most accurate, yet simple, definition of a computer?
Vedmedyk [2.9K]

Answer: 3

Explanation:

8 0
3 years ago
Read 2 more answers
How to create a database table​
Triss [41]

Try and use this website to help:

https://www.oreilly.com/library/view/access-2013-the/9781449359447/ch01.html

5 0
4 years ago
There are two major types of wireless networks that are popular today among users. These networks are Wi-Fi and ____
Viefleur [7K]

Answer:

That would be Bluetooth

Explanation:

As Bluetooth is the most widely used network. It is used to operate many things, such as:

Headphones

Speakers

Remotes

etc.

5 0
3 years ago
Other questions:
  • What seems to be the prevailing opinion about enterprise clouds?
    8·2 answers
  • A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-lif
    11·1 answer
  • Write a small program that asks the user how many asterisks it should print out. The user responds with a number, then the progr
    8·1 answer
  • Alright, don't judge me, this is a question that involves my Childhood game PvZ GW 2. So I noticed mods and stuff that get uploa
    12·2 answers
  • How to write (c program) code for 30/4 = 7.5. It should print 7.5, not 7
    12·1 answer
  • A 'array palindrome' is an array which, when its elements are reversed, remains the same (i.e., the elements of the array are sa
    13·1 answer
  • Which characteristic of a relational database distinguishes it from a flat file?
    5·1 answer
  • What does the “MIN” and “MAX” functions allow you to do when inserted in a spreadsheet?
    6·1 answer
  • Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value o
    8·1 answer
  • "a web client that connects to a web server, which is in turn connected to a bi application server, is reflective of a"
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!