GithubHelp home page GithubHelp logo

bltomlin / simplebashcalculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 12 KB

Scripting using variables, the user input, arithmetic operators, conditional statements, functions, arrays, regex, and the bc utility, which stands for Basic Calculator.

Shell 100.00%
bash

simplebashcalculator's Introduction

LinkedIn Badge

🛠️ Languages and Tools :

Python  Java  Bash  AWS  Javascript 

simplebashcalculator's People

Contributors

bltomlin avatar

Watchers

 avatar

simplebashcalculator's Issues

floating number implementation

Start with a message, Enter an arithmetic operation:
Read the user input and validate it;
Carry out the arithmetic operations with the help of the bc utility;
Print the result of the arithmetic operation to the standard output.

calculate

Start with a message, Enter an arithmetic operation:
Read from the standard input and validate it;
Carry out an arithmetic operation;
Print the result of the operation to the standard output.

add more functionality

  1. Start with the welcoming message. Your program should print Welcome to the basic calculator! at the beginning;
    
  2. Ask the user what to do, Enter an arithmetic operation or type 'quit' to quit:;
    
  3. Read from the standard input and validate it;
    
  4. Do the calculations with the help of bc;
    
  5. Print the results to the standard output;
    
  6. Continue until a user enters quit;
    
  7. Save everything to the operation_history.txt file. Including welcome/farewell messages, inputs, and outputs;
    
  8. When the user input is quit, output Goodbye! and end the program.
    

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.