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
15

Write a procedure with a irative loop inside that adds the users numbers​

Computers and Technology
2 answers:
Jobisdone [24]3 years ago
7 0

Answer:

The first answers is with a loop the second one is straight forward

Aneli [31]3 years ago
5 0

Answer:

The basic layout would be

Function name and in brackets its perimeter values

The while inside declared a variable

Then and the perimeter values and divide by local variable

And end function

You might be interested in
PLSSS HELP!! During the late 20th century, immigration to the United States increased dramatically from
AysviL [449]

Answer:

The correct answer is 3. Asia and Latin America.

Explanation:

America has historically been, and continues to be, one of the main arrival points for migrants from all regions of the world, mainly due to the security and political and economic stability that the United States offers its citizens. In recent years, the main regions that have sent immigrants to the United States have been Asia (Southeast Asian nations, such as Vietnam, the Philippines; authoritarian countries such as China or extremely poor such as India) and Latin America (especially Mexico, Honduras, El Salvador, Guatemala and Nicaragua).

8 0
3 years ago
Share a bit about your experience using Microsoft so far
Andru [333]
Microsoft is very useful for what I do it decently priced for Microsoft word
7 0
3 years ago
Write a program to find a peak in an array of ints. Suppose the array is {-1, 0, 2, 5, 6, 8, 7}. The output should be "A peak is
Sergeeva-Olga [200]

Answer:

Following are the code to this question:

#include<iostream>//declaring header file  

using namespace std;

int main()//main method

{

int n= 6,j=0;//declaring integer variable

int X[n];//defining an array

for(j=0;j<=n;j++)//defining a loop for input value

cin>>X[j];//input value from the user

if(j==0) //defining if block that checks value at beginning

{

if(X[j]>=X[j+1])//defining if block to check to compare first and second value  

{

cout<<"A peak is at array index "<<j<<" and the value is "<<X[j];//use print method to largest value with index number  

}

}

else//defining else block

{

for(j=0;j<=n;j++)//defining for loop for compare other value

{

if(j==n-1) //use if block that checks next index  

{

if(X[j]>=X[j-1])//use if block to compare value  

cout<<"A peak is at array index "<<j<<" and the value is "<<X[j];//use print method to largest value with index number

}

else

{

if(X[j]>=X[j-1] && X[j]>=X[j+1])//comapre value

cout<<"A peak is at array index "<<j<<" and the value is "<<X[j];//use print method to largest value with index number

}

}

}

return 0;

}

Output:

please find the attached file.

Explanation:

In the given code, inside the main method two integer variable "n and j", is declared, in the next step, an array "x"is defined which input the value from the user end.

  • In the next step, multiple if block is used, in the first if block it comapre the first and second value if it grater then it will print the value with its index number.
  • In the next if block, it comapre is next value and if it grater then it will print the value with its index number.  

5 0
3 years ago
What is the purpose of each of the components (each shown with a leader and line) of the circuit shown in the diagram?
MArishka [77]
The upper right is a switch that once the metal contacts the receiving end will complete the circuit. The light is what is powered when the circuit is completed by the switch. The battery which has a positive and a negative, has a lead running from positive to the switch, from the switch to the light, from the light to the negative terminal on the battery to run a complete circuit. The wire is what carries the current. Put it this way, start at the battery and run counter clockwise from there. 1, battery 2, switch 3, light 4, wire. Just a question, is this for 8th grade science learning about energy and electricity?
5 0
4 years ago
An increase in pay because of how well you do a job is called _____.
sleet_krkn [62]
It's either a raise or a promotion.
4 0
3 years ago
Read 2 more answers
Other questions:
  • For this lab, youhave to write a programnamedseriesFunction.cthat prompts user to enter two values, x and n. Then it would use a
    11·1 answer
  • Write a function "nonRepeatings" that takes a string "s3" and returns the non-repeating characters in this string. Sample Input
    11·1 answer
  • Emilio is reviewing the data he collected from historical records about immigration in the united states. He decides to create a
    5·1 answer
  • Beverly is creating a website for her new clothing company. Aside from including photographs, how can she use the index page to
    8·2 answers
  • In preparing his persuasive presentation, Reza should most likely focus on clearly presenting his
    6·2 answers
  • In which type of modulation is a 1 distinguished from a 0 by shifting the direction in whichthe wave begins?
    14·1 answer
  • Está dentro del gabinete del CPU es electrónica y hace que la transferencia de datos se realice contra gran rapidez / ayuda vien
    6·1 answer
  • Hey how was your day 50 points
    10·2 answers
  • output device. Vrite very short answer of the following questions. What is computer hardware? Which dovico in lini nwhich device
    15·1 answer
  • It's in Python, everything sort of explained in the image below,
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!