Write a service package called my-math-library

Assignment Help Computer Engineering
Reference no: EM131857464

Problem

Write a service package (declaration and body) called My_Math_Library that contains a single function called Sqrt that returns the square root of a Float value. Use the function for calculating square roots given in Chapter 6. However, instead of declaring the tolerance as a local constant in the function, declare it in the package body. Use a tolerance value of 0.00001. Write an Ada program to test your service package. In this program prompt the user to enter a Float value. Then display its square root calculated by your service package, its square root calculated by the square root in Ada.Numerics.Elementary_Functions, and the difference between the two calculated square roots.

Reference no: EM131857464

Questions Cloud

Sketch and label the structure of the sun : Sketch and label the structure of the Sun, including the different parts of its interior, surface, and atmosphere.
Venus apparent magnitude : What would Venus's apparent magnitude be if Venus at a distance of 3 parsecs? Note that 1 pc is 2.06 ×105 AU. (Hint: Use the inverse square law.)
Write a driver program to test your package : Write a driver program to test your package. Why do we use types instead of subtypes for these six units? How would you classify this package?
How many times fainter would venus look from a distance : How many times fainter would Venus look from a distance of 3 parsecs? Note that 1 pc is 2.06×105 AU. (Hint: Use the inverse square law)
Write a service package called my-math-library : Write a service package (declaration and body) called My_Math_Library that contains a single function called Sqrt that returns the square root of a Float value.
How would the composition and sizes of the planets : How would the composition and sizes of the planets of the inner solar system be di?erent from what we see today? Explain your answer in a few sentences.
Extend the vector-adt package to include less than operator : Extend the Vector_ADT package to include a negation operator ("-") function that return a vector. Extend the Vector_ADT package to include a less than operator.
How can we possibly know things about the sun : 'How can we possibly know things about the Sun, when it's so hot that we can't send a probe into it?'"
Who should you involve on your team : Who should you involve on your team? Explain the level of concern for this violation.

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