Answer:
public class print{
public static void fillArray(int[] arr, int initialValue){
int n = arr.length;
for(int i=0;i<n;i++){
arr[i] = initialValue++;
}
for(int i=0;i<n;i++){
System.out.print(arr[i]+" ");
}
}
public static void main(String []args){
int[] array = new int[5];
int initialValue =3;
fillArray(array,initialValue);
}
}
Explanation:
Create the function with two parameter first is array and second is integer.
Then, declare the variable and store the size of array.
Take the for and fill the array from the incremented value of initialValue by 1 at every run of loop.
After loop, print the element of the array.
Create the main function which is used for calling the function and also declare the array with size 5 and initialValue with 3. After that, call the function with this argument.
Answer:
Solved. Please download the attached zipped file. You can download the answers from the given link in explanation section
Explanation:
Download the attached file and unzipped/extract it to the root folder of your server.
This package contains all the files and folders as asked in the project.
In this package you can find the 5 pages in the includes folder and at the root you can find the index file. Click on the index file to open it.
Each page is stylized and have uniqueness than other pages. Please also note that, each page contains first, last and initial name in the title section of each page and in body section of each page. You can modify these names parameter according to your name/requirement
https://drive.google.com/file/d/1OBdjUI6JOnUuji-iYPmPWnJBk4gcMd6X/view?usp=sharing
Answer:
SELECT StudentFullname FROM Studentdata INNER JOIN Student_Class ON Studentdata.uniqueno = Student_Class.student_id LEFT JOIN Student_Instructor ON Student_Class.instructor_id = Student_Instructor.id WHERE Student_Instructor.faculty <> 'Computer Science'
Explanation:
Assume the following table names;
Studentdata - for student table
Student_Class - for each class
Student_Instructor - for student's instructors
The code first list out StudentFullname from studentdata table.
The code is the connected to Student_Class to get a list of students in class
The code is then connected to Student_Instructor table to get a list of instructors in class
Lastly, the where then filters instructors that are not from computer science department