Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimensional array of data type char, int, double, or string. Assume the array is declared as follows: const int NUM_ROWS

Answers

Answer 1

Question:

Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimensional array of data type char, int, double, or string. Assume the array is declared as follows:  

const int NUM_ROWS = 3,  NUM_COLUMNS = 5;

test data: [10, 1, 1, 1, 1]  [7, 2, 20, 2, 9] [ 3, 3, 3, 3, 5]

Answer:

The program in C++ is as follows:

#include<iostream>

using namespace std;

int main(){

const int NUM_ROWS = 3, NUM_COLUMNS = 5;

int MyArray[NUM_ROWS][NUM_COLUMNS] = {{10, 1, 1, 1, 1},{7, 2, 20, 2, 9},{3, 3, 3, 3, 5}};

return 0;

}

Explanation:

To answer this question, we make use of the following parameters

Array name: MyArray

Array datatype: integer

The explanation is as follows:

This declares the array dimensions

const int NUM_ROWS = 3,  NUM_COLUMNS = 5;

This declares and initializes the array with the test data

int MyArray[NUM_ROWS][NUM_COLUMNS] = {{10, 1, 1, 1, 1}, {7, 2, 20, 2, 9}, {3, 3, 3, 3, 5}};


Related Questions

Which option is the default configuration of the Junk Email Options in Outlook 2016?

No Automatic Filtering
Low
High
Safe Lists Only

Answers

Answer:

No Automatic Filtering

Answer:

NO automatic filtering

Explanation:

i took the quiz

My teacher just asked, "What did you learn about coding and how can it help u through life." CAN SOMEONE PLZ ANSWER BC I DONT KNOW.​

Answers

Answer:

Coding is becoming a big thing in America because more and more jobs are on the computer, because they future is tech.

Explanation:

i dont know something like tht

PLZZZ HELP
Select the correct answer.
A company utilizes a specific design methodology in the software design process. They utilize concepts of encapsulation in design. Which design methodology would they be using?
A.
structured design
B.
modular design
C.
object-oriented design
D.
rapid application development
E.
use-case design

Answers

Answer:

C is object-oriented design

Label the following website navigation methods
according to their importance, where 1 is most
important and 3 is least important.

Site map:
Navigation menu:
Site search:

Answers

Answer:

Technology is very important

Answer:

Site map: 3

Navigation menu:1

Site search:2

Explanation:

Does anyone have the answers to edhesive 4.2 lesson practice I’ve been stuck on it for like 3 months

Answers

Answer:

1. 5, 10

2. 5, 7, 9, 11

3. 21

4. 10

Explanation:

What do y’all think are the pros and cons to using technology?

Answers

Answer:

Explanation:

pros. convenient, easy to use, and educational  cons. addictive, mentally draining, and creates a social divide.

the process of preparing and setting up a software on a computer is called​

Answers

Answer:

installation

Explanation:

Installation (or setup) of a computer program (including device drivers and plugins), is the act of making the program ready for execution.

Digital computers use a........ system to encode date and programs.

Answers

Answer:

Digital computers use a binary system to encode date and programs.

What information will you find in the 16-bit field in an IP datagram?

Answers

Answer: This 16-bit field defines the entire packet size in bytes, including header and data. The minimum size is 20 bytes (header without data) and the maximum is 65,535 bytes. All hosts are required to be able to reassemble datagrams of size up to 576 bytes, but most modern hosts handle much larger packets.

Explanation: Hopefully this helps you with what ever u are doing.

An information which you will find in the 16-bit field in an IP datagram is: the total length of the datagram it's attached to.

An IP address is an abbreviation of internet protocol address and it can be defined as a unique number assigned to a computer or other network devices such as routers, switches, etc., in order to differentiate each device from one another in an active network system. Thus, an IP address is typically used to uniquely identify each computer or network device connected to the internet or an interconnected network.

In Computer networking, IP address are classified into two (2) main categories and these are;

Local (internal) IP address.Global (external) IP address.

An IP datagram can be defined as the standard format of data that an internet protocol (IP) recognizes.

Generally, an IP datagram comprises two (2) main components and these include:

1. The header: it is used for sending messages on a computer to the protocol in the same layer of a destination (recipient) computer.

2. The data: this is a set of information that is transmitted from one computer to another over an interconnected network.

On a related note, an IP datagram contain three (3) fields which are typically used for the transmission of data;

Header length.IP version.Total length.

The Total length is a field that is used to specify the total length of an IP datagram and it is typically 16-bits in size.

In conclusion, an information which is found in the 16-bit field in an IP datagram is the total length of the datagram it's attached to.

Find more information here: https://brainly.com/question/19204809

