Create your own function in c that accepts one input number

Assignment Help Computer Engineering
Reference no: EM131880916

Problem

Create your own Function Create your own function in C that accepts one input number and returns a double number. The themes for the functions should be one of the following:

- Calculates 3.14 times of the square of input number. For example, if 2 is input then 12.56 should be returned. (e.g. 3.14*2*2 = 12.56)

- Divides the number by 3 and returns the result. For example, if 6 was input then 2.0 should be returned.

- Squares the number and returns the result. For example, if 12.1 was entered then 146.41 would be returned. You should provide both your C code and an example call to the C code function.

Be sure to provide an overview of what your function is doing.

Include header documentation in the code as well as internal code documentation. Provide a screen capture showing the results of testing your code in an online compiler. Be sure to test your code with several test cases and show your test case table.

Submit your word or PDF file, along with the C code to your assignments folder no later than the due date. Grading guidelines Submission Points C code for simple function that accepts one input number and returns a double num1ber was provided and compiles without issue. 2 C code provided that correctly calls your simple function.

1 Screen captures of test cases represent a wide variety of possible input values (e.g. large numbers, small numbers (0), negative, or unexpected non-number entries). 1 Code includes Header and Internal Code documentation.

Reference no: EM131880916

Questions Cloud

Is the applied overhead over or under absorbed : If actual production overhead costs incurred in May were $10,900, calculate the applied overhead for the month. Is the applied overhead over or under absorbed?
What major structures are included in taste organ : What major structures are included in taste organ? What are the specialized sensory receptor cells for smell
Discuss algorithms and methods introduced in the paper : What does the paper mainly talk about? Briefly discuss algorithms and methods introduced in the paper and the contribution of the paper to the literature.
Future and present value of annuity due : Future and Present Value of an Annuity Due- what is their future value if the compounding rate is 11.75 percent APR? What is the present value of this annuity?
Create your own function in c that accepts one input number : Prepare your own Function Create your own function in C that accepts one input number and returns a double number.
Understanding of the precontemplation stage of change : Please discuss your understanding of the precontemplation stage of change. What is it? How might you motivate precontemplators
Describe the health information management : Describe the health information management accrediting organization that you have selected.
Suite of e-procurement software tools : What are some major documents that are covered by a suite of e-procurement software tools.
How much money did it cost to buy these shares : You place a market buy order for 350 shares that executes at these quoted prices. How much money did it cost to buy these shares?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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