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
Svetllana [295]
3 years ago
6

Write a program that prints the question " Do youwant to continue? " and reads a user input. if the userinput is " Y ", " OK", o

r " Why not? ", printout " OK ". if the user input is "No " , then print out " Terminating ", Otherwise print " Bad input". The case of the user input should notmatter. For example, "y" or "yes" are also valid inputs. Write aclass YesNoChecker for this purpose.
Computers and Technology
1 answer:
Nataly_w [17]3 years ago
7 0

Answer:

#include <bits/stdc++.h>

using namespace std;

int main() {

   string in;//string in for taking input...

   cout<<"Do you want to continue ?"<<endl;

   getline(cin,in);//taking input from the user...

   if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..

   cout<<"OK"<<endl;

   else if(in=="No")

   cout<<"terminating"<<endl;

   else

   cout<<"Bad input"<<endl;

return 0;

}

Explanation:

I have taken a string in.

Then taking input from user.

Checking the conditions using if else if ladder.

You might be interested in
What is a collection?
Andreyy89
Collections are used to store, retrieve, manipulate, and communicate aggregate data.
7 0
3 years ago
6. What is saddle-stitch binding?
kifflom [539]
Commonly known as book stapling, ‘saddle stitched’ is one of the most popular binding methods. The technique uses printed sheets which are folded and nestled inside each other. These pages are then stapled together through the fold line. Saddle stitched binding can be applied to all book dimensions and both portrait and landscape orientation.
5 0
3 years ago
Read 2 more answers
Pre-drive checks are when you___
GarryVolchara [31]
Answer is D tbsidown ebrbxjwknenrhdjekwj that’s ekdkrbneskksdjjxkwkqqwnajs
8 0
3 years ago
Read 2 more answers
Bob finished a C programming course and created a small C application to monitor the network traffic and produce alerts when any
Evgen [1.6K]

Answer:

A. Just a network monitoring tool.

Explanation:

Bob create the application using C language to monitor the network  traffic and the application produces alert when the origin sends many IP packets.

So the application created by bob is a simple network monitoring tool which monitors the network traffic and alerts when the send IP packets more than the threshold number of packets.

5 0
3 years ago
Which of the following is TRUE about a TCF Free Student Checking Account?
baherus [9]

Answer:

C

Explanation:

3 0
3 years ago
Other questions:
  • Analyze a software application that enables people to purchase prescription drugs on the internet. briefly describe this applica
    14·1 answer
  • Adam is so good at playing arcade games that he will win at every game he plays. One fine day as he was walking on the street, h
    13·1 answer
  • Please use complete sentences.
    10·1 answer
  • Outlines are effective because
    13·2 answers
  • Issues with paper based records include a. time spent re-keying data, searching for paper copies, and filing. b. storage volume
    9·1 answer
  • Catherine took her camera to the repair shop. The technician at the shop told her that acid had leaked into her camera. What cou
    13·1 answer
  • What are so good free movie apps or websites
    8·2 answers
  • Use the Law of Sines to solve the triangle. Round your answers to two decimal places.
    6·1 answer
  • . What is piracy? ???????????????????​
    5·1 answer
  • Question 1 Fill in the blank: Internet search engines are an everyday example of how Boolean operators are used. The Boolean ope
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!