Question

For your initial posting pick one of the popular computer programming languages (e.g. Java, C, C++,...

For your initial posting pick one of the popular computer programming languages (e.g. Java, C, C++, C#, Python, Ruby, etc.), determine the name of one of the function libraries that is provided by this programming language.

List and describe at least 3 of the library functions in this library.

Describe how this library is included in the source code for a program in this language so that to use a function only the function's name need to be mentioned.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

C++

Library -------- <cmath>

Functions

  1. sqrt(x) ------returns the sqrt of x
  2. pow(x,y) ----- returns x raise to power y
  3. min(x,y) ----- returns the minimum value among x and y

Usage

#include <iostream>
#include <cmath>
using namespace std;

int main() {
  
   //sqrt(x)
   printf("Sqrt of 25 : %.2f",sqrt(25));
  
  
//pow(x,y)
printf("\n2 raise to power 5 : %.2f",pow(2,5));
  
  
//min(x,y)
printf("\nMin of 45.6 and 78.3 : %.2f",min(45.6,78.3));
  
  
   return 0;
}
Output:

Sqrt of 25 : 5.00
2 raise to power 5 : 32.00
Min of 45.6 and 78.3 : 45.60

Do ask if any doubt. Please up-vote.

Add a comment
Know the answer?
Add Answer to:
For your initial posting pick one of the popular computer programming languages (e.g. Java, C, C++,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Java is one of the most popular programming languages in the world. Name 3 characteristics that...

    Java is one of the most popular programming languages in the world. Name 3 characteristics that are unique to this programming language and contribute to its popularity. Once the requirements are understood name each step, a Java Project must go through before you can execute the code on a computer. There are 3 types of errors that you can encounter as a Java programmer. Syntax Errors, Runtime Errors, and Logic Errors. Explain what each of these errors mean and give...

  • 2-Many programming languages facilitate programming in more than one paradigm. TRUE OR FALSE 3-If a language...

    2-Many programming languages facilitate programming in more than one paradigm. TRUE OR FALSE 3-If a language is purposely designed to allow programming in many paradigms is called a _______________ language. What term goes in the blank? A: compiled B: interpreted C: multi-access D: multi-paradigm E: procedural 4-A "Hello, World!" program is used to do which of the following? A: Configure the compiler cache for optimizing results. B: Illustrate the basic syntax of a programming language and often is the very...

  • A computer scientist is investigating the usefulness of two different design languages in improving programming tasks....

    A computer scientist is investigating the usefulness of two different design languages in improving programming tasks. Twelve expert programmers, familiar with both languages, are asked to code a standard function in both languages, and the time in minutes) is recorded. The data follow: Time Design Language 1 Design Language 2 17 18 - 2 3 14 20 5 6 - - 16 21 13 18 24 16 14 21 23 13 18 - - 8 9 10 11 12 15...

  • C programming is the main one and pick another code of choice!!! Background This assignment is...

    C programming is the main one and pick another code of choice!!! Background This assignment is based on one of the Big Ideas in this course, namely that reading C source code is a real aid in learning how to write C code. To that end, in this project, you write a program that scans C source from the 'Net and calculates some simple statistics. We're learning lots of concepts, and by running the program you write here on several...

  • Submissions are accepted in program codes in C PROGRAMMING LANGUAGES COURSE ASSIGNMENT Design your own general purpose programming language which will be completely in english Your language design...

    Submissions are accepted in program codes in C PROGRAMMING LANGUAGES COURSE ASSIGNMENT Design your own general purpose programming language which will be completely in english Your language design must include the following A general skeleton of a program State diagrams for the following (35 pts) . Identifier Unsigned integer Unsigned constant Constant Variable Factor and term rules similar to the ones given in your textbook Simple expression Compound expression . Parameter list Simple type 1D Array type Statement Block Loop...

  • This is for Python class questions. 1 Python question: While you can add or subtract an...

    This is for Python class questions. 1 Python question: While you can add or subtract an int value to or from a Decimal object, you cannot __________ Decimal objects with __________. A multiply, ints B mix, float values C divide, anything D mix, the quantize method 2 Python question: One way to deal with unexpected results that may come from floating-point numbers is to use rounding, but you can also use decimal numbers by importing the __________ from the __________....

  • Programming

    Project Information: Develop a complete working application in C++ as a part of your DSA semester project. This may be an individual effort or a group contribution as per your personal preferences. In case of a group project, the maximum group size is to be two students only. Please ensure that your application should be a modular programming based solution to a problem employing the maximum concepts of data structure and algorithms (like stack, queues, link lists, and trees). You can take ‘help’ (and not copy+paste) from the Internet and other resources as long as you clearly understand and refer them in your program. Properly comment your program and use good programming practices (proper indenting, meaningful variable and function names, comments etc.)  Project Detail: Design and develop an application to automate a Library Management System. The detail of the application is as below: Your application should have a proper login. Functionality to Add, Delete, Search and Modify records of the books. A detail file (txt or binary) that includes the record of the books along with all the attributes like name of the book, author of the book, domain of the book (e.g computer science, sociology), publishing date. A function that computes how many books are in the library. A function that computes how many books of specific domain has been chosen by the applicant.  Application code must be divided as separate (.h, .cpp) files. Project Deliverable: All source code files. A project report comprising: Acknowledgement Problem Statement Objectives Salient features of your application Detail of each module of your application. A proper and understandable UML diagram of your application. Conclusion Note: Report should be properly formatted and it is mandatory to use English without grammatical mistakes.

  • programming language is C++. Please also provide an explanation of how to create a file with...

    programming language is C++. Please also provide an explanation of how to create a file with the given information and how to use that file in the program Let's consider a file with the following student information: John Smith 99.0 Sarah Johnson 85.0 Jim Robinson 70.0 Mary Anderson 100.0 Michael Jackson 92.0 Each line in the file contains the first name, last name, and test score of a student. Write a program that prompts the user for the file name...

  • Word Bank: a) python b) computer science c) algorithm d) program e) interpreter f) compiler g)...

    Word Bank: a) python b) computer science c) algorithm d) program e) interpreter f) compiler g) syntax h) semantics i) value J) variable k) operator l) operand m) expression n) statement o) input p)output q)call r) arguments s) library t) bug u) variable scope v) local variable w)global variable x) variable lifetime y) relational operators z) logical operators 1) Compares operands and results in a bool: 2) The duration of a variable's existence: 3) A list of instructions to solve...

  • *Java* Given the attached Question class and quiz text, write a driver program to input the...

    *Java* Given the attached Question class and quiz text, write a driver program to input the questions from the text file, print each quiz question, input the character for the answer, and, after all questions, report the results. Write a Quiz class for the driver, with a main method. There should be a Scanner field for the input file, a field for the array of Questions (initialized to 100 possible questions), and an int field for the actual number of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT