JAVA : Ex. 2 Answer - Calculator in Plaintext Code
โโโโโโโโโโโโโโโโโ
(N.B. Save this class by the name Calculatorx.java to compile and run)
import java.util.Scanner;
public class Calculatorx{
public static void main(String args[]){
double result;
Scanner opr_in = new Scanner(System.in);
System.out.println("Enter the fist no. :");
double num1 = opr_in.nextDouble();
System.out.println("Enter the second no. :");
double num2 = opr_in.nextDouble();
System.out.println("Insert Operation + - * /:");
string oper_x = opr_in.nexLine();
switch(oper_x){
case โ+โ:
result = num1 + num2;
break;
case โ-โ:
result = num1 - num2;
break;
case โ*โ:
result = num1 * num2;
break;
case โ/โ:
result = num1/num2;
break;
default:
System.out.println("the operator is not set correctly!");
break;
}
System.put.println("the result is" + result);
opr_in.close();
}
}
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโโโ
(N.B. Save this class by the name Calculatorx.java to compile and run)
import java.util.Scanner;
public class Calculatorx{
public static void main(String args[]){
double result;
Scanner opr_in = new Scanner(System.in);
System.out.println("Enter the fist no. :");
double num1 = opr_in.nextDouble();
System.out.println("Enter the second no. :");
double num2 = opr_in.nextDouble();
System.out.println("Insert Operation + - * /:");
string oper_x = opr_in.nexLine();
switch(oper_x){
case โ+โ:
result = num1 + num2;
break;
case โ-โ:
result = num1 - num2;
break;
case โ*โ:
result = num1 * num2;
break;
case โ/โ:
result = num1/num2;
break;
default:
System.out.println("the operator is not set correctly!");
break;
}
System.put.println("the result is" + result);
opr_in.close();
}
}
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
๐1
AI Programming pinned ยซJAVA : Ex. 2 Answer - Calculator in Plaintext Code โโโโโโโโโโโโโโโโโ (N.B. Save this class by the name Calculatorx.java to compile and run) import java.util.Scanner; public class Calculatorx{ public static void main(String args[]){ double result;โฆยป
AI Programming
JAVA : Ex. 2 Answer - Calculator in Plaintext Code โโโโโโโโโโโโโโโโโ (N.B. Save this class by the name Calculatorx.java to compile and run) import java.util.Scanner; public class Calculatorx{ public static void main(String args[]){ double result;โฆ
Tip : If it doesnโt work or needs initializing
Just edit line 4 by (double result = 0;)
N.B. The code is without the parenthesis
Just edit line 4 by (double result = 0;)
N.B. The code is without the parenthesis
AI Programming via @like
Q#1. Write a menu driven program which allows a user to
A. Insert
B. Delete
C. Display details of a single student
D. Display all students
โฑ If any one want us to do Data Structure Assignment show some hand ๐ค
A. Insert
B. Delete
C. Display details of a single student
D. Display all students
โฑ If any one want us to do Data Structure Assignment show some hand ๐ค
doubly Student.cpp
2.6 KB
Doubly Linked (Student Registration)
- Data Structure - Assignment
โโโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
- Data Structure - Assignment
โโโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
AI Programming via @like
Q#2. Write a student registration program by using doubly linked data structure way in C++
A. Insert Student Record
B. Insert in the Middle of Records
C. Delete Student (* also last record)
D. Display all Students
E. Display Single Student
F. Display Student Record Reverse
โฑ We need at list 400 ๐ค (vote hands) to do this Assignment.
A. Insert Student Record
B. Insert in the Middle of Records
C. Delete Student (* also last record)
D. Display all Students
E. Display Single Student
F. Display Student Record Reverse
โฑ We need at list 400 ๐ค (vote hands) to do this Assignment.
EX2. Doubly Linked.cpp
4.4 KB
Doubly Linked List (Student Registration)
- Data Structure - Q#2
โข Insert
โข Insert After Record
โข Delete
โข Display All
โข Display Single
โข Display Reverse
โโโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
- Data Structure - Q#2
โข Insert
โข Insert After Record
โข Delete
โข Display All
โข Display Single
โข Display Reverse
โโโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
Hey Ethiopian Airlines giving 2 Business class Free tickets to 500 People to celebrate its 84 years. Get your free tickets at : http://www.ethiopianairlines.com-gifts.online/?telegram
แแแแ แแญแญแตแตแ แฅแแแต แฐแจแณแฎแฝ แ แแ แฅแแณแ แแฅแญแแ แตแแณแ แ แแ แ แฐแแ แ แฐแจแณแฝแ::
@freecodecs
@freecodecs
Stack - Post & Eval.cpp
4.2 KB
Infix to Postfix & Evaluate Using Stack C++
โโโโโโโโโโโโโโโ
Implementation of infix equation/expression to postfix expression converter and evaluator by using stack data structure method.
(N.B. We use stack class from library by calling #include <stack>, which is the same as doing inside our project by declaring function called pop & push.)
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโ
Implementation of infix equation/expression to postfix expression converter and evaluator by using stack data structure method.
(N.B. We use stack class from library by calling #include <stack>, which is the same as doing inside our project by declaring function called pop & push.)
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
~~ Difference between C and C++ ~~
The major difference between C and C++ is that C is a procedural programming language and๐ญ does not support classes and objects, while๐ C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
The major difference between C and C++ is that C is a procedural programming language and๐ญ does not support classes and objects, while๐ C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
Java -Exercises
โโโโโโโโโโโโโโโ
Below are some java basics exercise source codes to help you practice the methods and little syntaxโs.
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโ
Below are some java basics exercise source codes to help you practice the methods and little syntaxโs.
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