1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kykrilka [37]
3 years ago
8

C++ please

Computers and Technology
1 answer:
Nat2105 [25]3 years ago
7 0

Answer:

#include <iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main(){

   int n;

   cout<< "Enter the row and column length: ";

   cin>> n;

   int array_one[n][n];

   int array_transpose[n][n];

   for (int i = 0; i < n; i++){

      for (int j= 0; j < n; j++){

           srand((unsigned) time(0));

           array_one[i][j] = (rand() % 4000)

           array_transpose[j][i] = array_one[i][j];

       }

   }

}

Explanation:

The C source code has three variables, 'array_one', array_transpose' (both of which are square 2-dimensional arrays), and 'n' which is the row and column length.

The program loops n time for each nth number of the n size to assign value to the two-dimensional array_one. the assign values to the array_transpose, reverse the 'i' and 'j' values to the two for statements for array_one to 'j' and 'i'.

You might be interested in
Annalise received financial aid offers from two universities. Financial Analysis for Option A Costs per Year Financial Aid Packa
lara31 [8.8K]

Answer:

Option S will save her $15500

Explanation:

Room and board, someone is provided a sum of money in return for labor. The government does not ask for this money to be returned. This is earned by the student. Also, work-study is being given to the student, the fund in return of certainly part-time employment job which he/she does in free time. And hence it is clear from the above study that, A will save $15500, and hence this is the right answer as others are taken by the universities. And also B is saving $13000, and this is not an option given.

7 0
3 years ago
Read 2 more answers
after turning the volume all the way up on the speakers you still can't hear any sound which of the following should be your the
ivolga24 [154]

Answer:

check if its pluged in

Explanation:

7 0
4 years ago
According to computer analyst Bajarin, 75% of most people’s computer time is spent __________ content.
nalin [4]

Answer:

consuming

Explanation:

5 0
3 years ago
Read 2 more answers
The /home/gshant/smp directory contains several files. The directory and files need to be removed. The current working directory
kherson [118]

Explanation:

Whenever a user types in a command at the command line that is not built into the shell or that does not include its absolute path and then presses the Enter key, the shell searches through those directories, which constitute the user's search path, until it finds an executable file with that name.

3 0
3 years ago
By applying styles, _______ formats are being applied each time. A. various B. different C. the same D. similar
Dmitry [639]
I just took the test on (PF) it's C. the same

i hope this helped someone.
;-)
4 0
4 years ago
Read 2 more answers
Other questions:
  • _____ is when network managers deal with network breakdowns and immediate problems instead of performing tasks according to a we
    9·1 answer
  • Where does communication take place?
    12·1 answer
  • Assume that the type NAME has already been defined. Define a new type, SREC that is a structure consisting of two fields: name (
    5·1 answer
  • As you are talking to your colleague over the phone, the sound of an airplane flying low drowns out part of your conversation. I
    11·1 answer
  • Ask the user to input an integer. Print out the next three consecutive numbers.
    14·2 answers
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • What type of filtering software divides email messages that have been received into two piles, spam and non-spam and then analyz
    13·1 answer
  • Can anyone help and write a sample answer to this please x
    7·1 answer
  • Gina, an IT professional, noticed that the servers were running very slowly. She evaluated the system and made a recommendation
    9·2 answers
  • How can blockchain be used to support sustainable business practices?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!