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

What keys on the keyboard have the ability to move the cursor around on a window?

No links and files or I report!
Will give Brainliest!​

Answers

Answer:

Press the Windows key on your keyboard. In the box that appears, type Ease of Access mouse settings and press Enter . In the Mouse Keys section, toggle the switch under Use numeric pad to move mouse around the screen to On. Press Alt + F4 to exit this menu.

9.6 code practice edhesive

Answers

Answer: i got 50% for this I don’t know what to fix

Explanation:

Answer:

def printIt(ar):

   for row in range(len(ar)):

       for col in range(len(ar[0])):

           print(ar[row][col], end=" ")

       print("")

N= []

for r in range(4):

   N.append([])

for r in range(len(N)):

   value = 1

   for c in range(5):

       N[r].append(value)

       value = value +1

printIt(N)

print("")

newValue = 1

for r in range(len(N)):

   for c in range(len(N[0])):

       N[r][c] = newValue

   newValue = newValue + 1

printIt(N)

Explanation: Ez clap

Consider four Internet hosts, each with a TCP session. These four TCP sessions share a common bottleneck link - all packet loss on the end-to-end paths for these four sessions occurs at just this one link. The bottleneck link has a transmission rate of R. The round trip time, RTT, for all fours hosts to their destinations are approximately the same. No other sessions are currently using this link. The four sessions have been running for a long time. What is the approximate throughput of each of these four TCP sessions

Answers

It is what it is and can’t be what

The correct response is - The TCP protocol creates a three-way connection between hosts on a network to send packets. It is a connection-oriented protocol. It is a protocol found in the OSI network model's transport layer. Given that all lost packets are sent again, it is trustworthy.

What is a TCP protocol?

One of the key protocols in the Internet protocol family is the Transmission Control Protocol. It was first used to supplement the Internet Protocol in the first network installation. TCP/IP is the name given to the full suite as a result.

The usage of TCP allows for the safe exchange of data between the server and the client. No matter how much data is transferred across the network, it ensures its integrity. It is therefore used to transfer data from higher-level protocols that demand the arrival of all sent data.

The usage of TCP allows for the safe exchange of data between the server and the client. No matter how much data is transferred across the network, it ensures its integrity.

To read more about TCP protocol, refer to - https://brainly.com/question/27975075

#SPJ6

⚠️⚠️⚠️⚠️HELP - What is the software that allocates resources of a physical computer to a virtual machine?
Group of answer choices

Switch

Operating systems

Hypervisor

HostVM

Answers

Answer:

the answer is going to be hostvm

Edna needs a safer car to drive. She likes to travel a lot, so she is looking for a small SUV. She is trying to decide between buying a new or used car. After doing some research, she finds out that most cars lose value each year by a process known as depreciation. You may have heard before that a new car loses a large part of its value in the first 2 or 3 years and continues to lose its value, but more gradually, over time. That is because the car does not lose the same amount of value each year, but it loses approximately the same percentage of its value each year. What kind of model would be most useful for calculating the value of a car over time?

Answers

Answer: Buy a new car

Explanation: If its a used car its breaks will be worn out and more likely the breaks will stop working in 6 months and you have to change them. May the forse be with you.

HELP! WILL GIVE BRANLIESt!

Answers

Answer:

36:12, 36/12, 3/1

Explanation:

I’ve never solved a problem like this but mathematically this answer makes sense

PLZ HELP

Select the correct answer.
Jack is part of the software quality assurance team in a company. Which activity should Jack perform as a part of software quality assurance?
A.
billing
B.
recruiting
C.
testing
D.
installing
E.
accounting

Answers

Answer:

E. accounting

Explanation:

just bare with me

Answer:D SORRY IF IM WRONG

Explanation:

PLS DONT HATE

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

Which option is used to determine whether information that should remain private is included in the final version of a PowerPoint presentation?
Compatibility Check
Grammar Checker
Document Inspector dialog box
Trust Center

Answers

Answer:

Im pretty sure you should put a document inspector dialog box

Answer:

Document Inspector dialog box

