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


Given a matrix of order M*N and a value K, write a program to rotate each ring of the matrix clockwise by K elements. If in any ring has less than or equal to K elements, then don’t rotate that ring.Input


The first line of input will be two space-separated integers, denoting the M and N.

The next M lines will contain N space-separated integers.

The next line will contain an integer, denoting K.Output


The output should be M*N matrix by rotating the matrix by K elements.Explanation


Sample Input 1

4 4

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15 16

3

Sample Output 1

13 9 5 1

14 7 11 2

15 6 10 3

16 12 8 4

Sample Input 2

3 4

1 2 3 4

10 11 12 5

9 8 7 6

2

Sample Output 2

9 10 1 2

8 11 12 3

7 6 5 4




Write a C program to find the area of circle using preprocessor directives.


Write a C program to store the information of vehicles. Use bit fields to store the status of information.

* The types of vehicles information are Two Wheeler=3, Four Wheeler=4, Petrol=0, Diesel=1, Old=5 and New=6

 * The bit fields member variables are fuel, type and model


Program to calculate the area of square and area of circle. Input values for square and circle are same and display the result of square and circle.


Using the function findSquare() that receives an input and returns the square of the input, write a complete program that calculates and displays the squares of the integers from 1 to 50.


c++ programming.


Ask the user to pick a number between 0 and 9, then pull a country from a list to show the user the amount of species in each random country, the sample output is as follows:

To select a random country, type a number from 0 to 9: 7

Australia has 7155 different species.


Write a class in java to get the name of Student and marks of three subjects. Calculate the total marks and average marks. Each subject has a maximum of 100 marks.


In the context of OODBMS, define the following with appropriate examples.

I) Object Class

II) Abstract Class


Describe the key characteristics of data warehouse and how it differs in content, structure and function from online transaction processing(OLTP). Support your answer with suitable diagrams and examples


Please draw a flow-chart/ pseudo code on the task, 'You go to a shop, purchase some fruits and return back to home'


LATEST TUTORIALS
APPROVED BY CLIENTS