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

Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in C, shall we?



Input



Two lines containing a string on each.



Cody



Handsome



Output



Multiple lines containing a string on each.



Cody



Handsome

Write a Java program to create a new string taking first and last characters from two given strings. If the length of either string is 0 use "#" for missing character.


Write a Java program that creates an Array of string values and displays the duplicate values.


Write a Java program that prompts the user to input numbers in two matrices of the same size and compute the sum of the matrices


Write a java program that creates an array of 10 elements size. Your program should prompt the user to input numbers in array and then display the sum of all array elements


Develop a Java GUI application that will display the ink cartridge usage of three different printers with a time span of three years.


Q.1.1 On the form, create two combo boxes, to allow a user to select between three different printers and years. When a user has selected a printer and year and clicked the submit button, display the amount of ink cartridges used for that year. Use the following table for the printers and yearly cartridges used: 2018 2019 2020 HP Deskjet 650 10 35 20 Epson K750 15 22 12 Canon Z100 30 31 33


Q.1.2 You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tool’s menu, allow the form submission and an option to display the yearly ink cartridges used for each printer. The layout of the form is left to your discretion.


Q.1.3 The application must display a report of each printer and the total ink cartridge used for the three different years.


Write a program to read and write an object to file.

Tic-Tac-Toe game Abhinav and Anjali are playing the Tic-Tac-Toe game. Tic-Tac-Toe is a game played on a grid that's three squares by three squares. Abhinav is O, and Anjali is X. Players take turns putting their marks in empty squares. The first player to get 3 of her marks in a diagonal or horizontal, or vertical row is the winner. When all nine squares are complete, the game is over. If no player has three marks in a row, the game ends in a tie. Write a program to decide the winner in the Tic-Tac-Toe game. Input The input will be three lines contain O's and X's separated by space. Output The output should be a single line containing either "Abhinav Wins" or "Anjali Wins" or "Tie". Explanation For example, if the input is O X O O X X O O X as three of O's are in vertical row print "Abhinav Wins". Sample Input 1 O X O O X X O O X Sample Output 1 Abhinav Wins Sample Input 2 O O X X X O X O O Sample Output 2 Anjali Wins i want exact sample outputs sir

Using the above code add a method that takes in three arrays, one for student names, one for final test marks and a last one for assignment mark. The method should then calculate the students qualifying mark (a student needs 50 or more to qualify) using the following weights: 40% of the test and 60% of the assignment, finally print out whether the person qualified or not.

Name Test  Assignment  Final Examination


King   59     85             75    Allowed

John 52    45              48    Denied

Sample Test 1:

Enter the total number of students:

3

Enter name:

koko

Enter name:

jojo

Enter name:

momo

Enter mark for Test 1:

78

Enter mark for Test 2:

65

Enter mark for Test 3:

70

Enter mark for Test 1:

55

Enter mark for Test 2:

56

Enter mark for Test 3:

89

Enter mark for Test 1:

45

Enter mark for Test 2:

25

Enter mark for Test 3:

38

Enter assignment Mark:

66

Enter assignment Mark:

86

Enter assignment Mark:

70

Name Test01 Test02 Test03 Final


koko  78    65    70    71

jojo   55    56    89    67

momo 45    25    38    36



Complete the array representing the buckets for a bucket sort for the following array. This is done using Integers and the key is the value. The value that you have to enter is the amount of elements in each list. An empty list will have a value of 0. A list with 3 elements will have a value of 3.



4 3 6 4 3 4 5 6 3 5 6 5




0 1 2 3 4 5 6 7 8 9


Blank 1. Fill in the blank, read surrounding text.


Blank 2. Fill in the blank, read surrounding text.


Blank 3. Fill in the blank, read surrounding text.


Blank 4. Fill in the blank, read surrounding text.


Blank 5. Fill in the blank, read surrounding text.


Blank 6. Fill in the blank, read surrounding text.


Blank 7. Fill in the blank, read surrounding text.


Blank 8. Fill in the blank, read surrounding text.


Blank 9. Fill in the blank, read surrounding text.


Blank 10. Fill in the blank, read surrounding text.


LATEST TUTORIALS
APPROVED BY CLIENTS