Watch Video Lecture Segment 10 (Links to an external site.)Mixed Type Expressions. Near the end of Segment 10 there are some practice exercises. This is Slide 10.7(Links to an external site.). Try...

1 answer below »



    1. Watch
      Video Lecture Segment 10 (Links to an external site.)Mixed Type Expressions.
      Near the end of Segment 10 there are some practice exercises. This is
      Slide 10.7(Links to an external site.).
      Try them with a pencil. Then write a C program to verify your answers. If your answers on paper
      don’t match, go back to understand why. Put a message in the comments stating that you have successfully completed this task. No need to submit any code for this one.
      (10 points)

    2. Watch
      Segment 11(Links to an external site.)and note that it is quite long – more than an hour. There are 3 problems solved. Test Scores, Gas Mileage, and Factorials. Type along with the video, pausing where necessary. Get each of these programs to work. Walk through the code in the debugger. Put a message in the comments stating that you have successfully completed this task. No need to submit any code for this one.
      (10 points)

    3. Include the use of ++, += in a program that achieves the following using loops.
      (You can do these in one program or each one in a small program, it doesn’t
      matter.)
      (20 points for each of the 4 parts)




  • Create a loop that will output all the multiples of 5 that are greater than zero and
    less than 60 (do not include 60).
    5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55

  • Create a loop that will output all the numbers less than 200 that are evenly
    divisible by both 2 and 7.
    14 28 …

  • Create a loop that will calculate the sum of the multiples of 8 that are between 100
    and 500. Output the sum only.

  • Create a loop that will output the sum of all odd numbers between 20 and 100.



Deliverables



Include following in a word document to submit -



  1. Part 1 completion message.

  2. Part 2 completion message.

  3. The code and output screen shots for all four problems in part 3 above. (no
    design tool required).

Answered Same DayMar 12, 2021

Answer To: Watch Video Lecture Segment 10 (Links to an external site.)Mixed Type Expressions. Near the end of...

Aditya answered on Mar 15 2021
139 Votes
Part 1 :
Part 2:

Part 3:
1) Create a loop that will output all the multiples of 5 that are gr
eater than zero and
less than 60 (do not include 60).
5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
#include
int main()
{
for(int i =5;i<60;i=i+5 )
{    
printf("%d ",i);
}
return 0;
}
2) Create a loop that will output...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here