What are the advantages and disadvantages of using


1. What are the advantages and disadvantages of using functions, in your software code, in a software development project? Give some examples.

2. Notice that the main program is initiated like a function:
int main(void)

Is the main program a function? If so, how is it used like a function by other programs? Give examples

3. Show how you might write a "case" statement using only the "if" statement instead of an actual case statement. Hint: Nested if statements. Explain your code

4. How would you error check the users' input to make sure the input was a number, letter, or string?
(In your final IA program you will prompt the user to select a currency to be converted. They will have the options of picking one of five currencies.)

Example:

Please enter a '1' for Canada Dollars

Please enter a '2' for Aus Dollars

Please enter a '3' for Japan Yen

Please enter a '4' for Euros

Please enter a '5' for British Pound

How would I know if the user entered an 'A' for example instead of a '1'?

Solution Preview :

Prepared by a verified Expert
Programming Languages: What are the advantages and disadvantages of using
Reference No:- TGS01255834

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)