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

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 06:10
The head restraint should be adjusted so that it reaches a.the top of your ears b.the base of your skull c.the top of the head
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
Given a int variable named yescount and another int variable named nocount and an int variable named...
Questions
question
Mathematics, 30.11.2020 22:30
question
Mathematics, 30.11.2020 22:30
question
English, 30.11.2020 22:30
Questions on the website: 13722361