Design a


QUESTION 1

Create your own While-End (or For-End) repetition structure that includes a nested if-then selection structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example. Be sure to provide an overview of what your repetition structure is doing. Provide a walk-through of your code and the values at each iteration of the loop

QUESTION 2

QUESTION 2 IS ALL THE 4 QUESTIONS THAT NEED TO BE ANSWERED.

This conference requires you accomplish the following actions:

1) Design an algorithm that allows a user to enter a character value for the month of the year and outputs the number corresponding to the month (e.g. input of D results in output of 12, input of N results in output of 11, etc.). You must use a switch statement to accomplish this conversion from character to number. Any months that start with the same letter can be addressed as you desire as long as the user input for those respective months is a single character.

2) Provide the C program that does this conversion.

3) Using one of your fellow students submission, modify their code so that the corresponding month number results in the output of the month character (e.g. input of 12 results in output of D, etc.).

4) Provide assistance to your fellow classmates as needed. Feedback should be based on concepts covered up to this point in the class (e.g. program error resolution guidance, inclusion of line and block comments in code, code spacing and segmentation of code blocks to ensure better readability/troubleshooting, etc.).

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Design a
Reference No:- TGS01148154

Now Priced at $40 (50% Discount)

Recommended (92%)

Rated (4.4/5)

A

Anonymous user

5/27/2016 3:49:45 AM

Provide an illustration or description for the questions illustrated below in a word paper using Times New Roman font. 1) Design an algorithm which allows a user to enter a character value for the month of year and outputs the number corresponding to the month (example: input of D outcomes in output of 12, input of N outcomes in output of 11 and so on). You should make use of a switch statement to achieve this conversion from character to number. Any months which begin with similar letter can be addressed as you want as long as the user input for such respective months is a single character. 2) Give the C program which does this conversion. 3) By employing one of your fellow student’s submissions, modify their code in such a way that the corresponding month number outcomes in the output of the month character. 4) Give assistance to your fellow classmates as required.