Explanation:

edge 2022

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.

who was the first inventor of computer​

Answers

Answer:

Explanation:

English mathematician and inventor Charles Babbage is credited with having conceived the first automatic digital computer. During the mid-1830s Babbage developed plans for the Analytical Engine.

Answer:

Charles Babage is the first inventor of computer.


Write
algorithm to read 100 numbers
then display the largest.

Answers

Answer:

see picture

Explanation:

There is no need to store all the values, you can just keep track of the highest. Up to you to create a numbers file with 100 values.

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 computer boots normal but soon turns off. When rebooted, it dies again. It works for a few minutes in the morning, but throughout the day, it only boots after it has been turned off for over an hour, then turns off again as soon as the windows desktop appears. What are your troubleshooting steps and repairs that you, the on-call technician, will use to resolve this malfunction? What went wrong? How did you fix it? How much must you charge the customer?

Answers

Answer:

If I would have been there firstly I will not any for it second it has been happend to my PC 1 or 2 week ago if you are using Windows 7 cuz I have 7 . So two black screen appear press the reboot key and wait for 2nd screen, and if it would not come again reboot till it appear then press [Del]

key and some adjustments and press enter and it would ask for saving so press Y and enter you are all done

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

Aspire is a test you take to prepare for the
A. PSAT
B. SAT
C. ACT
D. FAFSA

Answers

Answer:

ACT

Explanation:

"ACT Aspire is a powerful tool to help students and their parents monitor progress toward a successful ACT test from third grade through tenth grade. The Aspire test assess students' readiness in five areas covered by the ACT test: English, math, reading, science and writing." - https://greentestprep.com/resources/act-prep/act-aspire-test/

Aspire is a test you take to prepare for the ACT. Thus, option C is correct.

What is ACT?

"ACT Aspire is a powerful tool to help students and their parents monitor progress toward a successful ACT test from third grade through tenth grade. The Aspire test assess students' readiness in five areas covered by the ACT test: English, math, reading, science and writing.Aspire is a test people take as a preparation for both ACT a d SAT.

Aspire is a valuable tool to help students and their parents monitor progress towards a good ACT exam from 3rd to 10th grade. The Aspire test assesses student performance in five areas covered by the ACT exam: English, math, reading, science and writing. Aspire Test is offered in the spring and fall seasons, the cost of the assessment tool depends on how many subjects you would like to measure and how often you want your student to be tested.

Learn more about Aspire Test on:

https://brainly.com/question/4469429

#SPJ7

A financially stable person is able to:
A. spend money without having to save.
B. use loans to cover his or her living costs.
C. default on loan payments.
D. save money.

Answers

I think D. To save money cuz thats how financially stable people stay financially stable

Answer:

Save Money

Explanation:

D

Why using a word processor than a typewriter?​

Answers

Answer:

Word processors allow users to save documents. This is not the case with a typewriter. Because text can be saved, editing does not have to occur immediately. The fourth characteristic of word processors is that they allow users to print their documents.

Answer:

There are many advantages to using a word processor instead of a typewriter. ... You have the ability to easily edit and change a word processing document. You can change a wide variety of formatting and colours. You can save files and re-use them.

Explanation:

All changes
1.(01.01 LC)
To make sure you do not get too tired when using the computer for long periods of time, how often should you get up to stretch and move? (5 points)
O Every hour
O Every 10 minutes
O Every 30 minutes
O Every two hours

Answers

You should get up and move every 30 minutes

Hope  this helps

-scav

Answer:

C

Explanation:

6.20 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is a phrase and whose output is an acronym of the input. If a word begins with a lower case letter, don't include that letter in the acronym. Assume there will be at least one upper case letter in the input. Ex: If the input is: Institute of Electrical and Electronics Engineers the output should be: IEEE

Answers

Answer:

Explanation:

The following code is written in Python. It creates a function that takes in a phrase as an argument. Then it splits the phrase into a list of words. Next, it loops through the list and adds the first letter of each word into the acronym variable if it is a capital letter. Finally, returning the acronym variable. Output can be seen in the attached picture below.

