1) Modify the EveOdd.C program given in Lab (3) so that it takes the following as its input but it generates similar output.

The inputs are :

int start; // This is the starting value of
the sequence.

int skip; // This is step size (values that
we skip from one number to the next.

int end; // This is the ending value of the sequence

Note that, this time instead of counting some numbers we will end the
sequence once we

reach the end value.

Example:

start = 1

skip = 3

end = 14

Even Odd

1

4

7

10

13

Since the next number 13+3 = 16 is larger than 14 we stop the program at this point. Turn ina hard copy of your program next lab (next Wednesday). Submit an electronic copy by the due date:

% ~rt/submit1440_103 lab3 lab31.C

2) Modify Program (1) in Lab (3), to do two things differently.

1) The new code (lab32.C) uses do...while instead
of while ... loop, and

2) The program asks users whether they want to enter
a new grade, if the answer is Y or y, it computes the letter grade.
If the answer is N or n, it ends the program. This way you do not need
to keep track of how many students and you let the user decide the termination
of the code by entering n or N.

Turn in a hard copy of your program (lab32.C) next lab (next Wednesday).
Submit an

electronic copy by the due date.

% ~rt/submit1440_103 lab3 lab32.C

Example:

Input:

Do you wish to compute a letter grade? y

Enter a Numeric Grade: 95

Output:

95 is an A

Excellent, your hard work paid off

Input:

Do you wish to compute a letter grade? n

Output:

Thank you for using the grader program.