Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 4240 Name dgsdgf Date/Time 10-Oct-2019 03:19:22 PM

Copy text from below
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package convocation;
import java.util.Scanner;

/** *
* @author fa18-btn-015
*/
public class ConvDetails {
int conv_id;
String uni_name;
int no_of_students;
int no_of_halls;
char conv_type;
double conv_cost;
double Tax;

void input(){
Scanner x=new Scanner(System.in);
System.out.println("Enter University Name:");
uni_name=x.nextLine();
System.out.println("Enter Convocation ID:");
conv_id=x.nextInt();
System.out.println("Enter Number of Students:");
no_of_students=x.nextInt();
System.out.println("Enter Number of Halls:");
no_of_halls=x.nextInt();
}

void cal_Cost(){
conv_cost=no_of_students*120*39.4;
}

void Conv_Type(){
if(no_of_students<100)
conv_type='s';
else
conv_type='b';
}
void cal_tax(){
if(conv_cost>1&&conv_cost<1000)
Tax=(2%(0.02)*conv_cost);
if(conv_cost>1001&&conv_cost<3000)
Tax=(3%(0.03)*conv_cost);
else
Tax=(4%(0.04)*conv_cost);
}

void cal_capacity_of_hall(){
Scanner x=new Scanner(System.in);
int hall_cap;
double total_cap_of_halls=0;
for(int i=1;i<=no_of_halls;i++)
{
System.out.println("Enter The Total Capacity Of Each Hall:");

hall_cap=x.nextInt();

total_cap_of_halls= total_cap_of_halls+hall_cap;
}
System.out.println("Total Capacity of All Halls:"+total_cap_of_halls);
}

void display_frst_fifth_char(){
Scanner x=new Scanner(System.in);
char frst=uni_name.charAt(0);
char fifth=uni_name.charAt(4);
System.out.println("First Character is:"+frst);
System.out.println("Fifth Character is:"+fifth);
}

void char_compare(){
Scanner x=new Scanner(System.in);
char c1;
char c2;
System.out.println("Enter First Char :");
String s=x.next();
c1=s.charAt(0);

System.out.println("Enter Second Char :");
s=x.next();
c2=s.charAt(0);

char frst=uni_name.charAt(0);

if(c1==frst)
System.out.println("First Char is matched:");
if(c2==frst)
System.out.println("Second Char is matched:");

}

void output(){
System.out.println("University Name:"+uni_name);
System.out.println("Convocation ID:"+conv_id);
System.out.println("Number Of student:"+no_of_students);
System.out.println("Number Of Halls:"+no_of_halls);
System.out.println("Convocation Type:"+conv_type);
System.out.println("Convocation Cost:"+conv_cost);
System.out.println("Tax:"+Tax);


}
}




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
4377 Bills 20-May-2020 04:26:40 PM
4376 xk 18-May-2020 12:17:09 AM
4375 jamshed 12-May-2020 04:32:56 PM
4374 Saad 07-May-2020 11:58:32 PM
4373 Furqan 06-May-2020 06:13:59 PM
4372 Cyanide 06-May-2020 01:41:09 PM
4371 setprecison 03-May-2020 05:50:29 PM
4370 globalloacal 03-May-2020 05:50:07 PM
4369 zain 03-May-2020 05:49:14 PM
4368 sfr 27-Apr-2020 01:07:48 AM
4367 za 26-Apr-2020 02:17:14 PM
4366 shahbaz 20-Apr-2020 03:05:16 PM
4365 resoultion 13-Apr-2020 02:50:16 AM
4364 Mac command 13-Apr-2020 02:47:04 AM
4363 test 05-Apr-2020 01:29:07 AM
4362 a 24-Mar-2020 11:44:12 AM
4361 Checkout 23-Mar-2020 03:15:04 PM
4360 Maleeha 14-Mar-2020 09:45:42 AM
4359 OOP-CIT 11-Mar-2020 04:51:40 PM
4358 mansoor 10-Mar-2020 03:59:44 PM
4355 cc 02-Mar-2020 06:52:22 PM
4354 B 02-Mar-2020 06:04:56 PM
4353 A 02-Mar-2020 06:04:20 PM
4352 kiyani 26-Feb-2020 08:37:50 PM
4351 nouman 23-Feb-2020 12:22:48 PM
4350 Txttttt 22-Feb-2020 09:05:06 PM
4349 ososos 04-Feb-2020 09:41:21 PM
4348 Winters 25-Jan-2020 12:25:20 PM
4347 Winters 24-Jan-2020 04:26:44 PM
4346 Mansoor 22-Jan-2020 12:03:07 PM

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 [Next] [Last]
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com