they will wash the car change into tag question​

Answers

Answer:

They will wash the car, won't they?

Explanation:

A tag question usually comes after an independent clause. The tag question is most times attached with the intent of affirming the statement made in the independent clause. Our independent clause in the answer above is; "They will wash the car". The tag question, "Won't they?" is meant to affirm that statement.

Another example is, "They are going to school, aren't they?" In this example also, the independent clause makes a sentence that is to be confirmed by the tag question.

The following table represents the addresses and contents (using hexadecimal notation) of some cells in a machine's main memory.Starting with this memory arrangement , follow the sequence of instructions and record the final contents of each of these memory cells: Address Contents 00 AB 01 53 02 D6 03 02 Step 1. Move the contents of the cell whose address is 03 to the cell at address 00. Step 2. Move the value 01 into the cell at address 02. Step 3. Move the value stored at address 01 into the cell at address 03.

Answers

Answer:

I DON'T KNOW THE ANSWER SO SORRY

Explanation:

BUT THANKS FOR THE POINTS

Q3: State whether each of the following is true or false. If false, explain why. 1. A generic method cannot have the same method name as a nongeneric method. 2. All generic method declarations have a type-parameter section that immediately precedesthe method name. 3. A generic method can be overloaded by another generic method with the same methodname but different method parameters. 4. A type parameter can be declared only once in the type-parameter section but can appearmore than once in the method’s parameter list. 5. Type-parameter names among different generic methods must be unique. 6. The scope of a generic class’s type parameter is the entire class except its staticmembers.

Answers

Answer:

3

Explanation:

Read the following statements and use the drop-down menus to identify which statements are
conditional statements.
I am thinking about going to college.
I plan to go to college if my grades are good enough.
If my grades are very good, then I will select a college that offers scholarships.
I plan to visit several colleges to see what they offer and what the living situations look like.
If I do not qualify for any scholarships, then I will apply for student loans.
I will also start working a part-time job to help pay for college.

Answers

Answer:

I am thinking about going to college.

✔ not a conditional statement

I plan to go to college if my grades are good enough.

✔ conditional statement

If my grades are very good, then I will select a college that offers scholarships.

✔ conditional statement

I plan to visit several colleges to see what they offer and what the living situations look like.

✔ not a conditional statement

If I do not qualify for any scholarships, then I will apply for student loans.

✔ conditional statement

I will also start working a part-time job to help pay for college.

✔ not a conditional statement

If I go to college, then my parents will let me take the extra car with me.

✔ conditional statement

If I do not go to college and stay home, then my parents want me to start paying rent.

✔ conditional statement

Answer:

These are correct!

I am thinking about going to college.  ✔ not a conditional statement  

I plan to go to college if my grades are good enough. ✔ conditional statement   

If my grades are very good, then I will select a college that offers scholarships. ✔ conditional statement  

I plan to visit several colleges to see what they offer and what the living situations look like. ✔ not a conditional statement  

If I do not qualify for any scholarships, then I will apply for student loans. ✔ conditional statement 

I will also start working a part-time job to help pay for college. ✔ not a conditional statement  

If I go to college, then my parents will let me take the extra car with me. ✔ conditional statement  

If I do not go to college and stay home, then my parents want me to start paying rent. ✔ conditional statement

Explanation:

They are correct! I answered them and got them all right!

personal computer is the rise of what?​

Answers

Answer:

Overuse injuries of the hand.

Obesity.

Muscle and joint problems.

Eyestrain.

Behavioural problems including aggressive behaviour.

Writing a function that implements a loop to collect a set amount of data. The function should use the serial object, the recording time, and the iteration (city number) as input arguments and return an N x 2 array with the time in the first column and the recorded light level in the second. (4 pts). Include in this function outputs to the Command Window noting the starting and stopping of the recording.

Answers

You can still go on a date with you if I get a text from my friend that is in a relationship and you don’t know why

Introduction to Programming Workbook
Draw flowchart to find the largest among threu different numbers entered by a user

Answers

Haije jiôes 1w mòé si aimx

what is information richness

Answers

Information Richness is the ability of information to change understanding within a time interval.

Hope it helps. Have a great day.

Brainliest would be greatly appreciated.

___________________________________________________________

#SaveTheEarth

#SpreadTheLove

- Mitsu JK

Why is it important to think about the programming language to use?

Answers

Answer:

"The choice of programming language determines the type of game you can make."

Explanation:

Programming language enables us to write efficient programs and develop online things based on the certain type of code.

PLEASEE HELPP.... QUESTION... how does coding impact your life​

Answers

Answer: It allows us to do everyday tasks on the internet

