项目作者: ByeonghoonJeon

项目描述 :
Dutch pay calculator including tips.
高级语言: Python
项目地址: git://github.com/ByeonghoonJeon/Dutch-Pay-Calculator.git
创建时间: 2021-04-22T07:37:43Z
项目社区:https://github.com/ByeonghoonJeon/Dutch-Pay-Calculator

开源协议:MIT License

下载


Dutch-Pay-Calculator

Dutch pay calculator including tips.
This calculator divides total bill amount by number of people.

How to use?

  1. Input total amount of the bill. (except tip)
  2. Input how many people will share the bill.
  3. Input how many percent of tip would you like to give.
  4. Get individual portions and pay!

How it works?

Using while loop and conditionals, this program evaluate correctness of user’s input. Until the user input valid answer, this program continuously ask to input valid answers.
This function prevents users from facing unexpected errors.

When the user input total bill, tip is added and the total amount is divided by number of bill sharing members.

image