
Please write a c++ programming code that can work on codechum according to the instructions below.
Mirror Multidimensional Array
by CodeChum Admin
I'm stuck in a hall of mirrors! I was told that there was only one way for the exit to be revealed to me, and that is if I can determine whether the multidimensional array shown in the mirror looks the same as the one I'm currently holding! You need to help me get out, I'm begging you!
Input
1. Number of rows of the multidimensional array
Constraints
The value is >= 2.
2. Number of columns of the multidimensional array
Constraints
The value is >= 2.
3. Values of the multidimensional array.
Output
The first line will contain a message prompt to input the number of rows.
The second line will contain a message prompt to input the number of columns.
The succeeding lines will prompt to input the values of the multidimensional array.
The last line will contain the message "mirror" - if the array is a mirror, and "not" - if the array is not a mirror.
Enter·the·number·of·rows:·3
Enter·the·number·of·columns:·3
4·3·4
3·8·3
10·1·10
mirror


Step by stepSolved in 4 steps with 3 images

- Write a Java to do the following USING ARRAYS (NO HARD CODING) MUST USE METHODS Arrays And Functions (Methods) hint write and test one module at the time 1) Input 15 integers (input validation , all numbers must be between -20 and 50 inclusive ) ,create a method/function. 2 methods/functions one for inputand one for input validation 2) Find and display all negative number in the array, create a method/function. 3) Display every other element in the array, create a method/function 4) Find the Sum of all positive numbers in the Array, create a method/function 5) a method/function to display the original array 6) include a menu using the switch statement to enable the user to select one of the the options (2,3,4). 7) include a loop to restart the menuarrow_forwardThis is needed in Java Given that an ArrayList of Strings named nameList has already been created and names have already been inserted, write the statement necessary to delete the name at index 15.arrow_forwardIn JAVA PROGRAMMING please read details on pictures thank you. (You will need to read in the student data first and then read in the scores) You will open each file and read the information into their respective classes/arrays For each student, you will calculate their lowest score, their highest score, their average, and their grade. For each quiz, you will calculate the lowest score, the highest score, and the average You will create and print an Honor Role. The Honor Role comprises students who received an ‘A’ grade. REPORT WILL LOOK LIKE THIS LastName FirstName StudentID Score 1 Score 2 Score 3 Score 4 Score 5 High Low Average Grade High…arrow_forward
- 1. Array splitting in Java Create an integer array with 10 integer numbers, initialize the array arbitrarily but make sure there are both positive and negative integers. Then generate two arrays out of the original array, one array with all natural numbers (positive numbers or zeros) and another one with all negative numbers. Print out the number of elements and the detailed elements in each array.arrow_forwardJava Programming language Please help me with this. Thanks in advance.arrow_forwardArrays of objects. Java programming: How to create and work with an array of objects in Java I wanted to know that supppose that I have 100 employees who are paid on an hourly basis and I need to keep track of their arrival and departure times, and I have also created the class Clock to implement the time of day in a program. I also know that I will use two arraays; one called arrivalTime and the other array called departure time. Each of these arrays will have 100 elements and each element will be a reference variable of Clock type.. For example Clock[] arrival = new Clock[100]. My qeustion is how do I create the objects arrival and departure. Then how could I use the methods f the class clokc. Thank youarrow_forward
- Code with comments and output screenshot is must. Thank you!arrow_forwardYou can use any C# compiler or the method you already know. The following table contains quarterly sales figures for five (5) departments: Quarter 1 Quarter 2 Quarter 3 Quarter 4 Total Department 1 750 660 910 800 Department 2 800 700 950 900 Department 3 700 600 750 600 Department 4 850 800 1000 950 Department 5 900 800 960 980 Total Design and write a Windows program/module named SalesAnalysis that will: Declare a two-dimensional integer array named sales – (Note: you have 6 rows and 5 columns) - that will hold the 4 quarterly sales for 5 departments Populate the first four columns for the 5 departments using the data in the preceding table. Contain a loop to compute and populate the total column. Store each department’s total in the array as it is being computed. Contain a loop to compute and populate the total row. Store each quarter’s total in the array as it is being computed.…arrow_forwardJava program to check whether there is zero (0) value or -1 , if its there then display true otherwise false. Consider the output as follow:arrow_forward
- Design and implement a recursive program(in java) to determine and print the Nth line of Pascal's triangle, as shown below. Each interior value is the sum of the two values above it. Hint: Use an array to store the values on each line.arrow_forwardJava programming help please. Main and other class of code is below. Thank you so so much. i have to Write a program that does the following: You have an array of integers with positive and negative values. using one ourArray object (will post code of "ourArrary" below) , and in two loops maximum, How can you reorganize the content of the array so that all negative numbers are on one side and the positive numbers are on the other side. [-3, 2, -4, 5, -6, -8,-9, 7, 13] The output should be [-3, -4, -6, -8, -9, 2, 5, 7, 13] Our array code: public class ourArray<T> implements iQueue{ private T[] Ar; private int size = 0; private int increment = 100; //default constructor @SuppressWarnings("unchecked") public ourArray () { Ar = (T[]) new Object[100]; size = 0; } //constructor that accepts the size @SuppressWarnings("unchecked") public ourArray (int n) { Ar = (T[]) new Object[n]; size = 0; } //constructor that specifies the initial capacity and the increment…arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





