Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array. 14 36 31 -2 11 -6 Sample Run [14, 36, 31, -2, 11, -6] (In edhesive please)

Write A Program That Uses An Initializer List To Store The Following Set Of Numbers In An Array Named

Answers

Answer 1

Answer:

nums=[14, 36, 31, -2, 11, -6]

print(nums)

Explanation:

I got a 100%

Answer 2

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

    int nums[6] = {14, 36, 31, -2, 11, -6};

    cout<<"[";

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

    cout<<nums[i];

    if(i != 5){cout<<", ";}

    }

    cout<<"]";

   return 0;

}

Explanation:

This initializes the array

    int nums[6] = {14, 36, 31, -2, 11, -6};

This prints the opening square bracket

    cout<<"[";

This iterates through the array

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

This prints individual elements of the array

    cout<<nums[i];

Until the last index, this line prints comma after individual array elements

    if(i != 5){cout<<", ";}

    }

This prints the closing square bracket

    cout<<"]";


Related Questions

In three to four sentences, describe how you can listen actively.

Answers

Answer:

Looking at the speaker, paying attention. Jotting down notes

Explanation:

Unlike when writing in a programming language, there are no set rules that must be followed when writing pseudocode. What do you think are some good guidelines to follow when writing pseudocode? Why are these guidelines important?

Answers

Answer:

Explanation:

Pseudocode may not have a set number of rules of guidelines but there are still some habits that should be followed. This includes having only one statement per line and add the END keyword to loops. Both of these rules/habits will drastically increase the readability of the pseudocode and allow you to know exactly where a certain loop starts and ends. Since loops can become difficult to read if they have a lot of code within them. Another good guideline to keep in mind is to simplify the code as much as possible do not add unnecessary pseudocode if it is not absolutely needed.

A piece of hardware used to enter data into a computer: Output Device Backing Storage Device Programming language Input Device

Answers

Answer:

Input Device.

Explanation:

A piece of hardware used to enter data into a computer is known as an input device.

Basically, this input device is also known as peripherals and it comprises of all of the devices that are interconnected with the CPU. Some examples of input devices used with a computer includes keyboards, scanner, mouse, etc. They avail the end users the ability to send an information to the computer system for processing into a desired output.

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

Multiple Select
How do you print a document?


Click on Print in the system tray.

Click on the Print icon at the top of the screen.

Select Print from the File menu.

Select Print from the Start menu.

Answers

Select Print from the File menu.

Explanation:

Other options listed are either impossible or a bit difficult to achieve. "Selecting Print from the File menu" not only allows for easy access, it also ensures that the target document is being printed without much effort. Many applications have a file menu from where certain processes could be accessed and done easily.

Hope this helps!

To print a document the correct option is select Print from the File menu.

The correct answer is (c).

Select Print from the File menu: In various applications, including word processors, PDF readers, and image editors, you can find a "Print" option in the "File" menu. Clicking on "File" and then selecting "Print" will open the print dialog box.

Therefore, To print a document the correct option is select Print from the File menu. The correct answer is (c).

To know more about the document:

https://brainly.com/question/33561021

#SPJ4

Plz tell the answer I I'll mark u as the brainliest

Answers

Answer:

