Git Product home page Git Product logo

assignmentonecalculator's Introduction

AssignmentOneCalculator

#full marks

This is a python assignment for the following problems:

Part 1: This programming assignment assumes ‘a’ takes either positive or negative integer value while b takes only positive integer value . After removing spaces in the valid arithmetic operation which will then take the form of a+b, a-b, ab and a/b
-a+b, -a-b, -a
b and a/b
Note there are No spaces between a and the sign operation and also sign operation and b. Assume that all input entries by the user are valid.

An important function in the developed program solution is testing. Your program should test for all possible valid data entries.

Part 2: After having successfully implemented the solution for part 1, you are now required to make changes to your developed program in part 1 to detect any non-valid arithmetic operations by informing the user “it’s an invalid arithmetic operation” and prompting the user to retry. A maximum of three tries are given to the user and the program terminates when the user exceeds the number of tries. The valid input arithmetic operation is of the form given below: a + b, a + -b, a+ -b, a +-b, a+-b
-a + b, -a + -b, -a+ -b, -a +-b, -a+-b

assignmentonecalculator's People

Contributors

iftiaj avatar

Watchers

 avatar

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.