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
malfutka [58]
2 years ago
7

Write the necessary preprocessor directive to enable the use of the stream manipulators like setw and setprecision Additional No

tes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly
Computers and Technology
1 answer:
Ksenya-84 [330]2 years ago
4 0

We would use  #include<iomainp> header file accordingly.

<h3>What is manipulator?</h3>

Helping functions known as manipulators can change the input/output stream. It simply affects the I/O stream using the insertion () and extraction (>>) operators, not the value of a variable.

Special functions known as manipulators can be used in an I/O statement to change a stream's format specifications.

Operators who format the data presentation are known as manipulators.The application should contain the file iomanip.h to access manipulators.The manipulators endl, ws, ends, and flush are those without arguments.

Setw (val), Setfill (c), Setprecision (val), Setbase (val), SetIOS Flags (flag), and ResetIOS Flags are examples of manipulators with arguments (m).

Two categories of manipulators are typically in use: Specified and Unspecified.

To know more about pre-processor, visit:-

brainly.com/question/13100703

#SPJ4

You might be interested in
Decide what activity is most appropriate based on the temperature. If the temperature is greater than 80 degrees, then display t
Ede4ka [16]

Answer:

Here is the C++ program:

#include <iostream> //to use input output functions

using namespace std; //to access objects like cin cout

int main(){// start of main function

   int temp; //declare a variable to store value for temperature

   cout<<"Enter temperature: "; //prompts user to enter temperature

   cin>>temp; //reads value of temp from user

   if(temp>80) //if temperature is greater than 80 degrees

     { cout<<"Go swimming";    } //displays Go swimming

   else if(temp<=80&&temp>=60) //if temperature is between 60 and 80

         {   cout<<"Go biking";    } //displays Go biking

   else //if temperature is less than 60 degress

   cout<<"Go for a walk"; } //displays Go for a walk

Explanation:

The program prompts the user to enter value of temperature. It stores the value of temperature in temp variable. Then the first if condition checks if the value of temp is greater than 80. If it evaluates to true, then the print statement inside the body of this if statement executes which is "Go swimming". If this condition evaluates to false then program moves to the else if condition which checks if the value of temp is between 60 and 80. There is a logical operator AND (&&) is used between both expressions to check temperature between two ranges. If it evaluates to true, then the print statement inside the body of this if statement executes which is "Go biking". If this condition evaluates to false then program moves to the else part which has a print statement that displays "Go for a walk" on output screen. The screenshot of program along with its output is attached.

6 0
3 years ago
John works as an associate at a construction company. His job is to draft contracts for suppliers. Before he prints the contract
worty [1.4K]

Answer:

The correct answer would be option B, Track changes.

Explanation:

John's job is to make drafts and print them. Before printing them, he sends the copy to the manager to get it checked for any mistakes. John's manager can give suggestions and edit the document where he thinks he needs to do. So he can use the Track changes feature to give his comments or suggestions as well as to edit the document. He will simple open the document, open the Review tab, and Click on the Track changes or comments icon. Here he can click on the text which he wants to edit, and there will be a pan which will keep track of the changes and mark them with red, so that John knows where he has made the changes or given the suggestions.

7 0
3 years ago
Plz help code practice for python
laila [671]

Answer:umm

Explanation:

6 0
3 years ago
Read 2 more answers
What permissions are needed in order to use a work online that is in the public domain?
Maurinko [17]
<h2 /><h2>⇒Written  \: permission  \: from \\  the  \: creator</h2>

The term “public domain” refers to creative materials that are not protected by intellectual property laws such as copyright, trademark, or patent laws. ... Anyone can use a public domain work without obtaining permission, but no one can ever own it.

5 0
3 years ago
Which type of software is primarily used to organize a collection of information for easy access?
lukranit [14]

Answer:

option B database management software

mark as brainliest answer

8 0
4 years ago
Other questions:
  • What are the functions of a motherboard??
    6·1 answer
  • In a(n) ________ either one condition or some other condition must be met in order for an event to take place.
    11·1 answer
  • Angela recently purchased a new Android smartphone. While purchasing the phone, Angela was told that she would need to set up a
    5·1 answer
  • Computer architecture:
    6·1 answer
  • Will a large computer monitor have a clearer picture than using my plasma tv screen?
    9·1 answer
  • Question 1 of 10 Chase lives in Oregon but works for a company that is located in Florida. What business trend is this an exampl
    11·2 answers
  • What is the job of a router during the process of routing on the Internet?
    10·1 answer
  • All banks follow the same guideline for determining if an applicant qualifies for a loan.
    13·1 answer
  • PLEASE HELP WITH KHAN ACADEMY WILL GIVE BRAINLIEST!!!!!!!!!!!!!!!!!!!!!!!!
    12·1 answer
  • Choose a common cloud-based application from the lesson.(Infrastructure as a service, Software as a service, Platform as a servi
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!