answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yulyashka
1 month ago
7

What are the 2 things you are not sure about evaluating functions​

Computers and Technology
2 answers:
Amiraneli [921]1 month ago
7 0

Answer:

Evaluating a function involves substituting the provided input (the given number or expression) into the variable of the function (the placeholder, x). Replace x with the number or expression. For example, given the function f(x) = 3x - 5, determine f(4).

A function represents a relationship wherein each input corresponds with a single output. In the relation where y is linked to x, each input x (such as 1, 2, 3, or 0) yields only one output value y. Contrarily, x is not a function of y, since the value y = 3 corresponds to multiple outputs: x = 1 and x = 2.

A formula serves as an expression that computes the value of a cell. Functions are predefined formulas readily available in Excel. For instance, cell A3 here includes a formula that sums the value found in cell A2 and the value in cell A1.

Explanation:

oksian1 [797]1 month ago
6 0

Answer:

everything

Explanation:

You might be interested in
The Online Shopping system facilitates the customer to view the products, inquire about the product details, and product availab
amid [800]
Refer to the explanation provided. In the online shopping software system, five actors can be identified: A Customer can perform actions such as exploring products and seeking product information. The interface allows for the creation of customer accounts facilitating purchases. Additionally, customers can browse items by using search categories or keywords, and they are able to order and make payments for their selected products. The payment system accepts two primary methods: credit card and PayPal. A Seller can list products in appropriate categories and create accounts to gain membership. An Administrator manages product listings and can modify existing categories or introduce new ones. Finally, the Site Manager has the capability to view different reports regarding customer orders, seller-added products, and user-created accounts.
3 0
14 days ago
Explain working principle of computer?​
maria [879]

Answer:

The principle behind how computer systems operate involves a primary machine-based function that remains invisible to us, serving as a control center that changes the input data into output. This central element known as the central processing unit (CPU) illustrates that the operation of computers is quite intricate.

Explanation:

5 0
1 month ago
Write an application that throws and catches an ArithmeticException when you attempt to take the square root of a negative value
Harlamova29_29 [932]

The code relevant to the problem in question:

import java.util.Scanner;

public class Test {

   public static void main(String[] args) {

       double number;

       double squareRootOfNumber;

       String userInput = null;

       Scanner scanner = new Scanner(System.in);

       System.out.println("Please enter a number: ");

       userInput = scanner.next();

       number = Double.parseDouble(userInput);

       squareRootOfNumber = Math.sqrt(number);

       if (number < 0) {

           throw new ArithmeticException("Cannot compute the square root of a negative number");

       }

       System.out.format("The square root of the entered number is %.2f %n", squareRootOfNumber);

   }

}

The program will output:

Please enter a number:

-90

Exception in thread "main" java.lang.ArithmeticException: Cannot compute the square root of a negative number at com..ans.Test.main(Test.java:18)

Explanation:

The standard Java library function java.lang.Math.sqrt does not throw an ArithmeticException for negative arguments, hence there’s no need to enclose your code in a try/catch block.

Instead, we manually trigger ArithmeticException using the throw keyword:

throw new ArithmeticException("Cannot compute the square root of a negative number");

3 0
1 month ago
Write an expression to print each price in stock_prices. Sample output with inputs: 34.62 76.30 85.05
8_murik_8 [892]

Answer:

Below is the Python code:

stock_prices = input().split() #this takes input and separates it into a list

for price in stock_prices: #this loops through each stock price

   print("$",price) #this outputs each stock price prefixed by a dollar sign

Explanation:

The logic behind the program is clearly outlined in the attached comments. To illustrate the program's workings, let's consider an example:

Imagine the user inputs the stock_prices values of

34.62 76.30 85.05

The input() method captures user input, while the split() method divides the input string, providing a list of strings as:

['34.62', '76.30', '85.05']

Following that, the loop statement for price in stock_prices: iterates through each item in the list, and print("$",price) displays each value from the list on the output screen with a dollar sign, as follows:

$ 34.62                                                                                                            

$ 76.30                                                                                                            

$ 85.05    

4 0
1 month ago
You would like the user of a program to enter a customer’s last name. Write a statement thaUse the variables k, d, and s so that
Rzqust [894]

Answer:

1st question:

Utilize k, d, and s as variables to read three distinct inputs: an integer, a float, and a string, respectively. Print these variables in reverse order on one line, ensuring exactly one space separates each. On a second line, print them in their original sequence, with one space in between.

Solution:

In Python:

k = input()  # prompts user to enter k, an integer value

d = input()  # prompts user to provide d, a float value

s = input()  # prompts user to input s, a string

print (s, d, k)  # displays the variable values in reverse order

print (k, d, s)# displays the variable values in the original order

In C++:

#include <iostream>    // for input-output functions

using namespace std;   // to identify objects like cin and cout

int main() {    // start of main function

  int k;   // declare an int variable for the integer value

  float d; //  declare a float variable for the float value

  string s;   //  declare a string variable for string input

  cin >> k >> d >> s;    // reads the values for k, d, and s

  cout << s << " " << d << " " << k << endl;     // displays the variables in reverse order

  cout << k << " " << d << " " << s << endl;   } // displays the variables in their original order

Explanation:

2nd question:

You would want users of your program to enter a customer's last name. Formulate a statement that prompts the user with "Last Name:" and assigns the input to a string variable named last_name.

Solution:

In Python:

last_name = input("Last Name:")

# The input function captures input from the user and assigns it to last_name variable

In C++:

string last_name;  // declare a string variable called last_name

cout<<"Last Name: ";  // prompts user to input last name through this message Last Name:

cin>>last_name; // gathers and assigns the provided value to the last_name variable

The provided programs along with their outputs are included.

6 0
1 month ago
Other questions:
  • How to code 2.9.5: Four colored triangles {Code HS}
    10·1 answer
  • A client is currently struggling with late-stage integration and manual deployments. They want to find another method that will
    5·1 answer
  • Which of the following type of online advertising intermediaries decide the placement and pricing of online display ads by using
    9·1 answer
  • Suppose that a scheduling algorithm (at the level of short-term CPU scheduling) favors those processes that have used the least
    10·1 answer
  • Your revenue is $22,000. Your Cost of Goods is 16,250. Your gross profit is _____________, fill in the blank,.
    14·1 answer
  • To finish creating a design for the webpage, use one shape to cut away part of the other. Create a 700 pixel by 700 pixel square
    10·1 answer
  • Convert Newton’s method for approximating square roots in Project 1 to a recursive function named newton. (Hint: The estimate of
    7·1 answer
  • Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
    8·1 answer
  • Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace royaltyRates. PLEASE DONT F
    14·1 answer
  • An application specifies a requirement of 200 GB to host a database and other files. It also specifies that the storage environm
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!