Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

. 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.


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)

Output1: Student Semester mark Qualifies for Exam? --------- ------------------- ----------------------- John 66 YES Harry 50 YES Uushona 38 NO Sililo 30 NO Qualifying mark is 50 and above.


Write a java program that accepts given n number of marks for a PRG510 test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following: [n - to be provided by user input] a) Find and display the highest mark b) Find and display the lowest mark c) Compute and display the average mark (Above tasks (a, b, and c should be accomplished using only one loop)  

Sample Run1 Enter numbers of marks:

10 Enter 10 marks: 55 60 89 75 25 77 92 15 68 40 

Output1:

Highest Mark = 92%

Lowest Mark =

15% Average = 58%


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


: Write a program which inputs a positive integer n and outputs an n line high triangle of '*' characters whose right-angle is in the bottom left corner


Consider an array MARKS[20][5] which stores the marks obtained by 20 students in 5 subjects. Now write a program to

(a) find the average marks obtained in each subject.

(b) find the average marks obtained by every student.

(c) find the number of students who have scored below 50 in their average.

(d) display the scores obtained by every student.


Write a program which inputs a positive integer n and outputs an n line high triangle of '*' characters whose right-angle is in the bottom left corner. For example, if 5 is input the output should be


Using a loop structure, write a Java program called Shape to create the pattern below:
******
*****
****
***
**
*

Your goal is to ask for the total bill and the amount that the user gave as a tip and determine based on a set of criteria whether that tip was a good amount.Create an algorithm, pseudocode and flowchart for this problem Code the solution for this problem prompt the user for the total bill amount.Prompt the user for the tip that they left Use the following equation to calculate the tip percentage: tip amount/total bill.Based on the tip percentage that was calculated, determine a message to display that will tell the user how good their tip was. Criteria: Tip less then 0 or greater than 1Tip is between 0 (including 0) and 0.05 (including 0.05)Tip is between 0.05 (not including 0.05) and 0.1 (including 0.1) Tip is between 0.1 (not including 0.1) and 0.2 (including 0.2) Tip is between 0.2 (not including 0.2) and 0.3 (including 0.30) Tip is greater than 0.3 Display the tip percentage that the user left along with a message as to how they rank as a tipper in an output box.



Using a for loop create a program that will prompts the user for two numbers and then print out a list of even number in between the two given numbers(inclusive), starting from the small number to the big number
LATEST TUTORIALS
APPROVED BY CLIENTS