https://github.com/abdo-essam/grocery_calculator
Dart program that calculates the total cost of grocery items, including taxes.
https://github.com/abdo-essam/grocery_calculator
Last synced: about 1 year ago
JSON representation
Dart program that calculates the total cost of grocery items, including taxes.
- Host: GitHub
- URL: https://github.com/abdo-essam/grocery_calculator
- Owner: abdo-essam
- Created: 2024-12-18T09:52:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-18T09:57:22.000Z (over 1 year ago)
- Last Synced: 2025-02-14T15:15:17.349Z (over 1 year ago)
- Language: Dart
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grocery Calculator
This Dart program calculates the total cost of grocery items, including a 10% tax. The program uses a list of maps to represent grocery items, with each map containing the item's name and price. The total cost is calculated using a loop, and the tax is added to the total.
## How to Run
1. Ensure you have Dart installed on your machine.
2. Clone this repository.
3. Run the program using the command: `dart grocery_calculator.dart`.
## Output
The program will print the total price before and after tax.
