Project Summary- CH

docx

School

Dallas County Community College *

*We aren’t endorsed by this school

Course

1436

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

3

Uploaded by ChefComputerNarwhal18

Report
This is a computer program that helps calculate the total cost of professional development retreats provided by Leading for Leaders. The retreats have different rates and features, which are explained in the program. The program is designed to be easy to use, with a menu that lets you choose the retreat you're interested in. When you choose a retreat, the program calculates the cost based on the number of people attending and the length of the retreat. There are four different types of retreats, each with a different formula for calculating the cost. The formulas consider things like lodging, equipment, and instruction costs. Overall, this program is a helpful tool for anyone looking to attend a professional development retreat with Leading for Leaders. It takes the guesswork out of calculating the cost and makes it easy to compare different retreat options. This program, written in C++, is designed to calculate the total cost of the retreats offered by Leading for Leaders, an organization that provides professional development opportunities. Multiple retreat options are available, each with different rates and features, as detailed in the provided scenario. The program utilizes a menu-driven approach to make it easy for users to interact with it. A customer will be able to select a retreat, add additional retreat options, and add additional retreats with options before being presented with their total and payment information. Leaders for Leaders ( a professional development organization) is offering four different retreats, each with various rates and options. Retreat Offerings: The Ron Burgundy People Know Me Retreat Rates Base Charge: $350 per person Leadership Instruction: $100 per person Required Equipment: $40 per person The Michael Scott World’s Best Boss Retreat Rates Base Charge: $1,000 per person Leadership Instruction: $100 per person Dr. Cox Presents Man Not Caring Retreat Rates Base Charge: $400 per person Lodging: $65/day per person Luxury Lodging: $120/day per person Tony Johnson’s I Really Don’t Care Retreat
Rates Base Charge: $700 per person Equipment: $40/day per person Each function calculates the retreat's total cost and displays it on the console. The program consists of the following functions: main(): The main function starts by displaying a menu to the user and repeatedly calling the appropriate function based on the user's choice until the user decides to exit. menu(): This function displays the available retreat options and returns the user's choice as an integer. If the user selects a valid option, the main function dispatches control to the corresponding function. burgundy(): This function calculates the total cost for "The Ron Burgundy People Know Me Retreat". It prompts the user for the number of participants and then calculates the total cost based on the given base charge, leadership instruction, and equipment fees. Finally, it displays the total cost to the user. scott(): This function calculates the total cost for "The Michael Scott World's Best Boss Retreat". Similar to the burgundy() function, it prompts the user for the number of participants and calculates the total cost based on the given base charge and leadership instruction fees. The result is displayed to the user. cox(): This function calculates the total cost for "Dr. Cox Presents Man Not Caring Retreat". It prompts the user for the number of participants, the number of days, and the lodging type (regular or luxury). The total cost is calculated based on the given base charge, lodging cost per day, and the number of participants. The result is displayed to the user. johnson(): This function calculates the total cost for "Tony Johnson's I Really Don't Care Retreat". It prompts the user for the number of participants and the number of days. The total cost is calculated based on the base charge, daily equipment fees, and the number of participants. The result is displayed to the user. `exit_program()`: This function displays a message thanking the user for using the program and exits the program.
The program uses global constants to store the base charges for each retreat. It uses a switch statement in the main() function to call the appropriate function based on the user's choice. The std::fixed and std::setprecision(2) manipulators display the total cost with two decimal places.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help