subject

Given a int variable named yescount and another int variable named nocount and an int variable named response write the necessary 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. assume the availability of a variable, stdin, that references a scanner object associated with standard input.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 22.06.2019 15:00, nika0001
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
image
Computers and Technology, 23.06.2019 03:30, patience233
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
You know the right answer?
Given a int variable named yescount and another int variable named nocount and an int variable named...

Questions in other subjects:

Konu
Biology, 17.04.2021 14:00
Konu
Physics, 17.04.2021 14:00