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

Q: Write a program which defines three integer variables, var1, var2 and var3, & initializing them to the values 100, 200 & 300, it then prints out their addresses.



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.


 15. Write a program to find the count of non-repeating characters.


Write a java program that accepts given n number of marks for a PRG510S test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following: 

[- 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)

 


 14. For the given number ‘n’ (0 <n<= 100), little johnny wants to find out the minimum positive integer X divisible by ‘n’, where the sum of digits of X is equal to ‘n’ and X is not equal to 'n'. 

Note: If such an 'X number does not exist, then the output should be - 1.


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:

  1. Length         Width           Area
  2. --------          --------         -------
  3. 25               2.6              65.00
  4. 18.2             4.9              89.18

For the given number ‘n’ (0 <n<= 100), little johnny wants to find out the minimum positive integer X divisible by ‘n’, where the sum of digits of X is equal to ‘n’ and X is not equal to 'n'. 

Note: If such an 'X number does not exist, then the output should be - 1.

  


Find the output based on input, the sum of digits of output is equal to input and divisible by input.- Link

 


You are given N as input. Write a program to print the pattern of 2*N - 1 rows using an asterisk(*) as shown below. Note: There is a space after each asterisk * character.

Q: Create a function “square”, which calculate and displays square of any number entered through the keyboard.  

LATEST TUTORIALS
APPROVED BY CLIENTS