Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Given a square maze (A) of dimension N, every entry (Aij) in the maze is either an open cell 'O' or a wall 'X'. A rat can travel to its adjacent locations (left, right, top and bottom), but to reach a cell, it must be open. Given the locations of R rats, can you find out whether all the rats can reach others or not.
You are given a square matrix of dimension N. Let this matrix be called A. Your task is to rotate A in clockwise direction byS degrees, where S is angle of rotation. On the matrix, there will be 3 types of operations viz.
1. Rotation
Rotate the matrix A by angle S, presented as input in form of A S
2. Querying
Query the element at row K and column L, presented as input in form of Q K L
3. Updation
Update the element at row X and column Y with value Z, presented as input in form of U X Y Z
Print the output of individual operations as depicted in Output Specification
In the Byteland country a string "S" is said to super ascii string if and only if count of each character in the string is equal to its ascii value.
In the Byteland country ascii code of 'a' is 1, 'b' is 2 ...'z' is 26.
Your task is to find out whether the given string is a super ascii string or not.
I would like to create a simple controller which connects to the database of specific regions based on the user inputs. User selects a db and its region from another drop down. Eg. MyOracleDB, region: UAT.
And also enters a query. My controller should run that query in that selected database of selected version and give me the result.
Create array function. Creating photo viewer

validNumbers(startNumber, endNumber) - This function will return true if startNumber is less than or equal to endNumber, and false otherwise
createArray(startNumber, endNumber) - This function will create and return an array with a size that corresponds to the parameter values provided. For example, calling createArray(3, 7) returns an array with 5 elements. The array will have no values assigned to it
loadPhotos() - This function will be called when the "Load Photos" button is selected. The function will read the folder's name,common's name, start photo number, and end photo number and initialize the photosArrayGlobal array with the names of photos that belong to the specified number range. The first photo in the range will be displayed and the "Photo Being Displayed" text field will display the full name of the photo.
Represent a point in time by using an i nt to store the number of seconds since January 1,1970.

When will programs that use this representation face a time bomb? How should you proceed

when that happens?
1. Represent a point in time by using an int to store the number of seconds
since January 1,1970. When will programs that use this representation face a time
bomb? How should you proceed when that happens?


2. Time. Develop a data type for the time of day.Provide client methods that
return the current hour, minute, and second, as well as to String() and compare To() methods. Develop two implementations: one that keeps the time as a single
int value (number of seconds since midnight) and another that keeps three int
values, one each for seconds, minutes, and hours.
1. Represent a point in time by using an int to store the number of seconds
since January 1,1970. When will programs that use this representation face a time
bomb? How should you proceed when that happens?


2. Time. Develop a data type for the time of day.Provide client methods that
return the current hour, minute, and second, as well as to String() and compare To() methods. Develop two implementations: one that keeps the time as a single
int value (number of seconds since midnight) and another that keeps three int
values, one each for seconds, minutes, and hours.
1. Represent a point in time by using an int to store the number of seconds
since January 1,1970. When will programs that use this representation face a time
bomb? How should you proceed when that happens?


2. Time. Develop a data type for the time of day.Provide client methods that
return the current hour, minute, and second, as well as to String() and compare To() methods. Develop two implementations: one that keeps the time as a single
int value (number of seconds since midnight) and another that keeps three int
values, one each for seconds, minutes, and hours.
I need help debugging this program for calculating a persons tip:

public class calculatetip
{
public static void main(String[] args)
{
double mycheck = 29.95, yourcheck = 39.95, mytip, yourtip;
System.out.println("Tips are");
calctip(double mycheck);
System.out.printf("My tip should be at least %.2f\n", tip);
calctip(double yourcheck);
System.out.printf("Your tip should be at least %.2f\n", tip);
}

public static void calctip()
{
double tip;
tip = bill * .20;
return tip;
}
}
LATEST TUTORIALS
APPROVED BY CLIENTS