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

What is the value of marks[2][3] in the following array ? AND why?
int [][] marks = { {88, 80, 79, 92}, {75, 84, 93, 80},{98, 95, 92, 94},{91, 84, 88, 96} };
Write a static method that accepts an array of LineSegments and returns the longest of the line segments. If the array is null, or empty, return null.

(Your answer to this should be a single method. No need to write a whole class.)
Create a program that satisfy the following requirements:
1. Ask user to enter integer numbers, one at a time.
2. If the number is -1, stop entering number.
3. Print out the total number that is greater than 18.


For example:
The following is screen shot when user enters the sentence “computer science is great”.

enter an integer:
13
enter an integer:
2
enter an integer:
21
enter an integer:
40
enter an integer:
-1
Total number that is greater than 18: 2
1a.Implement maketree, setleft, and setright for right in-threaded binary trees using the sequential array representation. 1b. Implement inorder traversal for this right in-thread tree.
Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it. For example, 4 factorial is 4 * 3 * 2 * 1, or 24. The output would then be The factorial of 4 is 24.
A genetic engineer is in need of a program to generate all the
Write a program that implements the student class. The student objects will have name, age, average and town of residence. The program will create an array of at least 5 student class objects and offer the following options to the user.

1. print the information of a particular student as the user enters the student's name

2.Print the names of all students that have an average greater than a value that the user entered

3.Print the name of all students for a specific town that the user indicates
Using Java Fx and OOPS concepts code the Assignment 2 in Java FX. Style the 3 scenes in this app using separate stylesheets.
The application Pizzashop will have all the choices for regular and feast pizza.
1. In the first scene, ask name, type (radiobutton) and size of pizza (radiobutton) and let the user add toppings (CheckBox, check for max toppings for each of the pizza )Show a logo on top left corner with all the title for your shop.
2. Once the user clicks a button in scene1, it takes him to scene 2 where the user sees his order details and a choice to choose his payment.(use radiobutton here). Once the user clicks a payment button in scene 2, it takes him to scene 3.

3. In scene 3, For debit and credit payment show a hyperlink window which takes the user to the respective payment sites, ex interac for debit., paypal for credit. and an image of cash for cash option.
write a program that asks for the % averages for labs, midterm, final, the project, etc, and calculates the final grade.

Activity Weight
Labs 20 %
Reading Quizzes 10 %
Video Grading 10 %
Midterm 20 %
Project 15 %
Final 20 %
Instructor Discretion 5 %

Enter Labs average in percent: 90
Enter Reading average in percent: 75
Enter Video average in percent: 100
Enter Midterm average in percent: 83
Enter Project average in percent: 95
Enter Final average in percent: 80
Enter Instructor Discretion average in percent: 100
Your average is 87.35%
Text messaging is a popular means of communication. Many abbreviations are in common use but are not appropriate for formal communication. Suppose the abbreviations are stored, one to a line, in a text file named abbreviations.txt. For example, the file might contain these three lines:

lol
:)
Iirc
4
u
ttfn

Write a program that will read a message from another text file and surround each occurrence of an abbreviation with <> brackets. Write the marked message to a new text file.

For example, the message to be scanned is

How are u today? Iirc, this is your first free day. Hope you are having fun! :)

the new text file should contain

How are <u> today? <Iirc>, this is your first free day. Hope you are having fun! <:)>
LATEST TUTORIALS
APPROVED BY CLIENTS