Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix billing calculation and display correct amounts in McDonaldsShell #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mudassir-jmi
Copy link

This pull request fixes the billing calculation in the McDonaldsShell to ensure that the Order Amount, Service Charge, and Final Amount are displayed correctly.

Changes made:

Implemented the calculation for Order Amount, Service Charge (10% of the Order Amount), and Final Amount.
Updated the show_bill method to display the correct amounts.
How to test:

Run the script using python3 main.py.
Use the order command to add items to your order.
Use the bill command to view the bill with the correct Order Amount, Service Charge, and Final Amount.
These changes ensure accurate billing and improve the user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant