import java.awt.*;
import java.applet.*;

class book
 {
     public String Title;
     public double Price;
     public String Author;
     public book(String Title, double Price, 
       String Author)
       {
          this.Title = Title;
          this.Price = Price;
          this.Author = Author;
       }

     public void ShowTitle(Graphics g)
       {
         g.drawString("Title: " + Title, 5, 10);
         g.drawString("Price $: " + Price, 5, 35);
         g.drawString("Author: " + Author, 5, 60);
       }
 }

public class BookConstructor extends Applet
  {
    public void paint(Graphics g)
      {
        book WebBook = new book("Web Programming",
          49.95, "Jamsa, Lalani, Weakley");

        WebBook.ShowTitle(g);
      }
  }


