subject

Given a int variable named yescount and another int variable named nocount and a char variable named response, write the necessary code to read a value into response and then carry out the following: if the character typed in is a y or a y then increment yescount and print out "yes was recorded" if the character typed in is an n or an n then increment nocount and print out "no was recorded" if the input is invalid just print the message "invalid" and do nothing else.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Jessie has received a contract to build a real-time application for a baker. however, the baker doesn't want to invest too much money. his only requirement is that he wants the customers to know which cupcakes are available at what time and in what quantity. so his core requirement is that the details of product should be in real time. what platform can jessie use to develop this application?
Answers: 1
question
Computers and Technology, 22.06.2019 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
You know the right answer?
Given a int variable named yescount and another int variable named nocount and a char variable named...
Questions
question
Mathematics, 06.11.2021 04:10
question
Mathematics, 06.11.2021 04:10
question
English, 06.11.2021 04:10
question
Mathematics, 06.11.2021 04:10
Questions on the website: 13722367