Giter VIP home page Giter VIP logo

challenge-java-simple-calculator's Introduction

Challenge—8 languages in 5 days (Java Code)

This project is a challenge that I set for myself, during my vacation period. The idea was to develop the same small project: a simple calculator that asks for the user for two numbers and one character (a math operator), then performs the operation using the user's input.

First day (03/04) - GO and RUST

For the first day, I tried two languages for the first time: GO and RUST. GO was relatively easy, but RUST presented a bit of a challenge. I finished the GO code in the same day and RUST code on 03/06.

GO code can be accessed by clicking here.

RUST code can be accessed by clicking here.

Second day (03/05) - Java

On the second day, I started coding with Java. Creating this simple code was easy, but after I finished it, I keep studying Java and tried for the first time use Spring Framework.

Java code can be access clicking here.

Third day (03/06) - Python

On the third day, I started coding with Python, it was easy because I already had an experience with that programming language. So, before I ended, I start to study Django, a web framework for python.

Python code can be access clicking here.

Fourth day (03/07) - C# and Shell Script

On the fourth day, I stated coding with C# and then moved to Shell Script. Writing in C# was my first experience with an “independent” code, without a teacher or a step-by-step course guiding me. About Shell Script, it isn't the first time I used. But it was a bit more complex then the order small code that was usual to me to write, for first time I used functions and case in a Shell Script code.

C# code can be access clicking here.

Shell Script code can be access clicking here.

Fifth day (03/08) - C++ and C

On the fifth day, I coded with C++ and C, it was my second time tring C++ but first time tring C. Both languages share the same concepts, so it wasn't difficult to write both codes.

C++ code can be access clicking here.

C code can be access clicking here.

How to execute this Java code

My enviroment was Ubuntu Mate 22.04, so I used apt to install this packages to be able to execute the Java code:

apt-get install default-jdk default-jre

Then, go to the folder where the code is located and execute the code bellow to compile:

javac Code.java

And, to run your compiled code, execute:

java Code

challenge-java-simple-calculator's People

Contributors

rafaeldamiam 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.