Implementation of Calculator in Java using Swing. It uses JFrame, JPanel, JTextField, JButton and ActionListener to perfect working.
-
-
In this article, we are going to learn how to make simple Calculator android and ios application using flutter. For this purpose we are using two library which are given below. material.dart math_expressions.dart First library is used in any flutter application for GUI purpose, and second one is used for maths expression solve. In pubspec.yaml file you have to add following library. dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.3 math_expressions: ^2.0.0 Now click on pub upgrade on upper side. For…
-
This will execute basic calculator operation. echo -n "Enter the First Value " read no1 echo -n "Enter the Second Value " read no2 echo " *** Choice *** " echo "1. Addition" echo "2. Subtraction" echo "3. Multiplication" echo "4. Division" echo "5. Modulo" echo -n "Enter Choice: " read choice case $choice in 1) echo -n $no1 "+" $no2 "is " result=`expr $no1 + $no2` echo $result;; 2) echo -n $no1 "-" $no2 "is " result=`expr $no1 - $no2` echo $result;; 3) echo -n $no1 "*" $no2 "is " result=$((no1 * no2)) echo $result;; 4) echo -n $no1…
-
# include <iostream> using namespace std; int main() { char operation; float no1, no2; cout << "Enter operationerator either + or - or * or /: "; cin >> operation; cout << "Enter two operationerands: "; cin >> no1 >> no2; switch(operation) { case '+': cout << no1+no2; break; case '-': cout << no1-no2; break; case '*': cout << no1*no2; break; case '/': cout << no1/no2; break; default: cout << "Error! operation is not correct"; break; } return 0; } OutPut Enter operator either + or - or * or divide : + Enter two operands: 3.4 8.4 3.4 -…