Explanation: We wouldn’t be able to email, research, etc without coding!

It helps us use things such as the internet, TVs and many other things coding is a Vidal asset in are everyday life.

Is this correct? I say its B, but my friend says its D.

Answers

The answer is B, best of luck!

Characteristics of RAM​

Answers

Answer:

Short Data lifetime, Less Expensive, Needs to be refreshed often, Smaller in size, etc. tell me if you need more.

Why data mining is crucial for the success of a business, explain with examples

Answers

Answer:

For businesses, data mining is used to discover patterns and relationships in the data in order to help make better business decisions. Data mining can help spot sales trends, develop smarter marketing campaigns, and accurately predict customer loyalty.

For questions 3-6, consider the following two-dimensional array:

undervalue

will

knitting

pretzel

realize

honey

planetary

bandana

iron

employment

effort

fabric


What word is in [0][1] ?


Flag this Question
Question 41 pts
What word is in [1][1] ?

Flag this Question
Question 5
What word is in [3][2] ?

Flag this Question
Question 6
What word is in [2][1] ?

Answers

Answer:

3. Will

4. Realize

5. Fabric

6. Bandana

Realize is in is in [1][1], Fabric is in [3][2], Bandana is in [2][1] . Arrays inside of arrays are what are known as two-dimensional arrays.

What is two-dimensional array?

Arrays inside of arrays are what are known as two-dimensional arrays. 2D arrays, which are made up of rows and columns, are constructed as metrics. To create a database that resembles the data structure, 2D arrays are frequently used.

You may store a large amount of data using 2d arrays at once, which can then be supplied to as many different functions as necessary. Two indices are used to refer to the position of the data element in two-dimensional or multi-dimensional arrays. Row and column are the two dimensions indicated by the name. Realize is in is in [1][1], Fabric is in [3][2], Bandana is in [2][1] .

Therefore, realize is in is in [1][1], Fabric is in [3][2], Bandana is in [2][1].

To know more about two-dimensional array, here:

https://brainly.com/question/30463245

#SPJ3

Consider the following argument: Any piece of software that is in the public domain may be copied without permission or fee. But that cannot be done in the case of software under copyright. So, software under copyright must not be in the public domain. The conclusion of the argument is:

Answers

Answer:

"software under copyright must not be in the public domain"

Explanation:

The conclusion of his argument is "software under copyright must not be in the public domain". This combines the two premises that were stated before it in order to form a logical outcome based on the premises. In the case of logic, this would basically be an

IF A and IF B, Then C

type of logic, in which A is "Public Domain Work can be copied", B is "Software under Copyright cannot be copied", and C is the conclusion which would be "software under copyright must not be in the public domain"

When using for loops and two-dimensional arrays, the outside loop moves across the ___________ and the inside loop moves across the ___________.

indexes, elements

columns, rows

elements, indexes

rows, columns

Answers

Answer: rows, columns

Explanation: :)

In python please!!! Write the definition of a function named countPos that reads integer values from standard input until there are none left and returns the number that are positive. The function must not use a loop of any kind.

Answers

Answer:Here is the method countPos    

 static int countPos(Scanner input){ //method that takes a reference to a Scanner object

  int counter=0;  // to count the positive integers  

  int number; //to store each integer value

  if(input.hasNextInt()){ //checks if next token in this scanner input is an integer value

      number=input.nextInt(); //nextInt() method of a Scanner object reads in a string of digits and converts them into an int type and stores it into number variable

      counter=countPos(input); //calls method by passing the Scanner object and stores it in counter variable

      if(number>0) //if the value is a positive number

          counter++;    } //adds 1 to the counter variable each time a positive input value is enountered

  else    { //if value is not a positive integer

      return counter;    } //returns the value of counter

  return counter; } //returns the total count of the positive numbers

Explanation:

Here is the complete program:

import java.util.Scanner; //to take input from user

public class Main { //class name

//comments with each line of method below are given in Answer section

static int countPos(Scanner input){

  int counter=0;

  int number;

  if(input.hasNextInt()){

      number=input.nextInt();

      counter=countPos(input);

      if(number>0)

          counter++;    }

  else    {

      return counter;    }

  return counter; }

public static void main(String[] args) { //start of main function

      System.out.println("Number of positive integers: " + countPos(new Scanner(System.in)));  } } //prints the number of positive integers by calling countPos method and passing Scanner object to it

The program uses hasNextInt method that returns the next token (next input value) and if condition checks using this method if the input value is an integer. nextInt() keeps scanning the next token of the input as an integer. If the input number is a positive number then the counter variable is incremented to 1 otherwise not. If the use enters anything other than an integer value then the program stops and returns the total number of positive integers input by the user. This technique is used in order to avoid using any loop. The program and its output is attached

