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
4278 check 11-Nov-2019 09:36:22 AM
4277 Alaska 11-Nov-2019 01:54:08 AM
4276 Ps 09-Nov-2019 12:00:39 PM
4275 Ps 09-Nov-2019 11:57:50 AM
4274 Ahmed 09-Nov-2019 10:12:24 AM
4273 dsp new 08-Nov-2019 10:20:35 AM
4272 dsp 08-Nov-2019 10:08:23 AM
4271 dspsss 08-Nov-2019 10:08:03 AM
4270 SKU 06-Nov-2019 02:39:21 PM
4269 ibrahim 06-Nov-2019 12:01:49 PM
4268 ibrahim 06-Nov-2019 12:01:29 PM
4267 ibrahim 06-Nov-2019 12:01:06 PM
4266 ibrahim 06-Nov-2019 12:00:46 PM
4265 ibrahim 06-Nov-2019 12:00:29 PM
4264 ibrahim 06-Nov-2019 12:00:11 PM
4263 ibrahim 06-Nov-2019 11:59:50 AM
4262 sir g link a 06-Nov-2019 10:36:54 AM
4261 Grade_Func 04-Nov-2019 03:01:55 PM
4260 Grade_Query 04-Nov-2019 02:35:05 PM
4259 mysql conn 04-Nov-2019 12:44:32 PM
4258 xml file 04-Nov-2019 12:37:37 PM
4257 fazhhh 04-Nov-2019 11:55:34 AM
4256 usman 03-Nov-2019 11:29:24 AM
4255 CUBING 02-Nov-2019 11:32:03 PM
4254 ppaer 01-Nov-2019 11:53:36 AM
4253 paper 01-Nov-2019 11:53:13 AM
4252 fiverr 31-Oct-2019 09:28:37 PM
4251 zaid 30-Oct-2019 12:03:45 PM
4250 shoaib 30-Oct-2019 10:02:49 AM
4249 cm 28-Oct-2019 10:13:32 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