The advantages and disadvantages of using functions

Assignment Help Computer Engineering
Reference no: EM1326995

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'?

Reference no: EM1326995

Questions Cloud

Attributes described by tichy developed a team : Analyze and explain how a leader with the attributes described by Tichy developed a team.
Rules for governmen employment strike : What would be the strongest reasons in support of no-strike rules for government workers?
Why do systems deployments or implementations fail : Why do systems deployments or implementations succeed.
Explaining leadership and management : In a 3 page paper define leadership and management.
The advantages and disadvantages of using functions : Show how you might write the "case" statement using only the "if" statement in its place an actual case statement. Hint: Nested if statements. Explain your code.
Explaining autocratic decision-style methods : Research and discuss a leader, executive, or manager who is famous for theory X, autocratic decision-style methods.
Does not economic growth and the innovation that generates : Does not economic growth and the innovation that generates it, produce more and more substitutes or new discoveries of reserves
Explaining the employee privacy rights : Public sector employees and private sector employees with regard to employee privacy rights?
Explain protocol and architecture : define Connection Oriented Protocol and Connectionless Protocol.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Process of formulating an entry strategy

Describe the process of formulating an entry strategy. The answer requires to be at least 300 words. Also include any of the references.

  Discuss the effectiveness of these security features

Secure Web sites often include 'enhanced security questions' or 'security images' in an attempt to assure that only authorized users could access the sites. Research and discuss effectiveness of these security features.

  Express methods of unit, system, integration

Express each of these testing methods, unit, system, integration, user acceptance and regression testing.

  Too much control is counter-productive define

"Too much control is counter-productive." Do you agree? Provide reasoning of the view.

  Intermediate programming

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Fixing errors in software to control the security

While reading the code top-down, we always try to use our expectations regarding the application domain in order to predict what major functional elements of the code will be.

  Problems on relation and functional dependencies

Problems on  relation and functional dependencies

  Produce a decision table

Produce a decision table

  Explaining arp command

The arp command: arp -s InetAddr EtherAddr enables you to manually add an entry to ARP cache which resolves the IP address InetAddr to the physical address EtherAddr.

  Code to declare the four pointer variables

In C++: A pointer variable may consist of a pointer to a valid object, a pointer to a deleted object, NULL, or the random value. Write down the code which generates and sets four pointer variables a, b, c, and d to display each of these possibilit..

  Find the budget areas and the resulting balance

You are to make a budgeting report for a local company using a C++ program. There are two input files. The first input file lists the individual areas a budget has been defined for. Two of these are two checking accounts where the budget is the am..

  Writing down the code

Suppose that the a, b and c are char variables has been declared. Write some code which reads the first character of next line into a.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd