for example:

user name should be in lowercase and max & min characters.

password should be in lowercase,uppercase,number and at lest one special character.

]]>

]]>

{

student s22;

fstream out;

out.open(“ABC.txt”,ios::in);

while(!out.eof())

{

out.read((char *)&s22,sizeof(s22));

cout<<s22.roll_no<<“\t”<<s22.name<<“\t\t”<<s22.marks<<“\t”<<endl;

}

}

When I try to read object from file using read function in C++ then it return last record 2 times.

Output like this:

11 Ram 70

12 Mohan 80

12 Mohan 80

Please help me to solve this

]]>result

jumlah 1 = 77*

jumlah 2 = 01*

jumlah 3 = 66*22*99*

jumlah 4 = 45*

jumlah 5 =

jumlah 6 =

jumlah 7 =

jumlah 8 = 57*

jumlah 9 =

jumlah 10 =

jumlah 11 =

jumlah 12 = 34*

class TestArithmetic {

public static void main (String[] args){

Scanner console= new Scanner (System.in);

** **

** System**.out.println(“Enter first number”);

**int** x1 = console.nextInt();

** System**.out.println(“Enter second number”);

**int** x2 = console.nextInt();

** System**.out.println(“Enter third number”);

**int** x3 = console.nextInt();

System.out.println(“x1=”+x1);

System.out.println(“x2=”+x2);

System.out.println(“x3=”+x3);

** Arithmetic **ar = new Arithmetic();

int answer1=ar.sum(x1,x2);

int answer2=ar.sum(x1,x2,x3);

int answer3=ar.substract(x1,x2);

double answer4=ar.divide(x1,x2);

int answer5=ar.modulas(x2,x3);

int answer6=ar.multiply(x2, x3);

int answer7= ar.largest(x1, x2, x3);

boolean evenNumber1= ar.isEvenNumber(x2);

boolean evenNumber2= ar.isEvenNumber(x3);

System.out.println(“Sum of x1 and x2 is “+answer1);

System.out.println(“Sum of x1, x2, x3 is “+answer2);

System.out.println(“Subtraction of x1 and x2 is “+answer3);

System.out.println(“Division of x1 and x2 is “+answer4);

System.out.println(“Modulas division of x2 and x3 is “+answer5);

System.out.println(“Multiplication of x2 and x3 is “+answer6);

System.out.println(“Largest value among x1, x2 and x3 is “+answer7);

if (evenNumber1)

System.out.println(“x2 is an even number”);

else

System.out.println(“x2 is an odd number”);

if (evenNumber2)

System.out.println(“x3 is an even number”);

else

System.out.println(“x3 is an odd number”);

}

}

]]>And how to show time in 12 hours am or pm when retrieving data from server.

respond as quickly as possible thanks in advance.

]]>1) child node will inherit key-value pair from its parent.

2) child node can override key-value pair at parent by creating a replica. You have to print the flattened key-values pairs at given node say m. 1 <= m <= n Given a key value pair , print all nodes that satisfies this condition.

Example Input: n = 5 , m= C

A [ (name : abc), (id:5), (place:Tirupati) ]

/ B [ (id : 24), ( name : efg) ]

/ \ [(name : xyz) ] C D [(place : Bangalore)]

/ E

Output: [(name: xyz), (id:24), (place : Tirupati)]

]]>```
Account_No D_CD
A1 123
A1 246
A1 XYZ
A1 100
A1 234
A2 123
A2 XYZ
A3 XYZ
A3 246
A3 100
```

I would like a query that can transform the above data to the below format.

```
D-CD1 D_CD2 CPD
123 246
123 XYZ
123 100
123 234
XYZ 123
XYZ 246
XYZ 100
```

FInally I want to perform count operation on each D_CD combination, the count computation should compute count of common account numbers in each D_CD combination. Any help on this topic will be greatly appreciated.

]]>