Posts

Showing posts from March, 2021

HTML----------Employee form

Employee Present 50% Employee Interests Survey form Enter your name: Enter your department: Tell us a little about yourself: Do you exercise at home? yes no How do you like to read about your favourite topics? Books Online resources Phone apps Magazines What genre of movies do you like? Comedy Action Adventure Horror Thriller
Image
Document NAME:Teelu SPECIES:Dog BREED:Pomeranian Descended from large sled dog breeds, the now-tiny Pomeranian has a long and interesting history. The foxy-faced dog, nicknamed “the little dog who thinks he can,” is compact, active, and capable of competing in agility and obedience or simply being a family friend. Poms may be small, but they don’t always act that way and may even challenge larger dogs. While they make for good apartment pets, they can also bark a lot, which your neighbors may not be too thrilled about. But as long as you give your dog plenty of exercise and playtime, keep them out of hot weather, and give them lots of love and attention, you’ll have a loving, adorable, furry family companion! NAME:Rishav SPECIES:Humans BREED:Befkoof Humans (Homo sapiens) are highly intelligent primates that have become the dominant species on Earth. They are the only exta...

JAVA-------SEM-1 Assignment 6

 Q_01 import java.util.Scanner; public class Q_01 { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Enter the value of a and b: "); int a = in.nextInt(); int b = in.nextInt(); System.out.println("a + b = " + additionSimple(a , b)); System.out.println("a - b = " + substractionSimple(a , b)); System.out.println("a * b = " + multiplicationSimple(a , b)); System.out.println("a % b = " + remainderSimple(a , b)); System.out.println("a / b = " + divisionSimple(b , a)); System.out.println("sqrt of a = " + squarerootSimple(a)); System.out.println("sqrt of b = " + squarerootSimple(b)); } public static int additionSimple(int a , int b) { int c = a + b ; return c; } public static int substractionSimple(int a , int b) { int c = a - b ; return c; } public static int multiplicationSimple(int a , int b) { int c = a...

JAVA-------SEM-1 Assignment 5

 Q_01 Scanner in = new Scanner(System.in); System.out.print("Enter a number: "); int n = in.nextInt(); for(int i = 0 ; i <= n ; i++) { System.out.println(i +"\t\t\t" + (int)Math.pow(2, i)); } Q_02 Scanner in = new Scanner(System.in); System.out.print("Enter the no.of students: "); int n = in.nextInt(); int count = 0; for(int x = 0 ; x < n ; x++) { System.out.print("Enter the mark of the student: "); int marks = in.nextInt(); if(marks >= 40) count++; } System.out.println(count + " students passed the exams."); Q_03 int count = 0; for(int n = 101 ; n <= 1000 ; n++) { if(n%5==0&&n%6==0) { System.out.print(n + " "); count++; if(count%10==0) System.out.println(); } } Q_04 Scanner in = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int num; int p = 0 , n = 0 , count = 0;...

JAVA-------SEM-1 Assignment 2

 Q_01 Scanner input = new Scanner(System.in);         System.out.print("Enter a value in celsius: ");         double cel = input.nextDouble();         double far = 9.0/5*cel + 32;         System.out.println(cel + " degree in celsius is " + far + " degree in farhenheit."); Q_02 Scanner input = new Scanner(System.in);           System.out.print("Enter radius: ");           double rad = input.nextDouble();           System.out.print("Enter length: ");           double len = input.nextDouble();           double area = rad*rad*Math.PI;           double volume = area * len;           System.out.println("area is: " + area);           System.out.println("volume is: " + volume); Q_03 Scanner x = new Scanner(System.i...

JAVA-------SEM-1 Assignment4

 Q_01 Scanner in = new Scanner(System.in); int n = 1; System.out.print("Enter the message: "); String x = in.next(); while(n <= 10) { switch(n) { case 1 : System.out.println(n + "st " + x); break; case 2 : System.out.println(n + "nd " + x); break; case 3 : System.out.println(n + "rd " + x); break; default : System.out.println(n + "th " + x); } n++; } Q_02 int n = 1; int x = Integer.parseInt(args[0]); System.out.println("The no of lines are: " + x); while(n <= x) { switch(n%10) { case 1 : System.out.println(n + "st Hello"); break; case 2 : System.out.println(n + "nd Hello"); break; case 3 : System.out.println(n + "rd Hello"); break; default : System.out.println(n + "th Hello"); } n++; } Q_03 Scanner in = new Scanner(System.in); S...