1) insert into employee values('P129799311','Nohara Hiroshi',367000,'Kasukabe Defence Force'); 2) update employer set salary=65000 where employer_name='Isaac Netero'; 3) select * from employee where salary>75000 or salary between 30000 and 40000; 4) select avg(salary),count(national_id) from emplRead more
1) insert into employee values(‘P129799311′,’Nohara Hiroshi’,367000,’Kasukabe Defence Force’);
2) update employer set salary=65000 where employer_name=’Isaac Netero’;
3) select * from employee where salary>75000 or salary between 30000 and 40000;
4) select avg(salary),count(national_id) from employee;
5) select employer_name,salary*0.05 from employer;
package com.company; //BCity is a public subclass of City public class BCity extends City{ //bRList is a variable of type ArrayList and is initialied with an empty list List<String> bRlist = new ArrayList<>(); //The constructor has 3 arguments as mentioned BCity(String cN, int cP, StringRead more
package com.company;
//BCity is a public subclass of City
public class BCity extends City{
//bRList is a variable of type ArrayList and is initialied with an empty list
List<String> bRlist = new ArrayList<>();
//The constructor has 3 arguments as mentioned
BCity(String cN, int cP, String[] rules){
//super keyword calls the parent constructor with the input arguments
super(cN, cP);
this.bRlist = Arrays.asList(rules);
}
//hasRules has returnType of int and accepts an input parameter of type String
public int hasRules(String rule){
int flag = -1;
//loop over brList
for (int i = 0; i< this.bRlist.size(); i++) {
//whenever the element matches assign the value of flag and break the loop
if(this.bRlist.get(i) == rule){
flag = i;
break;
}
}
//return the value of flag
return flag;
}
//dispRList has returnType of void and donot have any input parameters
public void dispRList(){
//this will display the city and population value
System.out.println("City "+ this.cN + "Pop "+ this.cP);
//loop over bRList to display as mentioned
for(String rule: this.bRlist){
System.out.println(rule);
}
}
}
A. 13 km/hr Explanation: Given: Upstream speed = 14 km/hr Downstream speed = 40 km/hr so, If speed of stream is y km/hr and speed of boat is x km/hr then Upstream speed = (x - y) km/hr and downstream speed = (x + y) km/hr Calculation: x + y = 40 ---- (i) and x - y = 14 ---- (ii) ∴Read more
A. 13 km/hr
Explanation:
Given:
Upstream speed = 14 km/hr
Downstream speed = 40 km/hr
so,
If speed of stream is y km/hr and speed of boat is x km/hr
then Upstream speed = (x – y) km/hr and downstream speed = (x + y) km/hr
Calculation:
x + y = 40 —- (i)
and x – y = 14 —- (ii)
∴ x = 27 km/hr ——— { after solving eq (i) and eq(ii)}
There are three relations in the following schema for the company: 1. EMPLOYEE (National_ID, Employee_Name, Salary, Service_Unit), 2. EMPLOYER (National_ID, …
1) insert into employee values('P129799311','Nohara Hiroshi',367000,'Kasukabe Defence Force'); 2) update employer set salary=65000 where employer_name='Isaac Netero'; 3) select * from employee where salary>75000 or salary between 30000 and 40000; 4) select avg(salary),count(national_id) from emplRead more
1) insert into employee values(‘P129799311′,’Nohara Hiroshi’,367000,’Kasukabe Defence Force’);
2) update employer set salary=65000 where employer_name=’Isaac Netero’;
3) select * from employee where salary>75000 or salary between 30000 and 40000;
4) select avg(salary),count(national_id) from employee;
5) select employer_name,salary*0.05 from employer;
6) select * from employee order by salary;
CREATE TABLES BY YOUR OWN
See lessGiven reference, useful methods for accessing Java class ArrayList: add (elt): Add element to the end of the list, e.g. …
package com.company; //BCity is a public subclass of City public class BCity extends City{ //bRList is a variable of type ArrayList and is initialied with an empty list List<String> bRlist = new ArrayList<>(); //The constructor has 3 arguments as mentioned BCity(String cN, int cP, StringRead more
If a boat is moving in upstream with velocity of 14 km/hr and goes downstream with a velocity of 40 …
A. 13 km/hr Explanation: Given: Upstream speed = 14 km/hr Downstream speed = 40 km/hr so, If speed of stream is y km/hr and speed of boat is x km/hr then Upstream speed = (x - y) km/hr and downstream speed = (x + y) km/hr Calculation: x + y = 40 ---- (i) and x - y = 14 ---- (ii) ∴Read more
A. 13 km/hr
Explanation:
Given:
Upstream speed = 14 km/hr
Downstream speed = 40 km/hr
so,
If speed of stream is y km/hr and speed of boat is x km/hr
then Upstream speed = (x – y) km/hr and downstream speed = (x + y) km/hr
Calculation:
x + y = 40 —- (i)
and x – y = 14 —- (ii)
∴ x = 27 km/hr ——— { after solving eq (i) and eq(ii)}
∴ y = speed of stream = 40 – 27 = 13 km/hr
See less_______________________ is the process of identifying an individual, usually based ona username and password. A. Authentication B. Authorization C. integrity D. crytography
A. Authentication
A. Authentication
See lessFirewalls are used to protect against A. Virus Attacks B. Fire Attacks C. Data Driven Attacks D. Unauthorized Attacks
D. Unauthorized Attacks
D. Unauthorized Attacks
See lessThe secret key between members needs to be created as a ________key when two members contact KDC. A. public B. session C. complimentary …
B. session
B. session
See less