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
slavikrds [6]
3 years ago
10

Write a program that allows the user to continuously input the value n until a negative number is entered

Computers and Technology
1 answer:
Paul [167]3 years ago
3 0

Answer:

Written in C++

Explanation:

#include <iostream>

using namespace std;

int main()

{

int n;

while(true)

{

cin>>n;

if(n>=0)

continue;

break;

}

return 0;

}

You might be interested in
Range paramters - for loop<br> question in picture
Luba_88 [7]

Answer:

start,stop,step_size

Explanation:

Starting at 5 to for loop will count backward by 1 (hence the step_size being -1) until it reaches 0 (stop).

4 0
2 years ago
A router has just received the following new IP addresses: 88.62.108.0/21, 88.62.116.0/21, 88.62.120.0/21 and 88.62.128.0/21. If
Natali [406]

Answer:

Yes, they can be aggregated into a single network address of 88.62.0.0/16

Explanation:

Since they all will be using the same outgoing interface so they can be grouped according to next hop which appears to be the same for all four IP address.

First convert all the network addresses into binary.

DECIMAL                      BINARY                                                      CLASS OF IP

88.62.108.0/21            01011000.00111110.01101100.00000000      Class A

88.62.116.0/21             01011000.00111110.01110100.00000000     Class A

88.62.120.0/21            01011000.00111110.01111000.00000000     Class A

88.62.128.0/21           01011000.00111110.10000000.00000000    class A

Looking at the binary form of the address from left to right it can be observed that all for address are identical in the first two octet, that is up to the 16th digit.

So the new subnet mask will be /16, using any of the four address and the /16 mask will can obtain the new network address

All four address can be summarized as 88.62.0.0/16

4 0
3 years ago
Write a while loop that prints that number doubled without reaching 100. Follow each number with a space. After the loop, print
elena55 [62]

Answer:

The program to this question as follows:

Program:

#include <iostream> //defining header file

using namespace std;

int main() //defining main method

{

int n; //defining integer variables

cout<<"Enter number: "; //message

cin>>n; //input value by user

while (n< 100) //loop for check condition

{

cout<<n<<" ";//print value

n=n*2; //calculate value

}

return 0;

}

Output:

Enter number: 8

8 16 32 64  

Explanation:

In the above C++ language code, a header file is included, then defining the main method, inside the method an integer variable n is defined, which is used for user input for calculating their double number.  

In the next step, The while loop is declared, and the loop variable n range is defined, that its value is less than 100, inside the loop the variable n is used to calculate, its double number, and print function "cout" to print its value.

4 0
3 years ago
A newer kind of mobile site can do a lot of what only apps used to do, so the line has blurred between sites and apps. what are
denis23 [38]
The answer is Progressive Website Applications. This specific type of website allows the user to have a particular website function similarly as to when you download the app natively on your device. One main advantage is that you wouldn't need to download the actual app to use its functions. As the applications we use in our mobile phone increase, the more application we need to download, and could be troublesome to have hundreds of app installed on your mobile device.
6 0
4 years ago
In which of the following careers must one learn and use programming languages?
EleoNora [17]

Answer: any job that has programming in it

8 0
3 years ago
Other questions:
  • Explain the differences between kernel applications of the OS and the applications installed by an organization or user.
    6·1 answer
  • From the following list choose all the tasks an operating system performs.
    5·2 answers
  • What is a piece of information sent to a function
    15·1 answer
  • How many four-digit personal identification numbers (PIN) are possible if the PIN cannot begin or end with a 0 and the PIN must
    6·1 answer
  • What do secondary sources rely on for their analysis of events?
    6·2 answers
  • If you want three vertical sections of text on your page, create _____. dividers columns page breaks bulleted lists
    7·2 answers
  • When each line of text hits the margin at the same point what is the text?
    8·1 answer
  • To delete a row, you must first
    8·1 answer
  • Write a program that will add up the series of numbers: 99, 98, 97… 3, 2, 1. The program should print the running total as well
    13·1 answer
  • An intruder with malicious intent breaks into an office and steals a hard drive containing sensitive information about the compa
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!