Posts

Showing posts from 2019

How to build cv in just 5 minutes || fazal t point

Image
How to build resume? Hello!you want to build a stunning cv/resume if the answer is yes.This video is for you after watching this video you should be able to make a single page resume.Trust me guys this is the easiest way to build resume in just 5 minutes.

Create a class named Movie that can be used with your video rental business in java

Image
Create a class named Movie that can be used with your video rental business. The Movie class should have ID Number, and movie title with appropriate getter and setter methods. Also create an equal() method that overrides Object ā€™s equals() method, where two movies are equal if their ID number is identical. Next, create three additional classes named Action, Comedy, and Drama that are derived from Movie. Finally, create an overridden method named calcLateFees that takes as input the number of days a movie is late and returns the late fee for that movie. The default late fee is $2/day. Action movies have a late fee of $3/day, comedies are $2.50/day, and dramas are $2/day. Test your classes from a main method. Solution code: import java.sql.SQLOutput ; class Movie { int id ; String title ; public Movie ( int id , String title) { this . id = id ; this . title = title ; } public int getId () { return id ; } public void setId ( int...

A publishing company that markets both book and audio-cassette in java. (Solution)

Image
Q   Imagine a publishing company that markets both book and audio-cassette versions of its works. Create a class publication that stores the title and price of a publication. From this class derive two classes:  a. Book, which adds a page count  b. Tape, which adds a playing time in minutes. Each of these three classes should have set() and get() functions and a display() function to display its data. Write a main() program to test the book and tape class by creating instances of them, asking the user to fill in their data and then displaying the data with display(). Solution code class Publication{ int price ; String title ; public Publication ( int price , String title) { this . price = price ; this . title = title ; } public int getPrice () { return price ; } public void setPrice ( int price) { this . price = price ; } public String getTitle () { return title ; } p...

how to connect domain with hosted server using server name

Image
how to connect domain with hosted server using server name .This video is about how to connect domain with name server this is the easiest way to connect domain with hosting.we assume that you buy domain and hosting so logging to your both account and follow the step if you not understand than watch video again and again. 

iron throne voting

before you get admission for programming

Image
this video is about to know before get admission in software enginering.
Question You are supposed to write a complete Inventory system program in JAVA. All the partsā€™ details will be stored/retrieved using classes, methods, objects and Arrays . Below are the details of Parts:   ā€¢        PartID                           : integer ā€¢        Description                   : alphanumeric of 30 character ļ‚· Manufacturer Date        : 8 character max. ā€¢        Quantity                       : integer ā€¢        Price                 ...
Question : Develop a program in JAVA that allows the user to perform the following operations   Main Menu 1)       Convert Day Integer to Day String 2)        Convert Month Integer to Month String 3)        Convert Date Integer to Date String 4)        Exits. import java.util.Scanner; public class Converssion {        public static String dayToString(int day){          if(day==1){return "first";}         else if(day==2){return "second";}         else if(day==3){return "three";}         else if(day==4){return "fourth";}         else if(day==5){return "fifth";}         else if(day==6){return "sixth";}         else if(day==7){return "seventh";}   ...

trick about html/css image

Image
This video will make you able that how to make your image vector for your web page. using adobephotoshop i am going to convert it to vector form. what is vector logo? a vector image is a image which you can add on any thing like banner ,image etc this will not effect of it's parent background mean the vector image has no background. for detail watch the video.

implementation of link list

Image
implementation of link list import java.util.Scanner; class Node{ public int data;//data public Node next;//next Node()//constructor { data=0; next=null; } Node(int data,Node next)//constructor { this.data=data; this.next=next; } //set data public void setData(int val) { data=val; } public Node setNext(Node n) {return next=n;} public int getData() {int val=data;return val;} public Node getNext() { return next;} public String toString() { return "data="+data; } }//end of node //class link list class LinkList{ public Node start; //starting node for reference public int size; //size of link list. LinkList(){start=null;size=0;} //empty public boolean isEmpty() { return start==null; } //size public int getSize() { return size; } //3 view list public void viewList() { Node temp; if(isEmpty()) { System.out.println("List is empty."); } else { temp=start; for(int i=1;i<=size;i++) { System.out.println(temp.g...

add three node at specific position

add three node at specific position Scanner in=new Scanner(System.in); //insert 3 node at a position public void add3Node() { System.out.println("enter postion:"); int position=in.nextInt(); if(position>0&&position<=size+1) { System.out.println("enter value of first node:"); int n1d=in.nextInt(); System.out.println("enter value of first node:"); int n2d=in.nextInt(); System.out.println("enter value of first node:"); int n3d=in.nextInt(); Node n3=new Node(n3d,null); Node n2=new Node(n2d,n3); Node n1=new Node(n1d,n2); if(position==1) { size++; size++; size++; if(size==0) { start=n1; } else { n3.setNext(start); start=n1; } } else if (position==size+1) { size++; size++; size++; Node t; t=start; while(t.getNext()!=null) { t=t.getNext(); } t.setNext(n1); } else { size...

delete at last position in java

delete at last position //delete at position. public void deleteAtPosition(int pos) { if(pos==1) deleteFirst(); else if(pos==size-1) deleteLast(); else if(pos<1||pos>size) { Node t; t=start; for(int i=1;i<=pos;i++) { t=t.getNext(); } } else System.out.println("Invalid input."); }

insert at last position in link list in java

insert at specific position //insert at position public void insertAtPosition(int val,int pos) { if(pos==1) { insertAtFirst(val); } else if(pos==size+1) { insertAtLast(val); } else if(pos>1&&pos<=size) { Node t,n; n=new Node(val,null); t=start; for(int i=1;i<pos-1;i++) { t=t.getNext(); } n.setNext(t.getNext()); t.setNext(n); size++; } else { System.out.println("Invalid position."); } }

all method of link list in java

link list link list is a dynamic data structure so in link list we can add element in run time.here we will implement how to implement node link list class Node{ public int data;//data public Node next;//next Node()//constructor { data=0; next=null; } Node(int data,Node next)//constructor { this.data=data; this.next=next; } //set data public void setData(int val) { data=val; } public Node setNext(Node n) {return next=n;} public int getData() {int val=data;return val;} public Node getNext() { return next;} public String toString() { return "data="+data; } }//end of node is link list is empty.  public boolean isEmpty() { return start==null; } add element at first position of link list. //insert at first position. public void insertAtFirst(int val) { Node tt=new Node(val,start); start=tt; size++; } //insert at last public void insertAtLast(int val) { Node n,t; t=start; n=new Node(val,null); if(isEmpty()) { sta...