Skip to content

This is a simple C++ program that calculates the cost of catering services for an event based on the number of guests and the duration of the event. It takes into account the cost of servers and food to provide an estimate to the customer.

License

Notifications You must be signed in to change notification settings

swetamishra123/Catering-Cost-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catering Cost Calculator

This is a simple C++ program that calculates the cost of catering services for an event based on the number of guests and the duration of the event. It takes into account the cost of servers and food to provide an estimate to the customer.

Usage

To use this program, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/swetamishra123/Catering-Cost-cpp.git
  2. Compile the program using a C++ compiler (e.g., g++):

    g++ catering_cost.cpp -o catering_cost
  3. Run the program:

    ./catering_cost
  4. Follow the prompts to input the event details, including the name of the event, customer name, number of guests, and event duration in minutes.

  5. The program will calculate and display the estimated costs, the number of servers required, the cost for servers, the cost for food, the average cost per person, the total cost, and the 25% deposit needed to reserve the event.

Example

Here's an example of how the program works:

Enter the name of the event
Fall Dinner
Enter the customer's first and last name
John Doe
Enter the number of guests
100
Enter the number of minutes in the event
180

Fall Dinner     
Event estimate for  John Doe
Number Of Server: 5
The Cost for Servers: 111.00
The Cost for Food is: 2070.00
Average Cost Per Person: 20.70

Total cost is: 2193.00
Please deposit a 25% deposit to reserve the event
The deposit needed is: 548.25

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

We welcome contributions from the open-source community to improve this catering cost calculator. If you'd like to contribute, please follow these guidelines:

  1. Fork the repository to your GitHub account.

  2. Clone the forked repository to your local machine:

    https://github.com/swetamishra123/Catering-Cost-cpp.git
  3. Create a new branch for your contribution:

    git checkout -b feature/your-contribution
  4. Make your changes or additions to the codebase.

  5. Test your changes to ensure they work correctly.

  6. Commit your changes with clear and concise commit messages:

    git commit -m "Add feature or fix issue"
  7. Push your changes to your GitHub repository:

    git push origin feature/your-contribution
  8. Create a Pull Request (PR) on the original repository with a clear description of your changes.

  9. Your PR will be reviewed, and if it meets the project's guidelines, it will be merged.

Thank you for contributing to make this project more better !

About

This is a simple C++ program that calculates the cost of catering services for an event based on the number of guests and the duration of the event. It takes into account the cost of servers and food to provide an estimate to the customer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages