Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a c++ program following the given template: An example is given below: (the program should be created like this example) 3) Travel and tours

Create a c++ program following the given template:

image text in transcribed

An example is given below: (the program should be created like this example)

image text in transcribed

image text in transcribed image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

3) Travel and tours system struct - User - Package client - display available tour destination package - buy package print package bought #include #include #include #include > houseLot; cin.clear(); cin.ignore (numeric_limits:: max(), ' '); for(int i=0; i> choice; Enter your choice":: max(), ' '); system("cls"); switch(choice) { case 1:{ viewHouse(housing, totalHouse); break; } case 2:{ buyHouse(housing, user.name, totalHouse); break; } case 3 : { print(housing, user.name, totalHouse); break; } case 4 : { exitMemberMenu(); break; } default : { cout> user.name; cin.clear(); cin.ignore(numeric_limits:: max(), ' '); cout > user.age; cin.clear(); cin.ignore(numeric_limits:: max(), ' '); cout > user.mobileNo; cin.clear(); cin.ignore(numeric_limits:: max(), ' '); cout > user.login; cin.clear(); cin.ignore (numeric_limits:: max(), ' '); cout > user.password; cin.clear(); cin.ignore(numeric_limits:: max(), ' '); system("pause"); system("cls"); return user; } User userLogin(User users[], int totalUser, bool &loginSuccess) { User foundUser, user; string login, password; cout> login; cin.clear(); cin.ignore(numeric_limits:: max(), ' '); cout > password; cin.clear(); cin.ignore(numeric_limits::max(), ' '); for(int i=0; i> choice; cin.clear(); cin.ignore (numeric_limits:: max(), ' '); system("cls"); switch(choice) { case 1:{ User user = userRegistration(); users[totaluser] = user; totaluser++; 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

Students also viewed these Databases questions