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
r-ruslan [8.4K]
4 years ago
12

Write a cout statement so the variable sales is displayed with a precision of three decimal places, with the decimal point alway

s displayed.
Computers and Technology
1 answer:
Lilit [14]4 years ago
5 0

Answer:

The statement is as follows:

cout <<fixed<< setprecision(3) <<sales;

Explanation:

Here, I assume that the variable has already been declared.

The syntax to use is:

cout<<fixed<<setprecision(n)<<variable-name;

In this case:

n = 3 --- i.e. to 3 decimal places

And the variable name is: sales

So, when implemented, the instruction is:

cout <<fixed<< setprecision(3) <<sales;

You might be interested in
A new object of type list is created for each recursive invocation of f.A. TrueB. False
sammy [17]

Answer:

True but double check!

7 0
3 years ago
This device is used to connect sections of large networks?
ryzh [129]
Monster energy boissss
6 0
3 years ago
Read 2 more answers
An elevator of mass 250kg is carrying two persons whose masses are 50kg and 100kg. if the force exerted by the motor is 3000N. C
Agata [3.3K]

m_{elevator}=250kg \\m_{people}=50kg+100kg=150kg \\m_{motor}\approx3000N\div10\frac{m}{s^2}\approx300kg \\m_{total}\approx250kg+150kg+300kg\approx\boxed{700kg}

Hope this helps.

r3t40

5 0
3 years ago
Components Of Desktop System?<br><br><br><br><br><br><br>Thanku! :)<img src="https://tex.z-dn.net/?f=%20%5C%3A%20" id="TexFormul
trapecia [35]

components Of desktop system:

  • motherboard { backbone of the computer system controlling all tasks }
  • RAM { temporary random access memory }
  • ROM { stores huge amount of data ex - photos, videos }
  • CPU { central processing unit which processes data }
  • GPU {graphical processing unit for video editing, 3D graphics rendering}
6 0
3 years ago
When an organization implements a major accounting software package, it also inherits the system of internal control that is bui
Genrish500 [490]

Answer:

potata

Explanation:

potato

3 0
3 years ago
Other questions:
  • An outdoor products company wants to test a new website design where customers can get information about their favorite outdoor
    6·1 answer
  • Which statement below is inaccurate? a. Web 2.0 is a simple static website without any interaction with its users b. Web 2.0 bri
    5·1 answer
  • Encryption has a remarkably long and varied history. Spies have been using it to convey secret messages ever since there were se
    7·1 answer
  • _____ was just a sophomore when he began building computers in his dorm room at the University of Texas. His firm would one day
    14·1 answer
  • Describe the steps which should be taken after a cyber-attack has taken place
    7·1 answer
  • The following procedure is intended to return the number of times the value val appears in the list nylist. The procedure does n
    15·2 answers
  • Cho 1 biến x thuộc kiểu dữ liệu Integer , hãy cho biết biến x dùng để làm gì?
    7·1 answer
  • I want to write a Java program to display the multiplication table for the number entered by the user and the values doesn’t exc
    8·1 answer
  • ______-____ parameters provide a one-way link between actual parameters and formal parameters.
    11·1 answer
  • Using programming libraries is one way of incorporating existing code into new programs.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!