Posts

Conversion of string program java

Conversion of string java program UPPER lower BOLD ITALIC  import javax.swing .* ; import java.awt . * ; import java.awt.event .* ; class Convt extends JFrame implements ActionListener {        JLabel l1;        JButton b1,b2,b3,b4;        JTextField t1,t2,t3,t4,t5;      Convt( )   {          setVisible(true);          setSize(400,400);          setTitle("Conversion of Text");          l1=new JLabel("ENTER   THE   STRING :=");          b1=new JButton("LOWER");          b2=new JButton("UPPER");          b3=new JButton("BOLD");        ...

Write a command line program for line editor of practcal slip

/*     slip-7 1. Write a command line program for line editor. The file to be edited is taken  as command line argument, an empty  file is opened for editing if no argument  is supplied.  It should display '$' prompt to accept the line editing commands. Implement the following commands. i)    a                 - to append ii)    i  n                 - to insert after nth line iii)    c    n1   n2              - to copy line n1 at  n2 position iv)    c    n1, n2    n3   - to copy range of line at n3        [30 marks] */ #include<stdio.h> #include<conio.h> #include<string.h> #define new...