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
Delicious77 [7]
4 years ago
6

True or False. When used with the cout object, the endl stream manipulator advances the cursor to the next line on the computer

screen.
Computers and Technology
1 answer:
defon4 years ago
3 0

Answer:

The answer is TRUE

Explanation:

When we use Cout object the endl move the cursor to the next line to the computer screen.The endl is a predefined object.It is used to insert a line.

Manipulators are the objects that inserted into a stream and effect the format of objects.Manipulators are used to control the state of stream.

You might be interested in
In Python, when do we use the str( ) function
pav-90 [236]

Answer:

Both str () and repr () methods in python are used for string representation of a string.

Explanation:

Though they both seem to serve the same purpose, there is a little difference between them. Have you ever noticed what happens when you call a python built-in function str (x) where x is any object you want?

7 0
2 years ago
Explain the history of computing device of mechanical era
gayaneshka [121]

Answer:

The mechanical age can be defined as the time between 1450 and 1840. A lot of new technologies were developed in this era due to an explosion of interest in computation and information. Technologies like the slide ruler (an analog computer used for multiplying and dividing) were invented in this period.

5 0
3 years ago
Write a program that passes an unspecified number of integers from command line and displays their total. Sample Run 1 command&g
Lana71 [14]

Using the computational language in JAVA it is possible to write a code that at least passes an unspecified number of integers

<h3>Writing code in JAVA</h3>

<em>class Exercise07_21</em>

<em>{</em>

<em>public static void main(String args[])</em>

<em>{</em>

<em>int sum=0;</em>

<em>for(int i=0;i<args.length;i++)</em>

<em>sum=sum+Integer.parseInt(args[i]);//converting string to integer and then adding it with sum variable and storing back in sum</em>

<em>System.out.println("The total is "+sum);//printing the sum</em>

<em>}</em>

<em>}</em>

See more about JAVA code at brainly.com/question/12975450

#SPJ1

5 0
2 years ago
Label 14 parts of the inside of a computer
qwelly [4]

(1) Power supply                (6) motherboard                                     (11) Drive Bay

(2) hard drive                     (7) Central Processing Unit (CPU)         (12) Floppy Drive

(3) expansion card             (8) Random Access Memory (RAM)      (13)Speaker

(4) expansion slot              (9) CD-ROM                                     (14) Video Connecter

(5) Read Only Memory      (10)Power Cord Plug                       (15) Fan

7 0
3 years ago
In this lab, you write a while loop that uses a sentinel value to control a loop in a C++ program that has been provided. You al
SVETLANKA909090 [29]

Following are the C++ program to calculating the average value.

Program Explanation:

  • Defining header file.
  • Defining the main method.
  • Defining three double variable "numStars,averageStars, and totalStars", and one integer variable "numPatrons".
  • After declaring a variable, an input method is used that inputs an integer variable.
  • In the next step, a while loop is declared that uses an integer variable to the check value between 0 to 4.
  • Inside the loop, it adds the integer variable value and uses a conditional statement that checks integer value equal to 0, that hold 0 value into the "averageStars".
  • In the else block it calculates the average value and prints its value.

Program:

#include <iostream>//defining header file  

#include <string>//defining header file  

using namespace std;

int main()//main method

{

double numStars,averageStars,totalStars=0; // defining a double variable

int numPatrons = 0; //defining integer variable

cout << "Enter rating for featured movie: ";//print message

cin >> numStars;//input integer variable

while(numStars >= 0 && numStars<=4)//using while loop that use integer variable to check value in between 0 to 4

{

   numPatrons++; // increasing integer variable value

   totalStars += numStars; // using totalStars that adds numStars value in it

   cout << "Enter rating for featured movie: ";//print message

   cin >> numStars;//input double value

  }

if(numPatrons == 0)//using if block that check integer value equal to 0

      averageStars = 0;//holding value into averageStars

else//else block

      averageStars = totalStars/numPatrons;//calculating averageStars value

cout << "Average Star Value: " << averageStars << endl;//print message with averageStars value

return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/16665413

3 0
3 years ago
Other questions:
  • The integer variables first and last have been declared and assigned values (with last &gt;= first). Allocate an integer array t
    10·1 answer
  • OSHA requirements state that employees must have eye or face protection if their work exposes them to hazards such as:
    8·1 answer
  • Arrange the steps in a sequence that you would follow while sorting data in a spreadsheet.
    12·1 answer
  • "You are working on a Debian distribution of Linux. You need to install a package, but you do not want to manually install all t
    8·1 answer
  • The documents created in ms-excel is call what?​
    11·2 answers
  • Implement a Java program using simple console input &amp; output and logical control structures such that the program prompts th
    15·1 answer
  • Meaning of sperm count
    5·2 answers
  • Banks will pay you interest on your money based on the interest rate. True or false?​
    11·1 answer
  • SOMEONE PLEASE HELP ME OUT WITH!!!!!
    14·2 answers
  • The web lab consists of which elements. Select all that apply. Group of answer choices Files Inspector Tool Preview Hints Work S
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!