Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do you do this only using #include int res; home > user > Desktop 6 1.cpp > main() 1 #include 2 #include 3 using

image text in transcribed

How do you do this only using #include

int res; home > user > Desktop 6 1.cpp > main() 1 #include 2 #include 3 using namespace std; 4 int validate(char q){ 5 if(q=='Y' || q=='y'){ 6 return 1; Jelse if(y=='N' || q=='n'){ return 2; }else{ 10 return 3; 11 } 1 } 13 13 int main() { 1 char option; 14 15 15 16 cout>option; 18 res = validate(option); 19 if(res==1){ 20 cout>option; 22 res = validate(option); if(res==1) { 23 24 cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

3-2 What is the impact of information systems on organizations?

Answered: 1 week ago