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 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
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
question
Biology, 05.11.2020 01:00
question
Mathematics, 05.11.2020 01:00
question
Physics, 05.11.2020 01:00
question
Mathematics, 05.11.2020 01:00
Questions on the website: 13722367