AI Programming
11.2K subscribers
595 photos
42 videos
245 files
570 links
An artificial intelligence free resource channel for students, professionals, and anyone who wants to learn how to solve problems.

ENGINEERING ๐ŸŽ– PROGRAMMING ๐ŸŽ– TIPS & HACKS

https://youtube.com/c/AIProgramming
CONTACT US ON: @alphadmin12
Download Telegram
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
| JAVA : Exercise 1. |
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

Question. Wire a Java program which performs the following problems/questions.

P1. Using if else statement make a salary tax rate (payroll system) which accepts salary from the user and replies itโ€™s tax and net pay.

P2. Using conditional statement compare two numbers which replies the first number is greater-than/less-than the second and vice versa.

N.B. Use this Payroll System Rules
1. Below 600 birr (non-taxable)
2. Between 601 & 1,650 (10% tax & 60 birr deduction)
3. Between 1,651 & 3,200 (15% tax & 142.50 deduction)
4. Between 3,201 & 5,250 (20% tax & 302.50 deduction)
5. Between 5,251 & 7,800 (25% tax & 565 birr deduction)
6. Between 7,801 & 10,900 (30% tax & 955 birr deduction)
7. Over 10,900 (35% tax & 1500 birr deduction)

โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Figuring Out ๐Ÿ™Œ๐Ÿฝ
Answers. P1: Salary Payroll & P2: Number Comparing ๐Ÿ‘‡๐Ÿฝ๐Ÿ‘‡๐Ÿฝ
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Practice Folks ๐Ÿ™Œ๐Ÿฝ
Payroll.java
1.2 KB
Answer. P1. Salary Payroll - Java File
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Practice Folks ๐Ÿ™Œ๐Ÿฝ
Compare Nums.java
472 B
Answer. P2. Number Comparing - Java File
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Practice Folks ๐Ÿ™Œ๐Ÿฝ
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
| JAVA : Exercise 2. |
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

Question. Wire a Java program which operates as a calculator using 4 basic operations (โž•โž–โž—โœ–๏ธ).

(N.B. Use switch method to perform the conditions)
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Figuring Out ๐Ÿ™Œ๐Ÿฝ
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 ๐Ÿ™Œ๐Ÿฝ
๐Ÿ‘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;โ€ฆยป
๐Ÿ˜ฅ๐Ÿ˜ฅ
๐Ÿ˜˜๐Ÿ˜˜
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 ๐Ÿคš
doubly Student.cpp
2.6 KB
Doubly Linked (Student Registration)
- Data Structure - Assignment
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
AI Programming @freecodecs
Have a Lit๐Ÿ”ฅ Practice Folks ๐Ÿ™Œ๐Ÿฝ
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.
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 ๐Ÿ™Œ๐Ÿฝ
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
This media is not supported in your browser
VIEW IN TELEGRAM
แˆˆแˆ˜แˆ‹แ‹ แˆˆแŠญแˆญแˆตแ‰ตแŠ“ แŠฅแˆแАแ‰ต แ‰ฐแŠจแ‰ณแ‹ฎแ‰ฝ แ‰ แˆ™แˆ‰ แŠฅแŠ•แŠณแŠ• แˆˆแ‰ฅแˆญแˆƒแА แ‰ตแŠ•แˆณแ‹” แ‰ แ‹“แˆˆ แ‰ แˆฐแˆ‹แˆ แŠ แ‹ฐแˆจแˆณแ‰ฝแˆ::
@freecodecs