Coder Social home page Coder Social logo

sudhanshu-ambastha / library_charge_calculator Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8 KB

this one used to calculate library charges on the basis of prices for set time period

Home Page: https://trinket.io/python/92a2c28972?outputOnly=true

Python 100.00%
price-calculator python trinket library-charge-calculator

library_charge_calculator's Introduction

Library Charge Calculator

This is a Python program that calculates library charges based on the number of days a book is borrowed. It applies the following criteria:

  • Up to 5 days: Rs. 2 per day
  • 6 to 10 days: Rs. 3 per day
  • 11 to 15 days: Rs. 4 per day
  • After 15 days: Rs. 5 per day

Usage

  1. Run the program.
  2. Enter the number of days for which the book is borrowed.
  3. The program will calculate and display the library charges.

Example

Enter the number of days: 8 The total charge is: Rs. 24

How it Works

  1. The program accepts the number of days as input.
  2. It calculates the charge based on the provided criteria.
  3. If the number of days is not within the specified ranges, it displays an "Invalid number of days" message.

Try it Online

You can test the program online using Trinket by following this link. https://trinket.io/

Troubleshooting

If you encounter any issues or have questions, please don't hesitate to reach out for support.

Author

library_charge_calculator's People

Contributors

sudhanshu-ambastha avatar

Stargazers

 avatar  avatar

Watchers

 avatar

library_charge_calculator's Issues

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.