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 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 25.06.2019 08:40
Anyone took cgs 1060 and took exam for simnet, slide 50 question on 1st exam.
Answers: 3
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, 14.05.2021 07:20
question
Arts, 14.05.2021 07:20
question
Mathematics, 14.05.2021 07:20
question
Mathematics, 14.05.2021 07:20
question
Social Studies, 14.05.2021 07:20
Questions on the website: 13722361