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

Write a program that accepts dates written in numerical form and then output them as a complete form. For example, the input:

DESIGN, ANALYSE AND CODE any method for the GENERIC MyLinkedList class that will manipulate the linked list. You can decide yourself what it should be following the specification below:

1. Purpose: The method must make logical sense – it should be of some purpose to somebody.

You should describe in the text who will use the method for which purpose.

2. Clearly explain the problem


Draw a flowchart to assign seats for a commercial airplane. The airplane has 13 rows, with 6 seats in each row. Rows 1 and 2 are first class, rows 3 to 7 are business class, and rows 8 to 13 are economy class. Your flowchart should have the following information:

a.     Ticket type (first class, business class, or economy class)

b.    Desired seat



The object’s creation may lead to a significant duplication of code, may require information not accessible to the composing object, may not provide a sufficient level of abstraction, or may otherwise not be part of the composing object’s concerns. The factory method design pattern handles these problems by defining a separate method for creating the objects, which subclasses can then override to specify the derived type of product that will be created. The factory method pattern relies on inheritance, as object creation is delegated to subclasses that implement the factory method to create objects.

Elves and Orcs are at war. They have various weapons that they use to fight, such as short swords, spears, and axes. We, the blacksmith in this world, need to ensure the manufactoring of these weapons. Remember that there are blacksmiths on both sides. But we don’t want to create all weapons as separate objects. That’s why we need a more effective method. Build your system using the factory method pattern.


Create a class name movie, which describes a movie you can buy at an online movie store. The Movie class has three fields


Create a java program that initialize a two dimensional array with the continuous assessment marks used to determine the semester mark for PRG510S exam qualification, The system should also create an array of student names in correspondence to the marks (Note: the appropriate weights of each individual assessment are given under corresponding headings and both the marks and student names are read from the user input).


Complete the class Traveller as per the below requirement


**class Traveller**



Define the following properties. properties should be private:


 -id : int 
 -travelType : String 
 -price : double
 -locations : String


- Define Getters and setters for all properties 


- Define parameterized constructor



-- Create TravelProcess class and define ArrayList of 10 Travellers



Use Switch case and Perform the below Operatios


case-1 add new Traveller with the list
case-2 Display all the traveller details
case-3 Search for a specific traveller and display if found
case-4 Exit

. Write a java program that specifies three parallel one dimensional arrays name length, width, and area. Each array should be capable of holding a number elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values in the length and width arrays (thus, area[i] = length [i]* width [i]) after data has been entered display the following output:

Length Width Area

-------- -------- -------

25 2.6 65.00

18.2 4.9 89.18

Sample Run1 Enter the array size: 5

Enter the Length and Width for Rectangle 1: 25 2.6

Enter the Length and Width for Rectangle 2: 18 4.9

Enter the Length and Width for Rectangle 3: 100 3.27

Enter the Length and Width for Rectangle 4: 1.84 7.4

Enter the Length and Width for Rectangle 5: 56 9.5 Output1:

Length Width Area

-------- -------- -------

25 2.6 65.00

18.2 4.9 89.18

100 3.27 327.00

1.84 7.4 13.62

56 9.5 532.00


2.   Create a java program that initialize a two dimensional array with the continuous assessment marks used to determine the semester mark for PRG510S exam qualification, The system should also create an array of student names in correspondence to the marks (Note: the appropriate weights of each individual assessment are given under corresponding headings and both the marks and student names are read from the user input).

   

test1

 

(Weight 20%)

test2

 

(Weight 20%)

labs

 

(Weight 20%)

in_class

exercise

(Weight 10%)

assignment

 

(Weight 30%)

John

50

60

79

89

63

Harry

41

52

68

56

40

Uushona

30

20

52

38

47

Sililo

23

33

45

19

27

                                                                                                          

Enter class size:

Given a number N, create a 2D arrays with n rows and n columns. Now inspect the matrix pattern below and come up with a formula to populate the array for any give NXN matrix.

Sample Run1 Enter a number (N): 5 Output1:

5 4 3 2 1

10 8 6 4 2

15 12 9 6 3

20 16 12 8 4

25 20 15 10 5

Sample Run2 Enter a number (N): 3 Output2:

3 2 1

6 4 2

9 6 3


LATEST TUTORIALS
APPROVED BY CLIENTS