Code Monkey home page Code Monkey logo

calculator's People

Contributors

abhik99 avatar d02d33pak avatar deniernal354 avatar duilioray avatar harshgupta182 avatar iamjmat avatar jigarjoshi04 avatar nonseodion avatar praveenscience avatar sanjaymarreddi avatar sneharautmare avatar vaibhavarora102 avatar volpym avatar xmllint avatar zerodays39 avatar

Stargazers

 avatar

Watchers

 avatar

calculator's Issues

Adding Random function to Calculator

Hello.
I read the readme and since all functions are done, Maybe, you can go on to make a more advanced calculator that has a random number generator (for generating a random number between two numbers).
If you're interested in this, I would be happy to contribute to the code.

User input of integers is being asked first for all operations

Program waits for user to input two numbers first even if calling single valued operations.
Highlighting the parts in output dump as "##Issue"

python3 main.py 
--------------------------------------------------
Enter First Integer  :--> 1 ##Issue
Enter Second Integer :--> 2 ##Issue

    Addition              -->  1     Subraction      -->  2
    Multiplication        -->  3     Division        -->  4
    Integer Division      -->  5     Power           -->  6
    Modulo                -->  7     Log             -->  8
    Sigmoid of sum        -->  9     Random Number   -->  10
    Highest common factor --> 11     Factorial (of first number) --> 12
    Exponential of number --> 13     Sine (sinx)    --> 14
    Exit                  --> 17     Cosine(cosx)   --> 15 
                                     Tangent(tanx)  --> 16
   
    
Please Enter Your Choice :--> 14
You chose Sin(x) 
Enter the Number(x) in Degrees:90

The output of the selected operation is 1.0

Should move that part if required only for mathematical operation.

Add missing functions in main.py

Missing functions like Mean,Median,Mode and Range and its elseif conditions. Only the function definition is present currently.

Output dump of the menu for reference

    Addition              -->  1     Subraction      -->  2
    Multiplication        -->  3     Division        -->  4
    Integer Division      -->  5     Power           -->  6
    Modulo                -->  7     Log             -->  8
    Sigmoid of sum        -->  9     Random Number   -->  10
    Highest common factor --> 11     Factorial (of first number) --> 12
    Exponential of number --> 13     Sine (sinx)    --> 14
    Exit                  --> 17     Cosine(cosx)   --> 15 
                                     Tangent(tanx)  --> 16

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.