oo 89 po yyuyuyoioo9ii5645487)89)89)89)89)80(98(98(98(87)()

Explanation:

okkkkkk

Which of the following describe audio-editing software? Choose all that apply.

syncs audio with video

is used only by professionals

modifies analog sound

modifies sound quality

mixes sound

Answers

Answer:

1,4,5

Explanation:

Complete the statement below using the correct term.


One problem with _____
is that often many copies of the same document are made.

Answers

One problem with PRINTER is that often many copies of the same document are made.
printers or a printer !

These principles are essential to the design and development and production of clothing
A.Elements of matter
B.Principle of Design
C. Collor wheel
D. Collor Harmonies

Answers

Answer:

B. Principle of Design

Explanation:

Principle of Design are principles which are essential to the design and development and production of clothing.

Basically, Principle of Design comprises of the sets of rule and standard that essentially provide a framework and guide fashion designers in the creation of fashionable clothing for their clients or customers.

Hence, it is very important for all fashion designers to understand and judiciously use the Principle of Design while working on a piece of clothing.

definition of laptop

Answers

a device that sucks bc mien broke

Answer:

a computer that is suitable and portable for use while traveling.

Enter a formula in cell G5 that divides the sum of cells C5 through F5 by cell B5. Write the formula so that when you copy it to cells G6:G7, Excel adjusts all the cell references according to the destination cells. Verify your formula by checking it against the values found in cells G5, G6, and G7

Answers

Answer:

=SUM(C5:F5/B5)

Explanation:

The sum of C5:F5 divided by B5

A computer scientist creates an app that tells you a funny joke each time you touch the Joke button.
a. What does the view layer for this app contain?


b. What does the controller layer do for this app?

Answers

Answer:

B And A

Explanation:

B: The controller renders a responce it can be seen as a manager and other parts are its workers and makes sure that other parts are "working" well

Answer:

He's actually right- it's B and A.

Explanation:

which of the two attributes should have the name of javascript as its value?

Answers

I’m extremely sorry if this doesn’t help but here’s what I found:


JavaScript objects have two types of properties: data properties and accessor properties.




I also found this:



attributes : a collection of objects that belong to a built-in Attr class, with name and value properties. HTML attributes have the following features: Their name is case-insensitive ( id is same as ID ). Their values are always strings.

Use the drop-down menus to complete the statements about the Spelling and Grammar dialog boxes.
Press the key to access the Spelling and Grammar dialog box.
To accept Outlook's suggestion to correct an error, click the
button.
To leave a possible error intact for just one occurrence, click the
button.

Answers

Answer:

F7

Change

Ignore once

Explanation:

The other answer is no help.

4. Sameer appointed as journalist in big news channel. News channel has its own podcast. Explain to Sameer how podcast is useful to him and subscriber of news channel in Digital journalism.

Answers

Answer:

How podcast is useful to Sameer:

1. Since the news channel has its own podcast, it will increase traffic in this channel once the contents are what people like. This will help Sameer to be more efficient in service delivery.

2. It will be useful to Sameer if he engages his audience, as a podcast provides this opportunity.

3. Podcast helps organize thoughts and would improve Sameer's public speaking skills.

4. Sameer could use the podcast in the news channel to build a strong relationship with his listeners.

How podcast is useful to the subscriber of a news channel:

1. The subscriber could do other things at the same time as they are listening to a podcast.

2. For places where listening would only be possible for example in the car, an audio podcast would be an excellent option.

3. A subscriber can replay podcasts and hear them anytime, this shows the convenient nature of podcasts.

4. Subscribers could listen to podcasts in places where the internet may not be available.

Explanation:

Digital journalism utilizes technology like the internet to post content.

A podcast is a form of digital journalism where audio discussion or a program that would have been televised is recorded and posted on the internet where subscribers can download and listen to it through a dedicated news channel. Though video podcast exists, most are in audio format.

A screw has 4 threads per centimeter and a circumference of 2 centimeters. What is the mechanical advantage of the screw? 2 4 6 8

Answers

Answer:

M.A = 8

Explanation:

Given the following data;

Circumference = 2cm

Number of threads = 4

To find the mechanical advantage (M.A);

[tex] Mechanical \; advantage = \frac {Circumference}{Pitch} [/tex]

But, [tex] Pitch = \frac {1}{number \; of \; threads} [/tex]

[tex] Pitch = \frac {1}{4} [/tex]

Pitch = 0.25

Substituting the values into the equation, we have;

[tex] M.A = \frac {2}{0.25} [/tex]

M.A = 8

Therefore, the mechanical advantage of the screw is 8.

Answer:A screw has 4 threads per centimeter and a circumference of 2 centimeters. What is the mechanical advantage of the screw?

2

4

6

8 THIS IS THE CORRECT ANSWER

Explanation:

Edge 2021 Test Correct

The dns server translates the URL into the IP address 8.8.8.8. What is the next step in the process?

Answers

Answer:

The web browser sends an HTTP request to the IP address, the IP address then sends the content that are displayed by the browser

Explanation:

The process of converting the typed in URL to a displayed page is as follows;

1) The typed in URL is sent to a DNS recursor by the browser

2) The recursor gets the DNS record for the domain from the cache if the record is cached or when the DNS record for the domain is not cached, the recursor makes a requests to the DNS root from which the name of the TLD nameserver is received

3) The TLD nameserver is contacted by the resolver to obtain the authoritative nameserver's IP address

4) With the information, the resolver contacts the authoritative nameserver and obtains the domain's IP address for the domain the resolver contacts

5) The obtained IP address for the URL's domain is then sent to the browser by the resolver

6) An HTTP request is sent by the browser to the IP address and the data received by the browser from that IP address is rendered and seen as the page content.

while organizing his computer's power cords matt realize his printer power cord is frayed what should matt do to prevent damage and still able to use the printer​

Answers

Explanation:

You can take your time neatly wrapping the cable to reinforce it, but the best way to prevent any more damage is to wrap the split or fraying part of the cable several times with electrical tape, then work your way out from that spot. This immobilizes any breaks in the cable and helps prevent further damage. Just don't expect it to last forever.

Answer:

wrap the frayed part with electric tape

Explanation:

