background
Home / Portfolio / Calculator CLI
PORTFOLIO

Calculator CLI

Challenge Binar Academy Kampus Merdeka Batch 3 - Chapter 1. Calculator CLI is a simple calculator that can be used in the terminal. This project is built with NodeJS and inquirer packages.

#CLI  #NodeJS  #Inquirer  #Binar Challenge  

Calculator CLI

Calculator CLI is a simple calculator that can be used in the terminal. This project is built with NodeJS and inquirer packages.

Binar Challenge - Backend JavaScript - Chapter 1

This project is one of Challenge from Binar Academy Kampus Merdeka. The challenge is to build a simple calculator that can be used in the terminal. The calculator must be able to perform addition, subtraction, multiplication, division and more.

Source Code is available on GitHub and GitLab.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Square Root
  • Square Area
  • Cube Volume
  • Cylinder Volume
  • Exit

Tech Stack

Installation and Usage

Clone the repository.

1git clone https://github.com/raprmdn/binar-challenge.git
bash

Go to the project directory.

1cd binar-challenge/chapter1
bash

Install dependencies.

1# npm 2npm install 3 4# yarn 5yarn install
bash

Usage

1node challenge/app.js
bash

Screenshots

Calculator CLI image 1
Operation Menu and Output Result
Calculator CLI image 2
Input Number
Calculator CLI image 3
Input Number
Calculator CLI image 4
Result of Calculator CLI

Next Challenge

The next challenge is to build student input score system. The system must be able to input student score and get the highest, lowest, and average value of the scores. Check it out here.