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
Mamont248 [21]
3 years ago
14

(20 points). Some matrixes have very special patterns, for example, in the following matrix, the numbers in the first row are eq

ual to the number of their respective column; the numbers in the first column are equal to the square of the number of their respective row; when the row number equals to the column number, the elements are equal to 1; the rest elements are the sum of the element just above them and the one to their left. Write a user-defined function program in the program, you need to use while loops), and then use the function you write to create the following matrix (show the command you use). 1 4 9 16 2 1 10 26 3 4 1 27 4 5 8 13 9 22 1 23
Computers and Technology
1 answer:
Nostrana [21]3 years ago
3 0

Answer:

#include <iostream>

using namespace std;

void matrix(){

   int row = 5, col = 6;

   int myarr[row][col];

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

       for (int x = 0; x < 6; x++){

           if (i == 0){

               myarr[i][x] = (x+1)*(x+1);

          }else if ( x == 0){

               myarr[i][x] = (i+1)*(i+1)*(i+1);

           } else if ( i == x){

                myarr[i][x] = (i+1);

           } else{

                myarr[i][x] = myarr[i-1][x] + myarr[i][x-1];

           }

        }

   }

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

       for (int x = 0; x < 6; x++){

           cout<< myarr[i][x] << " ";

       }

       cout<< "\n";

}

}

int main(){

   matrix();

}

Explanation:

The C++ source code defines a two-dimensional array that has a fixed row and column length. The array is a local variable of the function "matrix" and the void function is called in the main program to output the items of the array.

You might be interested in
How are overhead projectors being used to improve teaching and learning in the classroom?
baherus [9]
<span>Projects are easier to organize in programs like PowerPoint. Also it is definitely a lot less Complicated than a chalkboard or a whiteboard.</span>
6 0
3 years ago
Read 2 more answers
To use mail merge future, use tab on the ribbon
EastWind [94]

Answer:

Mailing tab

Explanation:

THIS IS THE COMPLETE QUESTION BELOW

To use mail merge features , use .................... tab on the Ribbon.

Tabs are been sectioned into groups,The groups under mailing tabs are utilized in performing steps needed for mail merge process. Mailing tab comes as fifth tab in the ribbon. This tabs enables the user to merge emails, preview results as well as writing and inserting different fields.

7 0
3 years ago
To use the styles in an external style sheet, you can drag and drop the style sheet file into the head section of the aspx file
Neporo4naja [7]

Answer:

False

Explanation:

Cascading style sheet (CSS) is a web development tools used to create web pages. They give style or determine how a HTML file is a parse in a web browser.

There are three ways of adding CSS to a HTML file. First is the inline css, in which the styles of an element in the HTML file is described in that element tag. The second is using the style element in the HTML file to create css for elements in the file.

The third is external CSS file. The CSS file is created and linked to the HTML file through the link element in the head tag.

4 0
3 years ago
PLEASE HELP I NEED TO CHECK MY ANSWER ASAPPP
Vadim26 [7]

Functions are code segments that are executed when called or invoked

The function definition is not given; so, the output of the program cannot be outrightly determined.

However, the following are the possible scenarios.

  • The program would return 35.55 if the 2 represents the digits after decimal.
  • The program would return 36 if the 2 represents the significant digits.

It is unlikely for the program to return (a) 35.555 and (d) 40

Read more about functions at:

brainly.com/question/14284563

5 0
2 years ago
Which of the following is not true about search engine advertising?
snow_lady [41]

Answer:

a

Explanation:

Of all the four options the option that is not true about search engine advertising is

a. Search engine advertising is the fastest growing type of online advertising.

4 0
3 years ago
Other questions:
  • The collodion process was significantly more expensive than the cost of a daguerreotype
    10·1 answer
  • Select the correct answer. Which sentence best describe an effective management strategy? A. Conceal game-related clippings prio
    12·2 answers
  • How are devices connected to each other via Bluetooth? Choose two answers.
    11·1 answer
  • What is the first step in creating a maintenance ?
    7·1 answer
  • Which of the following identifies the goods or services of a
    15·2 answers
  • Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java.
    11·1 answer
  • Solution is c language please help me.​
    12·1 answer
  • How to get someone off your best friends list without blocking them
    8·1 answer
  • Given a string, an integer position, and an integer length, all on separate lines, output the substring from that position of th
    10·1 answer
  • Who completes the action item form in a team meeting
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!