Giter Club home page Giter Club logo

go-bill-generator's Introduction

CLI Billing System in Go

This project is a simple Command Line Interface (CLI) application written in Go. It takes user input for names, items with their prices, and tips, then generates a bill and saves it in a .txt file.

Features

  • Accepts user input for customer names, items, and prices
  • Calculates the total bill including tips
  • Generates a formatted bill
  • Saves the bill to a .txt file

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have Go installed on your machine.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/likhithkp/go-bill-generator.git
    cd go-bill-generator
  2. Build the application:

    go build -o go-bill-generator
    

Usage

  1. Run the application:

    ./go-bill-generator
    
    or
    
    go run main.go bill.go
  2. Follow the on-screen prompts to enter the required information:

    • Enter the customer's name.
    • Enter the items and their prices.
    • Enter the tip amount.
  3. After entering all the required information, the application will generate a bill and save it in a .txt file.

Bill format

Bill breakdown:

  • Whiskers Biscuit: ...$4.99
  • Shiba toys: ...$5.89
  • CheeseCake: ...$2.99
  • tip : ...$15.50
  • total : ...$29.37

go-bill-generator's People

Contributors

likhithkp avatar

Stargazers

jist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.