because it flows the electric currents or whatever

Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks.
Each record is composed of the catalog number, the type of item, its color, the length, width, height, and the quantity in stock.
Sample rows of the file are below.
234 purse, blue, 12,4,14,10
138,purse,red, 12,4,14,4
934 backpack, purple 25,10,15,3
925, backpack, green, 25,10,15,7

Answers

The complete code to finish this program to analyze the inventory for a store that sells purses and backpacks is written below.

What is coding?

Coding, often known as computer programming, is the method through which we connect with computers. Code informs a machine what to do, and writing code is similar to writing a set of instructions.

import csv

fileIn = open("data/bags.txt","r")

countPurse = 0

textFile= csv.reader(fileIn)

for bag in textFile:    

  if bag[ 1 ] == 'purse':

      countPurse = countPurse + int(bag[6])

fileIn.close()

print("Number of purses:",countPurse)

Therefore, the complete code is written above.

To learn more about coding, refer to the link:

https://brainly.com/question/20712703

#SPJ1

Read the scenario below, and then choose the right type of computer for each person from the drop-down menus. Three of your friends are in the market to purchase a new computer. Sera does not have a big budget, but she needs a portable computer. Arturo is worried about viruses and has a high budget. Portability is not an issue. Kazuma wants a computer that does not cost too much and is easy to upgrade.

Answers

Answer:

- laptop running Windows

- desktop computer running a Mac OS

- desktop computer running Windows

Explanation:

just took it on edg

Answer:

1. Laptop Running Windows

2. Desktop Computer Running a Mac OS

3. Desktop Computer Running Windows

Explanation:

1. Sera does not have a big budget, but she needs a portable computer. Laptop Running Windows

2. Arturo is worried about viruses and has a high budget. Portability is not an issue. Desktop Computer Running a Mac OS

3. Kazuma wants a computer that does not cost too much and is easy to upgrade. Desktop Computer Running Windows

I hope this helps.<3

Have a nice day.<3

Practicing touch typing allows you to create documents efficiently and accurately.

True or false

Answers

I think the answer to this would be true

FIRST PERSON GETS BRAINLIEST!!!!!!!!!!!!!!!!!!!!!!!!
Why did Jean get an error when he tried to use the variable my Grade? Variables should be one word. Variables should start with a number. Variables should always be camelcase. Variables should not have spaces.

Answers

Answer:

Variables should not have spaces

Explanation:

When you have a multi-word variable, it is convention to leave the first word lowecase  and make the first letter of the next words capital. However, mostly every programming language does not allow primitive variables with spaces.

ex: myWordVariable = 5

Answer:

variables should not have spaces.

Explanation:

It is basic knowledge that variables should not have spaces also its listed in the lesson page if you are using flvs of stuff to not use in variables. also you  never use any of python keywords

Never name a variable with any of python’s keywords  

Python Keywords    

False  

None  

True  

and  

as  

assert  

break  

class  

continue  

def  

del  

elif  

else  

except  

finally  

for  

from  

global  

if  

import  

in  

is  

while  

try  

or  

pass  

print    

return    

with    

Global  

Which phrase suggests feedback?
Richard and his team recently developed a software application. They used the latest technologies in programming to code the software. A
team of developers coded the application another team tested it. The database team developed the backend. The client highly appreciated
Richard and his team. They also gave suggestions on some modules and said they would like to work with his team in the future.

Answers

Answer:

They also gave suggestions on some modules and said they would like to work with his team in the future.

Explanation:

This statement suggests feedback because, here the client gives Richard and his team some suggestions on what they can do with the modules. It implies that the client must have tested the software application and observed its functionality.

Answer:

gave suggestions

they said they would like to work with his team

Explanation:

Just took test 5/5

All of the following are examples of software, except:

Question 4 options:

Video games


Speakers


Web browsers


Photo editors

Answers

Speakers is your answer

The speaker is not an example of the software. Then the correct option is B.

What is the software?

Software is a collection of instructions, data, or computer programs used to run computers and carry out particular activities. Software instructs a computer on how to run, to put it another way.

It's a general phrase for programs, scripts, and apps that operate on computers, cell phones, laptops, and other intelligent watches. Hardware, or the actual components within a computer that does the job, competes with software.

All of the following are examples of software, except the speaker.

The actual parts of an electronic system, such as a computer, include the hardware, wiring, and other parts. Speaker is a hardware device. Then the correct option is B.

More about the software link is given below.

https://brainly.com/question/1022352

#SPJ6

Every finger has a key it should be resting on when you are not typing
1. False
2. True

Answers

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

the anwser is true!

Which feature is used to change how a presentation moves from slide to slide?

Answers

Answer:

