Question

please help with these two example, i want to double check my work. thanks 1. sum:=0...

please help with these two example, i want to double check my work. thanks

1.

sum:=0

for i= 1 to 5
sum:=sum + i
end- for


2.

sum:=0

for i= 4 to 12
sum:=sum + i
end - for

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)
sum = 1+2+3+4+5 = 15
Answer: 15

2)
sum = 4+5+6+7+8+9+10+11+12 = 72
Answer: 72
Add a comment
Know the answer?
Add Answer to:
please help with these two example, i want to double check my work. thanks 1. sum:=0...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I want to double check my work to see if I did it correctly. Please compare...

    I want to double check my work to see if I did it correctly. Please compare my answers with yours, thank you. XYZ has a total debt ratio of 0.53. What is its equity multiplier? Answer to two decimals. 2.13 3) Total-deltraho-1053 TOTO Tota O.s3 Totul 0 53 1.13 debt

  • I want to double check my work to see if I did it correctly. Please compare...

    I want to double check my work to see if I did it correctly. Please compare my answers with yours, thank you. Based on the following information, calculate the sustainable growth rate (in percent, to two decimals places) for Aurora Co.: Profit margin-8.31 percent, capital intensity ratio = 0.59, debt-equity ratio = 0.51, net income $121944, dividends paid $52715. 0.1 01 043 0-1012213 10. Ian 2a 043224

  • Please show the code and the plots. I want to double check my work. Plot the...

    Please show the code and the plots. I want to double check my work. Plot the following functions, r(t), in MATLAB: 1. c(t) = real(e32w10t) 2. r(t) = real(e)2x10tejš) 3. r(t) = real(ej2w10teji) For problem 4, assume the following: 1. Sampling frequency: Fs = 1000 samp 2. Signal length: T=1 second

  • I want to double check my work to see if I did it correctly. Please compare...

    I want to double check my work to see if I did it correctly. Please compare my answers with yours, thank you. A firm has annual sales of $338024. Earnings before interest and taxes is equal to 5.86 percent of sales. For the period, the firm paid $5728 in interest. What is the profit margin (in percent) if the tax rate is 27 percent? Answer to two decimals. 0.3 aal to S80% of sales Snles 238 2 Earamny esone taxes...

  • Please help look this over I just want to double check my answer! thanks! Critical Thinking...

    Please help look this over I just want to double check my answer! thanks! Critical Thinking Questions: 2) The polymerization of ethylene ("monomer") with a radical initiator follows the same chain reaction. Please write the mechanism (all arrows) from ethylene (==ethene) to polyethylene). Start with an initiator of R-R. After breaking the initiator bond to your radicals, use either radical for your 1"' reaction with ethylene. Indicate repeating reactions by multiple arrows. Write the final product in a common short...

  • I want to double check my work to see if I did it correctly. Please compare...

    I want to double check my work to see if I did it correctly. Please compare my answers with yours, thank you. A fire has destroyed a large percentage of the financial records of the Fire Company. You have the task of piecing together information in order to release a financial report. You have found the return on equity to be 14.23 percent. Sales were $1879870, the total debt ratio was 0.36, and total debt was $699911. What is the...

  • Hi I want to double check this one. Thanks! 2. Compute the eigenvalues of A-0 31...

    Hi I want to double check this one. Thanks! 2. Compute the eigenvalues of A-0 31 0 5 -1 λ1_Α. (a) Simplify lÀI-d by expansion of minors. Show the necessary details. (b) Compute |λ/-A-0 (c) (2 points) Solve λ from the characteristic equation a-A-o

  • please show all work so i can double check my work and answer that i have....

    please show all work so i can double check my work and answer that i have. Thanks. a kt", k, n -1 are constants X P At t 0, P was located at xo and had a speed vo. Find the velocity and position of P as functions of time (and some or all of the parameters k, n, vo, Xo). Then, determine the special cases of your results for v, x corresponding to k αρ, m0.

  • I want to double-check that my method is right so please post a detailed workup Solve...

    I want to double-check that my method is right so please post a detailed workup Solve the IVP = 5 3 -3 :] [:) +(64*] []-[-] Y 1

  • can someone help? I have my answers just want double check. thanks 10. Two fair dice...

    can someone help? I have my answers just want double check. thanks 10. Two fair dice are rolled and the sum of the numbers on their faces is observed. Find the probability that the sum is: a. Less that 2 b. Greater than 9 c. 7 d. Less than 5 11. Probability Experiments are described below. Describe the sample space for each of the following. 1. Tossing a coin. 2. Guessing the last digit of a telephone number. 3. Tossing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT