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

  Generate a database for the gps law firm

Generate a database for the GPS Law firm

  What sorts of network servers and resources

What sorts of network servers and resources.

  Why appropriate organizational culture is needed

Company X is going to expand its information system. To do this, it is going to select and purchase new hardware and software and re-train its employees. The problem-solving team has been built and has specified hardware, software and staff-traini..

  Benefits of the two computer programmers

A multinational corporation transfers the foreign employee to the United States on a L-1 visa. The foreign employee is a computer programmer, working alongside an American computer programmer doing the equal  work.

  Private base class function declared public in derived class

Private base class function declared public in derived class

  Draw a class diagram for the situation

We store each employee's name, social insurance number, address, salary, sex, and birth date, An employee is assigned to one department but may work on several projects, that are not necessarily controlled by the same department.

  Interpreted code execute much more slowly than compiled code

interpreter mode and compiler mode), JavaScript and special case of interpretation of Java programs. Discuss the merits and weaknesses of interpreting, as opposed to compiling, and explain when and why they are used.

  What are all of ip addresses

What are all of IP addresses

  Program of five to ten lines in assembly language

Program of five to ten lines in assembly language

  How to find the number of characters in a string

How to find the number of characters in a string

  Indicating the main factors that influenced policy decision

Hardware maintenance is usually provided by a defined service contract negotiated between the organization purchasing the hardware and the vendor selling the hardware.

  How to set up or recover cybersecurity

How to set up or recover cybersecurity.

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