Click Slide Sorter on the View menu. On the Window menu, click Arrange All to display both presentations. Click the slide you want to move, and drag it to the other presentation. If you want to copy the slide across then hold down Ctrl as you drag the slide.

Explanation:

What are three primary reasons for asking others to review and comment on a presentation?
O to document feedback, edit images, or share credit for the presentation
O to review content for accuracy, suggest improvements, or document feedback
O to suggest improvements, maintain record keeping, or review images for accuracy
O to maintain record keeping, share credit for the presentation, or suggest improvements

Answers

Answer:

to review content for accuracy, suggest improvements, or document feedback

Explanation: answer is b

This is the question

Answers

Answer:

I dont know it sorry

Explanation:

i would help u

2) What are two reasons we analyze algorithms?
a) make decisions about what algorithms to use
b) ease of coding
c) sorting data
d) predict performance

Answers

It’s a making sections about what algorithms to use

Answer:

Make decisions about what algorithms to use

Explanation:

Why Artificial intelligence is a risk to a human being ? ​
please answer fast

Answers

Answer:

Artificial intelligence is the intelligence or logical reasoning exhibited by artificial devices, as opposed to natural intelligence exhibited by humans and animals.

The main threat that artificial intelligence poses to humans is not, as many fantasize, the possibility of a future apocalyptic scenario; but the very limitation that artificial intelligence makes to human intelligence: each time the human atrophies his capacities more, since he relies on artificial intelligence processes instead of using his own. A clear example is the GPS, where the human no longer has to exercise his memory to know a path, but simply depends on what the map tells him in his car.

Other Questions
Match the name to the correct description. 1. Polyphemus sea monster with six dog heads 2. Lotus-eaters enemies who killed six men from each of Odysseus's ships 3. Cicones creatures who eat plants that make them lethargic 4. Scylla Cyclops 5. Elpenor companion of Odysseus who dies at Circe's house True or falseIslam was highly influential among the west Africans in the 1400s. Fruit Fly Eye Color (sex-linked): Red Eye (Dominant - R), White Eye (Recessive - r): How many female fruit fly offspringwould be expected to have white eyes from the following cross? Parents: White Eye Female x Red Eye MaleA.) 0%B.) 25%C. 50% help I don't know this outside: its time to do my homework its time to be productive in my head: We did not learn thissss. If you have 9/10 of a pound of granola, how many 1/5 pound bags can you fill? The entry tickets at a community fair cost $5 for children and $10 for adults. On a certain day 1000 people entered in the fair and $7,100 is collected. How many adults and how many children were at the fair? Bunker makes two types of briefcase, fabric and leather. The company is currently using a traditional costing system with labor hours as the cost driver but is considering switching to an activity-based costing system. In preparation for the possible switch, Bunker has identified two activity cost pools: materials handling and setup. Pertinent data follow: Fabric Case Leather Case Number of labor hours 15,000 9,000 Number of material moves 440 660 Number of setups 40 80 Total estimated overhead costs are $150,000, of which $110,000 is assigned to the materials handling cost pool and $40,000 is assigned to the setup cost pool. Cell Wall Functions: 1.Structure and protection2.Organizes DNA3.Digests, recycles materials4.all of the above PLZ HELP ME WITH THIS?!? What is (f*g)(x) f(x) = - x ^ 2 g(x) = x + 1 The students meet with a team of geologists that is studying the rock layers at the first roadcut. The geologists find fossils of the same kind of organisms in layers P and Q. Which of the following conclusions about the layers at the second roadcut is most likely trueA) The fossil found at the first roadcut should only be found in layers P and Q at the second roadcutB)The fossil found at the first roadcut should be found in layers P, N, and Q at the second roadcutc) The fossil found at the first roadcut should only be found in layer N at the second roadcut D) The fossil found at the first roadcut should not be found in any layers at the second roadcut. baa baa the black sheep had 7 pounds of wool if he separated the wool equally into 3 bags how much wool would be in 2bags Which would have the greatest evaporation: pure water or salt water? Which of the following is NOT a category that is used to describe soil?A particle sizeB absorbencyC densityD texture PLEASE I NEED ANSWERS !!!1.What is a bully?2.Identify some bully behaviors.3.What can you do to stop bullying?4.What are three school rules that could be made to prevent bullying?5.What consequences should be in place for someone who bullies? 6.Write a dos and donts list to prevent bullying.( i know whats bully but some people have better answers explaining so thats why i need answers! ) Need this now!! Please help I dont understand it Whats the value of x Georgia is able to save $58 a weekfrom her earnings for babysitting herneighbor's daughter. How much moneyis Georgia able to save in 3 months? A(n) ___ about my great-grandfather is that he was born in 1922. Spanish A. Look at the underlined word(s) and circle the correct reflexive pronoun for eachsentence.