def accronymGenerator(phrase):

   phrase_split = phrase.split(' ')

   acronym = ""

   for x in phrase_split:

       if x[0].isupper() == True:

           acronym += x[0]

       else:

           pass

   return acronym

Microsoft Security Essentials and Microsoft Forefront are: anti-malware software programs that can be used to harden workstation computers. port-scanning software utilities that scan for open ports on servers. software programs designed to remove or disable unnecessary user accounts. operating system administration software programs that create and maintain baselines.

Answers

Answer:

anti-malware software programs that can be used to harden workstation computers

Explanation:

Microsoft Security Essentials can be regarded as antivirus software which gives protection to our computers used in home or for business against types of malicious software. These malicious software could be

✓trojan horses.

✓ computer viruses

✓spyware

✓rootkits, trojan horses.

Microsoft Forefront can be regarded as

security software for business roduced

by Microsoft Corporation. It was

designed to offer protection to computer networks as well as network servers and individual devices. It should be noted that Microsoft Security Essentials and Microsoft Forefront are anti-malware software programs that can be used to harden workstation computers

Need help ASAP??? Pick the best answers

Answers

Answer:

A and C are correct pick both

Return the appropriate part of FizzBuzz This is a small part of a classic software engineering interview question. fizz_buzz_check takes a single integer argument, number. Complete the function such that it returns a value using the following rules: If the number is divisible by 3 (i.e division by 3 has a remainder of 0), return the string Fizz. If it is divisible by five, return the string Buzz. If it is divisible by 3 AND 5, return FizzBuzz. Otherwise, just return the original argument back without any changes.

Answers

Answer:

The function in Python:

def fizz_buzz_check(num):

   if num%3 == 0:

       result = "Fizz"

   if num%5 == 0:

       result = "Buzz"

   if num%3 == 0 and num%5 == 0:

       result = "FizzBuzz"

   if num%3 != 0 and num%5 != 0:

       result = num

   return result

Explanation:

The function to complete is not given. So, I write a new function from scratch.

This defines the function

def fizz_buzz_check(num):

This checks if num is divisible by 3

   if num%3 == 0:

If yes, the returned value is stored as "Fizz"

       result = "Fizz"

This checks if num is divisible by 5

   if num%5 == 0:

If yes, the returned value is stored as "Buzz"

       result = "Buzz"

This checks if num is divisible by 3 and 5

   if num%3 == 0 and num%5 == 0:

If yes, the returned value is stored as "FizzBuzz"

       result = "FizzBuzz"

This checks if num is not divisible by 3 and by 5

   if num%3 != 0 and num%5 != 0:

If yes, the returned value is stored as the initial argument

       result = num

This returns the appropriate value

   return result

NO LINKS
Do you need to pay monthly to stream on Twitch?

Answers

I think so yeah $$$$

how do you think the blitz might have affected civilian morale in london

Answers

Answer:

It would have seriously negatively affected civilian morale in London. Hearing about the horrors of the war even from far away does a number on morale. This, however, was not exactly the case for London in WWII, because even as air raids were executed on the city, the citizens, confined to underground bomb shelters, still managed to pull together and keep morale high, causing London NOT to plunge into chaos, but to stand united against Germany.

What are the two main parts of system unit hardware?

Answers

Answer: Computers have two main parts: hardware and software

Like piano (hardware) and music (software)

Explanation:

A customer opened a file attachment, and now her PC is infected with ransomware. She's unable to open any of her files. Which action would you take first?
A. Reinstall the operating system
B. Run an antivirus scan
C. Pay the ransom to recover the data
D. Disconnect the PC from the network
E. Restore files from backup

Answers

Answer:

D. Disconnect the PC from the network

Explanation:

I'd say this because it keeps the ransomware from spreading to other computers making it a bigger problem.

In this question, the answer is "Option D", which disconnects the PC from the network, which can be defined as follows:

