Skip to content

LaTonia-Mertica/tip-calculator-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JUSTICE THROUGH CODE

PYTHON BOOTCAMP FALL 2021 COHORT

FIRST NAME: La'Tonia Mertica

note_1: pronounced luh tone yuh merr treece

command: heroku run python tip_calculator.py to access deploy in terminal click here to view successful deploy in terminal

TIP CALCULATOR

enter food cost to start tip calculation(s), follow prompts through the 'y' flow or the 'n' flow ... or, be routed to the welcome screen to start over (i.e. non-y/n input when prompted) .. . view cost per person before tax, be prepared for mandatory 10% tax, and view total cost after tax ...


SUDO CODE: HIGH-LEVEL STEP-BY-STEP

FROM WELCOME TO COME AGAIN aka WELCOME

- [x] Welcome users with brief intro to app and what app does.

- [x] Accept user input for cost of food.

- [x] Give option to calculate with 10% tip or enter different tip percentage.
   - [x] When user opts to apply 10% tip,
      - [x] display user choice;
      - [x] display tip percent applying;
      - [x] calculate tip amount;
      - [x] display tip amount applying;
      - [x] calculate cost plus tip;
      - [x] display cost plus tip amount;
      - [x] accept number of people splitting cost;
      - [x] display cost per person;
      - [x] inform adding tax;
      - [x] display total cost;
      - [x] reset . ..

   - [x] When user opts to apply specific/non-10% tip,
      - [x] prompt for proper input;
      - [x] display user choice;
      - [x] display tip percent applying;
      - [x] calculate tip amount;
      - [x] display tip amount applying;
      - [x] calculate cost plus tip;
      - [x] display cost plus tip amount;
      - [x] accept number of people splitting cost;
      - [x] display cost per person;
      - [x] inform adding tax;
      - [x] display total cost;
      - [x] reset . ..

- [x] Invite repeat use - reset to welcome after completion of any full flow,
      - [x] include prompt for proper input when non-y/n input;
      - [x] reset after two tries. ..

NEXT STEPS

  • auto conversion for 1-, 2-, and 3-digit percent inputs

  • add to y/n flows tip option at double the cost of food

  • optimize for accurate numeric outputs

  • accept user input:

    • for person(s) name splitting cost
    • and percent tip paying by person
  • re-use data option for later calculations

  • automate run deploy command or debug further to establish live demo option for users and visitors to the script


Releases

No releases published

Packages

No packages published

Languages