1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
KengaRu [80]
3 years ago
9

Given a int variable named yesCount and another int variable named noCount and a char variable named response, write the necessa

ry 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.
Computers and Technology
1 answer:
MariettaO [177]3 years ago
5 0

// reading the value in response variable

cout<<"Enter the value :";

cin>>response;

// checking the value and printing the results

if(response == 'y' || response == 'Y')

{

yesCount+=1;

cout<<"YES WAS RECORDED";

}else if(response == 'n' || response == 'N')

{

noCount+=1;

cout<<"NO WAS RECORDED";

}else

cout<<INVALID";

You might be interested in
Sound effects are located within the Microsoft® Office applications. In the Insert ribbon, what would you select to find pre-pro
babymother [125]
Sometimes clip art has sound files in them, it may have gotten updated though, that answer is the only one that could work.
7 0
3 years ago
In command prompt, Whats a command that will list only .ini files in C:\Windows\System32 directory?
Ber [7]

Answer:

The dir command is a Command Prompt command that's used to display a list of the files and subfolders contained in a folder.

hope it helps

3 0
4 years ago
Read 2 more answers
A hardware company is considering adopting customer relationship management solutions. What are the possible advantages the comp
irinina [24]

Answer:

Finding customers for your business is not easy. And once you find them, there comes another challenge – Establishing and maintaining strong relationships with them.

CRM software helps you centralize, optimize and streamline your communication. The better you know your customers, the stronger your relationships will be with them.

Here, we share 6 CRM benefits that focus on key customer relationship areas, allowing you to offer high-quality, consistent and timely interactions with your customers.

Explanation:

4 0
3 years ago
One difference between Windows 3.0 and Windows 2.0 was that users could no longer use MS-DOS commands to operate their computer.
Kipish [7]

the answer is false.

6 0
3 years ago
From which tab can you format individual cell data like any other text? A.Design B. Home C. Table Tools Design D.Table Tools Lay
AysviL [449]
I think table tools design I'm not really sure sorry
6 0
3 years ago
Read 2 more answers
Other questions:
  • A_ is an object makerfirst program second object third class fourth method ​
    14·1 answer
  • Can using interior light help improve a drivers visibility at night
    9·1 answer
  • The entrance facility is the place where the connection to a WAN is located. It is basically the point where the LAN begins and
    9·1 answer
  • Technology offers a variety of rich opportunities available to teachers and students. According to Inan and Lowther (2010), ther
    6·1 answer
  • What is the result of giving the which utility the name of a command that resides in a directory that is not in your search path
    10·1 answer
  • Money from a Coverdell Education Savings Account can be used for:
    11·1 answer
  • Write a C++ program that takes two numbers from the command line and perform and arithmetic operations with them. Additionally y
    11·1 answer
  • Ashley Baker has been the webmaster for Berryhill Finance only ten days when she received an e-mail that threatened to shut down
    13·1 answer
  • This is just for the points
    15·2 answers
  • Which very high-speed fiber network was already in place and being used for wide area networking (wan) transmissions, before the
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!