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
saul85 [17]
3 years ago
11

function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a

while loop that assigns summedValue with the % sum of all values from 1 to userNum end
Engineering
1 answer:
Alexeev081 [22]3 years ago
8 0

Answer:

function summedValue = SummationWithLoop(userNum)

% Summation of all values from 1 to userNum

  summedValue = 0;

  i = 0;

  % use a while loop that assigns summedValue with the

  % sum of all values from 1 to userNum

  while(i <= userNum)

      summedValue = summedValue + i;

      i = i + 1;

  end

end

You might be interested in
Implement the following Matlab code:
vagabundo [1.1K]
28384 *x soít cos estematema
3 0
3 years ago
A constant-head permeability test gives the following information: - Water flows horizontally through the soil sample. - The hei
Marysya12 [62]

Answer:

Complete answer to the question is explained in the attached files.please have a look on it.

Explanation:

5 0
3 years ago
In some companies, workers who increase the quantity or quality of their work receive a. benefits. c. performance bonuses. b. pe
Greeley [361]

Answer:

performance bonuses

Explanation:

3 0
3 years ago
PLEASE QUICK!!! what phrase describes an ad hominem fallacy?
Igoryamba

Answer:

personal attack

Explanation:

it is personal attack

5 0
3 years ago
1. A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions
otez555 [7]

Answer:

Maximum number of vehicle = 308

Explanation:

See the attached file for the calculation.

6 0
3 years ago
Other questions:
  • A disk brake has two pads which cover 45 degrees of the disk. The outside radius is 6.0 inch and the inside radius is 4.0 inch.
    5·1 answer
  • The textile industry has seen steady growth in the United States.<br> O True<br> O False
    12·1 answer
  • Which of the code pieces below should replace the underline?public class Test{public static void main(String[] args){Test test =
    8·1 answer
  • Why do we write proton ions first before electron ions? <br>​
    10·1 answer
  • Supón que tienes que calcular el centro de gravedad de una pieza
    11·1 answer
  • Define the hydraulic diameter for a rectangular duct
    7·1 answer
  • Lockheed Martin Skunk Works designs and produces aircraft for defense using rapid prototyping tools
    11·1 answer
  • I don't know what is this​
    9·1 answer
  • Which of the following is NOT a line used on blueprints?
    13·1 answer
  • Which of the following would be addressed by an employer completing an EAP template?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!