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 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
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, 04.12.2020 14:00
question
Mathematics, 04.12.2020 14:00
question
Mathematics, 04.12.2020 14:00
question
Mathematics, 04.12.2020 14:00
Questions on the website: 13722361