// Airline.cpp - This program determines if an airline passenger is // eligible for a 25% discount. #include #include using namespace std; int main() { string passengerFirstName = ""; // Passenger's first name string passengerLastName = ""; // Passenger's last name int passengerAge = 0; // Passenger's age // This is the work done in the housekeeping() function cout << "Enter passenger's first name: "; cin >> passengerFirstName; cout << "Enter passenger's last name: "; cin >> passengerLastName; cout << "Enter passenger's age: "; cin >> passengerAge; // This is the work done in the detailLoop() function // Test to see if this customer is eligible for a 25% discount // This is the work done in the endOfJob() function return 0; }
// Airline.cpp - This program determines if an airline passenger is // eligible for a 25% discount. #include #include using namespace std; int main() { string passengerFirstName = ""; // Passenger's first name string passengerLastName = ""; // Passenger's last name int passengerAge = 0; // Passenger's age // This is the work done in the housekeeping() function cout << "Enter passenger's first name: "; cin >> passengerFirstName; cout << "Enter passenger's last name: "; cin >> passengerLastName; cout << "Enter passenger's age: "; cin >> passengerAge; // This is the work done in the detailLoop() function // Test to see if this customer is eligible for a 25% discount // This is the work done in the endOfJob() function return 0; }
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 9RQ
Related questions
Question
// Airline.cpp - This program determines if an airline passenger is
// eligible for a 25% discount.
#include <iostream>
#include <string>
using namespace std;
int main()
{
string passengerFirstName = ""; // Passenger's first name
string passengerLastName = ""; // Passenger's last name
int passengerAge = 0; // Passenger's age
// This is the work done in the housekeeping() function
cout << "Enter passenger's first name: ";
cin >> passengerFirstName;
cout << "Enter passenger's last name: ";
cin >> passengerLastName;
cout << "Enter passenger's age: ";
cin >> passengerAge;
// This is the work done in the detailLoop() function
// Test to see if this customer is eligible for a 25% discount
// This is the work done in the endOfJob() function
return 0;
}
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT