Basic
- WAP to read 2 numbers and print addition of those two numbers
- WAP to read 2 numbers and print subtraction
- WAP to read 2 numbers and print multiplication
- WAP to read 2 numbers and print division
- WAP to read 2 numbers and print modulus (Remainder)
- WAP to read radius and print area and circumference of circle
- WAP to read length and breadth and print area and perimeter of rectangle
Conditional Statement (if else)
- WAP to read a number and check if its positive or negative
- WAP to read a number and check it is even or odd
- WAP to read 2 numbers and find greatest among them
- WAP to read 3 numbers and find greatest among them
- WAP to read marks of 5 subjects and check the student is pass or failed
- add validation for marks less than 0
- add validation for marks greater than 100
Loops
- WAP to print hello world 10 times with numbering
- WAP to print square of numbers from 1 to 10
- WAP to print numbers from 1 to given number
- WAP to print cube of numbers from 1 to given number
- WAP to read a number and print table of that number
- WAP to execute Fizz Buzz Problem / Print number 1 to 100
- if number is divisible by 3 then print Fizz
- if number is divisible by 5 then print Buzz
- if number is divisible by both 3 and 5 then print Fizz Buzz
- WAP to execute lift program of 20 floor
- print number with delay of 1 sec (use time module’s sleep method)
- skip 13 number
- break after printing 13
- WAP to create random jackpot number and take input from user to guess the number. Based on level the attempt to guess the number should change
- Easy – 20 attempts
- Medium – 10 attempts
- Difficult – 5 attempts
Array
- WAP to find average of on array
- WAP to find greatest number from an array
- WAP to count all EVEN and ODD numbers
- WAP to find sum, mean, min, max from array
- WAP to search a number in it
- WAP to sort it in ascending order
Array of JSON
const employees = [
{ id: 1, name: "Amit Sharma", department: "HR", salary: 35000 },
{ id: 2, name: "Priya Verma", department: "IT", salary: 50000 },
{ id: 3, name: "Ravi Kumar", department: "Finance", salary: 60000 },
{ id: 4, name: "Neha Singh", department: "IT", salary: 55000 },
{ id: 5, name: "Vikram Patel", department: "HR", salary: 40000 },
{ id: 6, name: "Anjali Mehta", department: "Marketing", salary: 45000 },
{ id: 7, name: "Suresh Reddy", department: "Finance", salary: 70000 },
{ id: 8, name: "Kiran Nair", department: "IT", salary: 48000 },
{ id: 9, name: "Pooja Joshi", department: "Marketing", salary: 42000 },
{ id: 10, name: "Arjun Desai", department: "Finance", salary: 65000 }
];
- Write a program to print all employee names.
- Write a program to find employees from the IT department.
- Write a program to find the employee with the highest salary.
- Write a program to calculate the total salary of all employees.
- Write a program to increase the salary of HR employees by 10%.
- Write a program to get all employees with a salary greater than 50,000.
- Write a program to sort employees by salary in ascending order.
- Write a program to find the average salary of employees in the Finance department.
- Write a program to find an employee by a given ID.
- Write a program to group employees by their department.