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
Setler [38]
3 years ago
8

Create the logic for a program that prompts a user for 12 numbers and stores them in an array. Pass the array to a method that r

everses the order of the numbers. Display the reversed numbers in the main program.
Computers and Technology
1 answer:
REY [17]3 years ago
7 0

Answer:

Explanation:

The following program is written in Python. It first creates a method that reverses the array using the built in reverse function. Then it creates the array, creates a loop to ask the user to enter 12 numbers while passing each input into the array. Finally, it passes that array into the previously created reverse method and prints out the new array.

def reverse(num_arr):

   num_arr.reverse()

   return num_arr

num_arr = []

for x in range(12):

   num = input("Enter a number")

   num_arr.append(num)

print(reverse(num_arr))

You might be interested in
You typed the word "weather" when you meant to type the word "whether." When will Writer or Word flag this as a misspelling or a
maria [59]

Answer:

It depends on the structure of the sentence.

Explanation:

This will be shown as grammatical mistake because both the spellings are correct. If we write the word weather instead of the whether, Ms word shows the grammatical mistake. This is because, if we want to write the word whether, we should use or in our sentence. Both of these words are comes together.

Example

I will take a leave whether its raining or not.

In above sentence, both whether and or comes together. If we write weather instead of whether it just show the grammatical mistake in the sentence.

4 0
3 years ago
Read 2 more answers
____ gets its name from the notion that it ignores the traditional A, B, and C class designations for IP addresses and can there
Sedbober [7]

<u>Classless Inter-Domain Routing</u> gets its name from the notion that it ignores the traditional A, B, and C class designations for IP addresses and can therefore set the network-host ID boundary wherever it wants to, in a way that simplifies routing across the resulting IP address spaces.

<u>Explanation</u>:

A router is a networking device that helps in connecting multiple networks. <em><u>Classless Inter-Domain Routing (CIDR) </u></em>is used for creating IP addresses and IP routing. CIDR was introduced in the year 1993 by <em><u>“The Internet Engineering Task Force”</u></em>. The classful network design was replaced by CIDR in the Internet.

The IP addresses are responsible for sending the particular information packets to specific computers. Classless inter-domain routing helps in improving the allocation of IP addresses.

7 0
3 years ago
Read 2 more answers
Create a statement trigger called "bt_maj_adv_trigger" that would be work with both advisor as well as major table. If a record
denis23 [38]

Answer:

Create or replace trigger at_advisor

after delete or insert or update on advisor

for each row

Begin

  if inserting

then

  insert into

     log_maj_adv

  values

     (

        user, :new.adv_code, sysdate, 'insert'

     )

;

elsif deleting

then

  insert into

     log_maj_adv

  values

     (

        user, :new.adv_code, sysdate, 'delete'

     )

;

else

  insert into

     log_maj_adv

  values

     (

        user, :new.adv_code, sysdate, 'update'

     )

;

end if;

End;

Explanation:

as per above answer.

5 0
3 years ago
Read 2 more answers
Please help with this coding problem! Any help is greatly appreciated!!
Nonamiya [84]

The python program is an illustration of python functions; Functions are names statements that are executed when called.

<h3>The order in which the statements are executed?</h3>

The program uses functions, and the functions would be executed when called.

So, the order of the statements is:

  • Line 10
  • Line 11
  • Line 1 to 3
  • Line 12
  • Line 4 to 6
  • Line 13
  • Line 7 to 9
  • Line 14

<h3>The value of x in between lines 11 and 12</h3>

On line 11, the function F(n) is called and executed.

This function multiplies 10 by 5 and assigns the product to x.

Hence, the value of x in between lines 11 and 12 is 50

<h3>The value of x in between lines 12 and 13</h3>

On line 12, the function G(n) is called and executed.

This function adds 25 to the global value of x (100) and assigns the sum to x.

Hence, the value of x in between lines 12 and 13 is 125

<h3>The program output</h3>

On line 13, the function H(n) is called and executed.

This function adds -25 to the global value of x (125) and assigns the sum to x.

The output is then printed on line 14

Hence, the output of the program is 150

Read more about Python programs at:

brainly.com/question/16397886

7 0
2 years ago
Which control chart would you use to track rejections in a maintenance projeg when bug arrival pattern is not constant?
Mkey [24]

Answer:

<u>P chart</u> is the control chart that is used to monitor the rejection or acceptance whenever the bug arrival in pattern is not constant.

Explanation:

In case of only two possible outcomes, such as yes or no, accept or reject, P chart is used as control chart to track rejections. It is used to track rejections whenever the pattern of rejection is not constant. In this type of charts we collect the information from last few days to analyze and predict the next data to track rejections.

<u>For example:</u>

If we want to know that, in admission department of the university, how many students arrives to take admission in university, does not meet the qualification criteria each week. In this case there are only two options available either they meet criteria or not. In this case we use P chart with the help of previous week data to analyze the no. of students who are meeting qualification criteria in this week.

3 0
3 years ago
Other questions:
  • If you quote an author from a website in a paper, it will be important to create a _____ in your writing to give them credit for
    7·2 answers
  • Which of the following information is most important to include in a timeline?
    14·1 answer
  • What is the term used for describing the judgement or common sense part of problem solving​
    11·1 answer
  • Which of the following is not an Operating System? (1 point)Windows
    14·1 answer
  • Which two statements are true about the Data Sync functionality? (Choose two.)
    15·1 answer
  • Which of the following browsers was introduced with windows 10?
    10·1 answer
  • Favorite color should it be stored why?or why not?<br>​
    6·1 answer
  • Need help asap<br> give the correct answer!!
    15·2 answers
  • Write a method that takes two circles, and returns the sum of the areas of the circles.
    10·1 answer
  • Refund please, this has not helped at all.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!