Coder Social home page Coder Social logo

mrnazu / demo-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alx-se-algorithmia/demo-project

0.0 0.0 0.0 1.01 MB

A CMD calculator program, handling addition, subtraction, division and multiplication. This calculator is implemented in C, Python, JavaScript, and other languages. Explore our demo project!

Home Page: https://alx-se-algorithmia.github.io/

License: MIT License

Shell 0.31% JavaScript 2.18% Python 9.74% C 87.26% Makefile 0.51%

demo-project's Introduction

Demo Project - Calculator

Welcome to our first demo project aimed at testing collaboration skills. In this project, we will build a basic calculator in C and any other programming language of your choice. The goal is to enhance your knowledge of the C programming language while demonstrating effective collaboration for future projects.

Project Description

The calculator program allows users to perform arithmetic operations by entering two numbers and an arithmetic operator. The program then calculates the result based on the provided operator.

Features

  • User-friendly prompt: The program provides clear instructions and prompts to guide users in entering their arithmetic expressions.
  • Error handling: The program handles invalid input, such as non-numeric values or invalid operators, by displaying error messages and prompting the user to enter valid input.
  • Decimal precision: The program supports calculations with decimal numbers, allowing users to specify the number of decimal places to round the result or enter decimal numbers directly.

Contributing

Carefully follow the steps listed below to send us your contribution:

  1. Visit the Demo Project Repo

  2. Fork the repo by clicking the ‘Fork’ button at the top right. A snippet is provided below:

    image

  3. Clone your forked repo to your local machine:

git clone <your-forked-repo-url>

You can get the URL of your forked repo in a section of your forked repo that is green in color, like in the snippet above. Click the green ‘Code’ button up there and you shall get ‘your forked repo URL’

  1. Navigate into the cloned repo on your local machine:

cd <cloned-repo-folder>

  1. In the base of your cloned-forked repo, run the command below:

git remote add upstream https://github.com/ALX-SE-Algorithmia/Demo-Project.git

  1. Make sure that your forked repo’s main branch is up to date with the Organization’s repo main branch. Go to your forked repo’s main branch and click the ‘Sync fork’ button, if it is there on your repo.

    image

  2. Create a new branch using the command below:

git checkout -b <your-branch-name>

It is most preferable that your branch name is your name. E.g: git checkout -b dohoudaniel

  1. You can start creating your C file from here on. But first, create a directory in your name and store your solutions in there.
    • A command to do that is: mkdir dohoudaniel

    • Navigate to the directory you have created: cd dohoudaniel

  2. Remember to add a non-empty README file to your directory. When you are done, with your solutions, you can add and commit your changes:

git add .

git commit -m “Your commit message”

  1. You can now push your changes from your local machine to your branch on GitHub: git push origin your_branch_name

    E.g: git push origin dohoudaniel

  2. Create a pull request from your branch on GitHub.

  3. Create your pull request from there on.

  4. The assigned code reviewer will review your code, and eventually, you might need to make some changes. Make sure you keep an eye on your email so as to be notified of updates on your pull request.

  5. Please add a little explanation in the space provided there on what you have done.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Enjoy coding! 👨‍💻 👩‍💻 🎧 🤍

demo-project's People

Contributors

dohoudaniel avatar destinedcodes avatar emycodes avatar martyofmca avatar chima-01 avatar certifieddonnie avatar 2023rahabu avatar ukasquared avatar valentino7504 avatar chykb avatar kabzakole avatar el898 avatar femshot avatar khairataa avatar anniedevkiller avatar youngman-d-coder avatar vinsky001 avatar nanaaba08 avatar mburu-elvis avatar andygyasi avatar amprebonne avatar maryanemwende avatar manuelshub avatar techdanny avatar atcocoder avatar samuelogboye avatar 10thcode avatar teamkweku avatar destinedcodes-private avatar samuelworld20 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.