PROCEDURE palindrome(s varchar) is begin FOR i IN REVERSE 1..Length(s) LOOP l := Substr(s, i, 1); . . . . . . . . . . . . . . . . VOTE UP THE ANSWER! TAP ON ATTACHMENT FOR ANSWER:
public class Main { public static void main(String[] args) { int a[]={2,3,5}; System.out.println(sumOfElementsWrtIndices(a)); } public static int sumOfElementsWrtIndices(int[] a) { int s=0; for(int i=0;i<a.length;i++) s+=(Math.pow(a[i], i)); return s; } }
public class Main {
public static void main(String[] args) {
int a[]={2,3,5};
System.out.println(sumOfElementsWrtIndices(a));
}
public static int sumOfElementsWrtIndices(int[] a) {
int s=0;
for(int i=0;i<a.length;i++)
s+=(Math.pow(a[i], i));
return s;
}
}
CREATE OR REPLACE PACKAGE EMP AS PROCEDURE find_dept(e_dept employee.dept%type); END EMP; . . . . . . . . . . . . . . . . . SHOW SOME SUPPORT FRIENDS VOTE UP THE ANSWER THE FULL ANSWER IS IN THE ATTACHMENT JUST TAP ON IT:
CREATE OR REPLACE PACKAGE EMP AS
PROCEDURE find_dept(e_dept employee.dept%type);
END EMP;
. . . . . . . . . . . . . . . . .
SHOW SOME SUPPORT FRIENDS VOTE UP THE ANSWER
THE FULL ANSWER IS IN THE ATTACHMENT JUST TAP ON IT:
Write a program to read and write an object to file. in JAVA
https://sikshapath.in/question/write-a-program-to-read-and-write-an-object-to-file-2/
Create a package which contains a procedure to accept a text and to check whether it is palindrome or not.
PROCEDURE palindrome(s varchar) is begin FOR i IN REVERSE 1..Length(s) LOOP l := Substr(s, i, 1); . . . . . . . . . . . . . . . . VOTE UP THE ANSWER! TAP ON ATTACHMENT FOR ANSWER:
PROCEDURE palindrome(s varchar)
is
begin
FOR i IN REVERSE 1..Length(s) LOOP
l := Substr(s, i, 1);
. . . . . . . . . . . . . . . .
VOTE UP THE ANSWER!
TAP ON ATTACHMENT FOR ANSWER:
See lessSolve the below problem as soon as possible
CREATE OR REPLACE PACKAGE stu AS PROCEDURE stu_info(s_id student.id%type); END stu; . . . . . . . . . . THE ANSWER IS IN THE ATTACHMENT TAP ON IT:
CREATE OR REPLACE PACKAGE stu AS
PROCEDURE stu_info(s_id student.id%type);
END stu;
. . . . . . . . . .
THE ANSWER IS IN THE ATTACHMENT TAP ON IT:
See lessGiven array of intergers,print the sum of elements sqaring/cubing as per the power of their indices. eg:input:{2,3,5} Output:29
public class Main { public static void main(String[] args) { int a[]={2,3,5}; System.out.println(sumOfElementsWrtIndices(a)); } public static int sumOfElementsWrtIndices(int[] a) { int s=0; for(int i=0;i<a.length;i++) s+=(Math.pow(a[i], i)); return s; } }
The main procedure can be called from nested subprogram.
false
false
See lessCreate a procedure in PLSQL to display the count of employees having department as “Marketing”. (Table needs to be created as per requirement of the question.) Note: Paste the code for table creation also along with the procedure code.
CREATE OR REPLACE PACKAGE EMP AS PROCEDURE find_dept(e_dept employee.dept%type); END EMP; . . . . . . . . . . . . . . . . . SHOW SOME SUPPORT FRIENDS VOTE UP THE ANSWER THE FULL ANSWER IS IN THE ATTACHMENT JUST TAP ON IT:
CREATE OR REPLACE PACKAGE EMP AS
PROCEDURE find_dept(e_dept employee.dept%type);
END EMP;
. . . . . . . . . . . . . . . . .
SHOW SOME SUPPORT FRIENDS VOTE UP THE ANSWER
THE FULL ANSWER IS IN THE ATTACHMENT JUST TAP ON IT:
See less