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
rusak2 [61]
3 years ago
7

Write an expression that executes the loop body as long as the user enters a non-negative number. Note: If the submitted code ha

s an infinite loop, the system will stop running the code after a few seconds and report "Program end never reached." The system doesn't print the test case that caused the reported message. Sample outputs with inputs: 9 5 2 -1 Body Done.
Computers and Technology
1 answer:
Delicious77 [7]3 years ago
4 0

Answer:

Following are the program in C++ language  

#include <iostream> // header file  

using namespace std; // namespace

int main() // main function

{

   int number=0; // variable declaration

   while(number>-1) // iterating the while loop

   {

       

       cout<<"body"<<endl; // dsiplay the statement

       cin>>number; // Read the value by the user

   }

   cout<<endl<<"Done";// dsiplay the statement

   return 0;

}

Output:

body

5

body

45

body

-8

Done

Explanation:

Following are the description of the statement

  • Declared a variable "number" of int type and initialized with 0 to them
  • iterating the while loop. In this loop print the message "body" and Read the value by the user in the "number" variable. This loop will be executed repeatedly until the user do not read the negative value.
  • After the execution of the while loop, it prints the message "Done".
You might be interested in
Multiple Choice
podryga [215]

Answer:

a

Explanation:

Boolean Operators are simple words (AND, OR, NOT or AND NOT) used as conjunctions to combine or exclude keywords in a search, resulting in more focused and productive results. ... Proximity Operators (with, near and others) can also help you in searching.

5 0
3 years ago
Select two netiquette guidelines. In three to five sentences, explain why these guidelines make professional online communicatio
meriva
Netiquette is etiquette when using the internet. The first guideline refers to posts on social media. Individuals should be mindful that posts can be read by anyone including employers and family members. Individuals need to ensure that material shared is not offensive. The next guideline refers to materials or content that is posted. Users must ensure that material posted does not belong to someone else or is copyrighted. Permission must be sought the owner must be cited or recognized. 
7 0
3 years ago
Read 2 more answers
Łatwiej pokonać każdą trudność, gdy dąży się do swojego wymarzonego celu. Czy zgadzasz się z tym poglądem? W uzasadnieniu odwoła
Anna [14]

Answer:

Yes.

Explanation:

Your question is not clear. However, I inferred you need the clearer rendering of the question. It reads;

It is easier to overcome any difficulty when pursuing your dream goal. Do you agree with this view? In the justification, refer to compulsory reading and to another literary work.

6 0
3 years ago
IPSec or internet Protocol Security is an extension of the Internet Protocol. What does IPSec use to provide network security?
Mnenie [13.5K]

Answer:

In computing, Internet Protocol Security ( IPSec ) is a secure network protocol suite that authenticates and encrypts the packets of data to provide secure encrypted communication between two computers over on internet protocol network. It is used in virtual private networks ( VPNs ).

4 0
3 years ago
As a general rule, the number of bullet points on a slide should not exceed _____. a.2 b.4 c.8 d.10
Paraphin [41]
Letter B is correct!! My teacher told me!!
6 0
4 years ago
Other questions:
  • Microsoft Surface can do all of the following except ______.
    12·2 answers
  • Assume that the int variables i, j and n have been declared , and n has been initialized . write code that causes a "triangle" o
    7·1 answer
  • (2) Complete the get_num_of_characters() function, which returns the number of characters in the user's string. We encourage you
    5·1 answer
  • NASA’s long term goal is for travel in space to be as _________________ as travel across the Atlantic. However, we are _________
    10·2 answers
  • Anne-Marie Cole runs the sales division for a local auto insurance firm. One of her key duties is to calculate her company's mar
    13·1 answer
  • Write an INSERT statement that adds this row to the Categories table: category_name: Brass Code the INSERT statement so MySQL au
    6·1 answer
  • Use the Windows ________ to check on a nonresponsive program. Select one: A. Backup utility B. Task Manager C. System Restore D.
    10·1 answer
  • What is your favorite coler and what do you like to do and
    13·1 answer
  • Write a class of complex numbers consisting of:
    11·1 answer
  • If a flagged word is spelled correctly, such as many of our names, right-click it and then click ____ on the shortcut menu to in
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!