A customer's PC has been attacked using ransomware after she opened a document file. She has been unable to access any of her files. She first had to detach the PC from the system to access the file.This type of malicious software (malware) threatens to publish or prevent information or computer access until the victim pays a ransom price to the attacker. Today, ransomware assaults are all too frequent. This attacker then demands a ransom from the victim, promising to restore access to the information in exchange for payment.

The wrong option can be defined as follows:

In option a, it is wrong because when we reinstalling the OS is used to start the fresh without using the old files.In option b, it is wrong because the antivirus can't protect the ransomware maliciously. In option c, it is wrong because when a corporation can pay the ransom, their cash is dispersed across the dark web.In option e, it is wrong because creating copies of information could be recovered in the event of a primary information failure.

Learn more:

Ransomware: brainly.com/question/14455233

A digital footprint is .

Answers

Your digital footprint is the trail of 'electronic breadcrumbs' you leave behind when you use the internet. It can include the websites you visit, the photos you upload and your interactions with other people on social networks.

Answer: is something you must manage

You want to change your cell phone plan and call the company to discuss options

Answers

And? What’s the point? The question?

PLZZZZ HELP!!!
Select the correct answer.
What does the coding phase involve?
A.
testing and debugging code to remove all possible errors
B.
writing sequences of statements in a suitable programming language to produce the desired program
C.
designing a proper pseudocode using human-readable language
D.
compiling and interpreting programs into machine language
E.
breaking down the entire code into workable modules

Answers

I think the answer is b

Answer:

B.

writing sequences of statements in a suitable programming language to produce the desired program

Explanation:

During the coding phase, developers analyze the feasibility of each coding language and begin programming according to coding specifications. Without proper coding, the product won't function according to the customer's specifications, and new codes may need to be implemented

Other Questions
The continent of Australia can be broken down into three main geographical divisions called the _____.Gulf of CarpentariaWestern PlateauNorthern HighlandsEastern PlateauCentral LowlandsGreat Dividing Rangemultiple choice answer! 5. Do you agree that the pandemic served as an awakening call to all of us? Why orwhy not? NEED HELP ASAP!!!!!Can someone help me!???! According to the video, what qualities do Loading Machine Operators need? Check all that apply. college degreehigh-school degree on-the-job trainingcustomer-serviceskills leadership experience Research and Report: Draw a diagram showing hownew mutations can be added to a gene pool. What words best characterize a teenage crush?exciting and easy to handleBchallenging and possibly awkwardimpossible and dangerousD) rewarding and pleasurable Vulnerable Road User Protection Laws __ onwrongful injuries and deaths.A. hinder law enforcement from followingthroughB. discourage law enforcement from followingthroughC. enable law enforcement to follow through Please help me out this is a test. The imaje shows a plate baundary. Arrows have been added to indicate the movement if the plates. what should i do for my room 8. Which is the reference point of a boy leaving home for school?A Canteen B. classroomahomeD. school ground What was instrumental in helping German tanks move quickly through the enemy lines? Which statements describe the effects of indoor pollution? Select two options.Ultrafine particles cause poor health.Nose hairs and mucus catch all the particles before they reach the lungsUltrafine particles are absorbed by the lungs when people breathe.Ultrafine particles contribute to more than 20,000 deaths per year in the United States.Most ultrafine particles can be seen with the unaided eye. Exercising has a positive (effect, affect) on your health. Find the surface area of the pyramid. Tyranny of the President: What if there was no legislative branch and the President had thepower to both make laws and enforce laws?This could be a problem because: Help giving brainliest please help Find the value of x (only answer if you're sure) (HELP I BEG U THERE IS 20 MIN LEFT I NEED SLEEP AND I WILL GIVE BRAINLY ) What type of nonfiction piece is "Harriet Tubman: Conductor on the Underground Railroad? Explain what makes it different from other nonfiction works and from fiction. Please HELP ME!!! IT'S URGENT!!! Please answer this! I'm giving out 85 Points! Don't take the points and leave without first answering my question!Which of the following is the correct level of organization from simple to complex?A. organism - organ - tissue - cellB. cell - tissue - organ - organismC. tissue - organ - organism - cellD. cell - organ - tissue - organism