Revised Project Summary- CH
docx
keyboard_arrow_up
School
Dallas County Community College *
*We aren’t endorsed by this school
Course
1436
Subject
Information Systems
Date
Feb 20, 2024
Type
docx
Pages
3
Uploaded by ChefComputerNarwhal18
This computer program is designed to help users calculate the total cost of professional development retreats provided by Leading for Leaders. The retreats have different rates
and features, which are clearly explained in the program. The program is user-friendly, with a menu that allows customers to easily choose the retreat they are interested in attending. Upon selecting a retreat, the program calculates the cost based on the number of attendees and the length of the retreat. There are four different types of retreats, each with its own formula for calculating the cost. The formulas consider factors such as lodging, equipment, and instruction costs. Overall, this program is an excellent tool for individuals seeking to attend a professional development retreat with Leading for Leaders. It streamlines the process of calculating costs and enables users to compare different retreat options.
This program is written in the C++ programming language and is designed to calculate the total cost of retreats offered by Leading for Leaders. The organization provides professional development opportunities, and multiple retreat options are available, each with different rates and features. The program utilizes a menu-driven approach to facilitate user interaction. Users can select a retreat, add additional options, and add multiple retreats with options before being presented with their total and payment information.
The main function starts the program and displays a menu with retreat options for the user to choose from. Once the user selects an option, the program then directs the user
to the corresponding function for that retreat (burgundy, scott, cox, or johnson). Each function prompts the user for specific information like the number of participants, leadership instruction, lodging type, and number of days. Finally, the program calculates
the total charges based on the retreat-specific rates and options and displays the result.
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