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

Your task is to design Dynamic Array (Class).
What is Dynamic Array?
Which can grow and shrink at run time.
Your class should work for one and two dimensional Arrays
The class should enable the user to perform the following tasks:
1) Create a dynamic array of size specified by the user. Use an integer to keep track of the
size
2) Ask the user for numbers to insert until the user presses -1. Insert each value in the array.
Create a new larger array when the array is full, copy all data to the new array, and release
the memory for the old array. Print the array after each insert.
3) Ask the user for any numbers to delete until the user presses -1. Find the index of the
entered value in the original array and then remove that index from the original array.
Stop when the array is empty or when the user presses -1. Keep on reducing the array size
and print the array after each removal.
4) Make sure to release any allocated memory not yet released.
Using the main functions. Create a program that takes in a student name, their home town and student number then print out the following message:
Sample run 1:
Java lab01_task03 Late Rehoboth 219100001
Output: "Hi Kate, your student number I 219100001 and how is Rehoboth?"
Create a program to print out the following statement in three different lines: WELCOME TO LAB01

Your little brother has a math assignment to find whether the given u power of 2. If it is a power of 2 then he has to find the sum of the digit power of 2, then he has to find the next number which is a power of your help to validate his work. But you are already busy playing video games Develop a program so that your brother can validate his work by



little brother has a maths assignment to find whether the given number is a power of 2 if it is a power of 2 then he has to find the sum of digits if it is not

How to write a java program that asks user for a number and Prints out a series of squares of stars in increasing size up the number provided by the user.


Q-3


Single File Programming Question


Your little brother has a math assignment to find whether the given u power of 2. If it is a power of 2 then he has to find the sum of the digit power of 2, then he has to find the next number which is a power of your help to validate his work. But you are already busy playing video games Develop a program so that your brother can validate his work by


Example 1


Input


64


Output


Given N number of days as input, write a program to convert N number of days to years (Y), weeks (W) and days (D).

Note: Take 1 year = 365 days.

Input
The input contains single integer N.

Output
Print space-separated integers Y, W and D.

Explanation
Given N = 1329. The value can be written as

1329 = 3 years + 33 weeks + 3 days

So the output should be 3 33 3.

Sample Input 1
1329
Sample Output 1
3
33
3
Sample Input 2
0
Sample Output 2
0
0
0
Single File Programming Question

Ram and Mohan are two brothers. They are not good at maths. So their father decided to give some assignments as a game so that they can enjoy as well as they can learn the concept of number systems. So he gave two numbers to them. One is the sum of two numbers, x and y, and another is the product of the same two numbers. Help them to write a code to find x and y.

Note:

The two numbers should be printed in ascending order.

Example 1

Input

56

Output

23

Explanation

If we sum the numbers 2 and 3 we get the first input value 5 and if we

java.util. G

Scanner(

sum

prod

( i

Il virtusacoetraining.examly.io is sharing your scre

Write an algorithm for a program that prompts the user to enter the radius of a circle, and then calculate its area


LATEST TUTORIALS
APPROVED BY CLIENTS