Explanation:

Mattias's friend asked him to critique his presentation about gorillas. Mattias noticed that there weren't any images of gorillas. What feedback can Mattias give to improve his friend's presentation?
a I like your title, but did you not think to add pictures of gorillas?
b It's ok, but it would be better if I just added pictures to your presentation.
c Really great information, but I think adding a picture of a gorilla would be great.
d You're missing a gorilla picture. Add one.

Answers

Answer:

c

Explanation:

Answer:B

Really great information, but I think adding a picture of a gorilla would be great.

Explanation:

Mattias's friend asked him to critique his presentation about gorillas. Mattias noticed that there weren't any images of gorillas. What feedback can Mattias give to improve his friend's presentation?

Group of answer choices

A)You're missing a gorilla picture. Add one.

B)Really great information, but I think adding a picture of a gorilla would be great.

C)I like your title, but did you not think to add pictures of gorillas?

D)It's ok, but it would be better if I just added pictures to your presentation.

PLZZ HELP!!!
Select the correct answer.
Brian’s team has built a new application based on the client’s requirements. They will deploy this application in multiple locations on the client side. Brian is unsure about the hardware and software specifications at the client side. Which option will help him best solve this issue?
A.
creating multiple test scripts
B.
automating test scripts
C.
creating multiple test plans
D.
creating multiple test environments
E.
communicating with the development team

Answers

Answer: Option D creating muiltiple test enviroments

Explanation: I had the same question and I hope this helps ( :

The option that will help Brain best solve this issue is by creating multiple test environments.

What is the specification of software?

A software requirements specification (SRS) is known to be a type of requirement that are often written in a document that tells more about what the software can do.

Hence in the above scenario, what will help help Brain best solve this issue is by creating multiple test environments where the client can see a demonstration and be convince in getting the product.

Learn more about application from

https://brainly.com/question/24847617

You have an audio that contains one pause for 0.2 seconds and another one for 0.6 seconds. When do you need to create a new segment?

Answers

A new segment should be created when there is a pause for more than 0.5 seconds

Draw a data flow diagram that indicates the condition and factors that must be satisfied before a customer request for goods can be granted from a factory

Answers

Skies in here and the beach and
Other Questions
Urgent plz help! Arrange the basic problem-solving steps in the correct order.Implement the solution.Make a choice.Evaluate alternatives.Gather information.+Evaluate the results.Identify the problem. The kinetic molecular theory explains the movement of molecules withinA) solids B) liquids C) gases D) all of the above pls help help help help 1. You had $ 1 million, but then you spent $999 and then $22.222. How muchmoney do you have left? Volume of the large cube is 7.506 x 10 mm. The volume of each small cube is 2.78 X 104 mm'. How many small cubes make up the large cube? What do you think Constantine did to make him such a powerful emperor? Check all that apply.a) He conquered new lands.b) He treated Roman citizens fairly.c)He built a strong and loyal army.d) He increased the wealth of the empire. Mesopotamia is compared to what other civilization?giving brainliest to whoever is correct 10 points! Will mark brainliest!! If you were to roll two dice, how many different ways could you roll double fours? Anyone good at Spanish the directions are write the correct indirect object pronoun in each sentence follow the model HELP PLZ!The Fluffy Lump Cat Toy Company rents a warehouse facility. There is a fixed cost of $1200 a month for rent and a variable cost of $5 per box of toys that are stored. If the total cost for this month was $1315, how many boxes of toys are being stored?NO LINKS can someone get me the moderator eric's profile link? thanks. but also I have a math question. Approximate: log 1/2 5[tex]log_{1/2} 5[/tex] 2.32190.43072.32190.4307IT'S C What is the VALUE OF X PLS HELPP help me pls!:) dont mind the last one Lee las frases y escoge la opcin con las palabras correctas que faltan en los espacios en blanco. Read the sentences and choose the option with the correct words missing in the blanks.Yo tengo ________ mochila y ________ calculadora roja. (1 point) auna; la blas; un cel; una dunos; las PLEASE HELPPO ITS A TEST AND I DONT HAVE TIMEE Please answer the question for BRAINLIEST If the length of a rectangle is (x + 7) inches and the width is (3x+2) inches. Which expression represents the rectangle's area? HINT: Area = width * length The height of a rocket is modeled by h(t) = -(4t-12)(4t-36). How long after reaching its maximum height does it take for the rocket to hit the ground?A. 3 secondsB. 4.5 secondsC. 7.5 secondsD. 12 seconds transpiration is the process by which ____.