1answer.
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
Ray Of Light [21]
3 years ago
4

2.29 LAB: Using math functions Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y

to the power of 2), the absolute value of y, and the square root of (xy to the power of z). Output each floating-point value with two digits after the decimal point, which can be achieved as follows: printf("%0.2of", your Value); Ex: If the input is: 5.0 6.5 3.2 the output is: 172.47 340002948455826440449068892160.00 6.50 262.43
Computers and Technology
1 answer:
stiv31 [10]3 years ago
4 0

Answer:

The solution code is written in C++

  1.    double x, y, z;  
  2.    
  3.    cout<<"Enter three number: ";
  4.    cin>>x>>y>>z;
  5.    
  6.    printf("%0.2f\n", pow(x, z));
  7.    printf("%0.2f\n", pow(x, pow(y, 2)));
  8.    printf("%0.2f\n", abs(y));
  9.    printf("%0.2f", sqrt(pow(x*y, z)));

Explanation:

Firstly, let's declare three variables <em>x, y</em> and <em>z</em> with double type (Line 1).

We prompt user for three floating point values and assign each of the input to <em>x, y, z,</em> respectively (Line 4).

Next, use printf() function to output the result based on the mathematical expression as required by questions. The "%0.2f" in printf() function enable us to output the floating-point value with two digits after the decimal point(Line 6-9).

You might be interested in
Do you agree with the EU's decision that people should be able to ask Google to remove search results that contain incorrect, un
AnnyKZ [126]

Answer: Yes

Explanation: One should not be able to just find negative information on someone just because they googled it (unless they're famous of course)

7 0
3 years ago
Read 2 more answers
Sam has created a fashion website. There are many subscribers to his website. He has added new blogs, pictures, and articles abo
marusya05 [52]

Answer:

Post advertisements on social media and message the subscribers.

Explanation:

There is no point in not promoting and putting forward the work that he has been doing. All of the given options are about promoting the content but Sam needs to choose the ones which are efficient and seem professional as well.

Posting advertisements about the website promotes the content on a wider base and helps in luring more and more people to the website.

Messaging or sending an email to the subscribers is a healthy of letting the subscribers about the updates and latest posts.

8 0
4 years ago
Which of the following is the result of a query?
IgorLugansk [536]
I think the answer is A
6 0
3 years ago
Hope has now created her sublist. 1. Oxygen a. Helps living things produce energy b. Helps protect living things from harmful ra
Alex_Xolod [135]

Answer: 1. put her insertion point at the end of item 2b. 2. press enter key

5 0
4 years ago
Suppose you have a class called Child with an instance data value called weight and height. Then it has a method called doubleWe
alexira [117]

Answer:

Explanation:

The following code is written in Java. I recreated the entire Child class as described with the instance variables and the doubleWeight method. Then created the getter and setter methods for both the weight and height variables.

class Child {

   double weight, height;

   public double doubleWeight() {

       double superWeight = weight * height;

       return superWeight;

   }

   public double getWeight() {

       return weight;

   }

   public void setWeight(double weight) {

       this.weight = weight;

   }

   public double getHeight() {

       return height;

   }

   public void setHeight(double height) {

       this.height = height;

   }

}

7 0
3 years ago
Other questions:
  • Write a void function SelectionSortDescendTrace() that takes an integer array, and sorts the array into descending order. The fu
    9·1 answer
  • would specify that only selected members of the payroll and human resources department would have the right to change sensitive
    11·1 answer
  • Which directory in the FHS stores programs and configuration information that can only be executed and modified by the root user
    10·1 answer
  • Adding a ____ to text adds depth and helps the letters display prominently.
    5·1 answer
  • What does the acronym GIF stand for? Graphics Interface Format Graphics Interchange Format Going Into Files Gathering Informatio
    12·2 answers
  • What are some ways tables can be inserted into a document? Check all that apply.
    5·2 answers
  • (4 points.) Write an algorithm (i.e., step-by-step instructions) via which someone could walk or drive from some origin to some
    8·1 answer
  • PLEASE HELP ASAP!! Timed test!!
    12·1 answer
  • "En la opción
    10·1 answer
  • What year did polaroid introduce one-step photography with the SX-70
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!