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
Veronika [31]
2 years ago
9

Write a single statement that prints outsideTemperature with 2 digits in the fraction (after the decimal point). End with a newl

ine. Sample output with input 103.45632: 103.46
Computers and Technology
2 answers:
klemol [59]2 years ago
5 0

Answer:

#include<ios>// HEADER FILe

#include<iomanip> // HEADER FILE

using namespace std;// namespace  

int main() // main function

{

double tem=103.45632; // variable declaration

cout<<" The outside Temperature is:";

cout<<fixed<<setprecision(2)<<tem; // display

return 0;

}

Explanation:

<u>The following are the description of the program</u>.

  • set the required header files and namespaces, then declare the main method and inside the main function.
  • Set the double data type variable 'tem' and initialize the value '103.45632'.
  • Finally, print the following message and print the output through the cout that is predefined function.
anastassius [24]2 years ago
5 0

Answer:

The program to this question can be described as follows:

program:

#include <iostream> //defining header file

#include <iomanip> //defining header file

using namespace std;  

int main() //defining main method

{

double outsideTemperature; //defining double variable

outsideTemperature= 103.45632; //initializing the value in variable

cout<<outsideTemperature<<": "<<setprecision(2)<<fixed<<outsideTemperature;  //print value

return 0;

}

Output:

103.456: 103.46

Explanation:

Description of the code:

In the above code first include the header file for using the "setprecision" method.  

In the next line, the main method is declared, inside the method, a double variable "outsideTemperature" is declared, that initialized with a float value.

Inside this method, "setprecision" method is called, which is the predefined method, that prints two-point value after the decimal point.  

You might be interested in
Initialize the list short_names with strings 'Gus', 'Bob', and 'Zoe'. Sample output for the given program:
ohaa [14]

Answer:

Following are the correct code to this question:

short_names=['Gus','Bob','Zoe']#defining a list short_names that holds string value

print (short_names[0])#print list first element value

print (short_names[1])#print list second element value

print (short_names[2])#print list third element value

Output:

Gus

Bob

Zoe

Explanation:

  • In the above python program code, a list "short_names" list is declared, that holds three variable that is "Gus, Bob, and Zoe".
  • In the next step, the print method is used that prints list element value.
  • In this program, we use the list, which is similar to an array, and both elements index value starting from the 0, that's why in this code we print "0,1, and 2" element value.
7 0
1 year ago
You work for a shipping company and your manager receives orders from various customers everyday some existing ,some new .your m
Gennadij [26K]

Answer:

It's good to consider this as a dictionary, with key-value pair, or as a two-dimensional array.

And in the first case, the code will be as below:

day_i={'Bob':'100', 'Alice':'100','Celia':'110','Bob':'200'}

for k, v in day_i.items():

print(k, v)

Explanation:

The above code reads through each day, and each customer purchase amount in the form of Dictionary, and prints each customer name and purchase amount. And with little enhancement, we can create each day data, and print details of the day, as being asked by the user.

6 0
2 years ago
An executive in a computer software firm works with his office door closed. At the same time every hour he opens the door to see
Masja [62]

Answer: (A) Fixed interval

Explanation:

 The fixed interval schedule is the type of schedule of the reinforcement in the operand conditioning in which the the initial response are rewarded by some specific amount of the time.

The main issue with the fixed interval schedule is that the people have to wait until the reinforcement schedule get occur and start their actual response of interval. This type of reinforcement schedule occur as the output value does not posses constant value all the time.

Therefore, Option (A) is correct.

4 0
2 years ago
How do I open the Excel workbook "Revenue.xls" from the default directory?
Kobotan [32]
<span>Follow the following steps to open "Revenue.xls":

Step 1:
Open Microsoft Excel.

Step 2:
Click on the "File" button (at top left).

Step 3:
When you click on the File button, the list will pop up which will contain the option "Open."
Click "Open".

Step 4:
Now select the "Revenue.xls" file and open it!

That's it! :)</span>
4 0
1 year ago
Excel supports all of the following types of sparklines except ____.
fenix001 [56]
The answer that best fits the blank provided is option D. What Excel does not support regarding sparklines is true or false sparkline which assists is decision making. Sparkline is a term that refers to a tiny graphic presentation that is made for numerical representation in a text.
8 0
1 year ago
Other questions:
  • On the Picture Tools Layout tab, you can preview results of the numerous styles, borders, effects, and layouts by _______ comman
    7·2 answers
  • Provide an example of each of the three primary information security areas: (1) authentication and authorization, (2) prevention
    9·1 answer
  • You are describing the boot process to a friend and get to the step where the device loads the operating files into RAM, includi
    7·1 answer
  • Assume there is a class AirConditioner that supports the following behaviors: turning the air conditioner on and off. The follow
    7·1 answer
  • The results of the spec cpu2006 bzip2 benchmark running on an amd barcelona has an instruction count of 2.389e12, an execution t
    13·1 answer
  • Justify the statement "The same job title can have different job roles and different qualification criteria in different organiz
    7·1 answer
  • In a system where Round Robin is used for CPU scheduling, the following is TRUE when a process cannot finish its computation dur
    13·1 answer
  • Write a print statement that displays a random integer between 5 and 5000. Assume the random library is imported.
    12·1 answer
  • A small e-commerce company uses a series of Robotic Process Automation solutions to manage the backup of data from individual wo
    9·1 answer
  • In a particular field, there are trees in a l single row from left to right. Each tree has a value V You cut trees from left to
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!