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
koban [17]
4 years ago
13

Write a flowchart and C code for a program that does the following: Uses a do...while loop. Prints the numbers from 1 to 10 with

a blank line after each number. (Hint: You'll need to use the newline character \n .)
Computers and Technology
1 answer:
emmasim [6.3K]4 years ago
4 0

Answer:

create the integer variable and initialize it to one, with the do statement, increment the variable by one and print it, then the while statement checks if the variable is less than or equal to 10.

#include <iostream>

using namespace std;

int main(){

   int i = 1;

   do {

       cout<< i << "\n";

       i++;

   }

   while (i <= 10);

}

Explanation:

The C++ source code initializes the integer variable i to one and increments and print the value if the value is less than or equal to ten. The do-while statement executes a block of code before the condition is implemented.

You might be interested in
Caesar Cipher is an older and since outdated encryption technique used by Julius Caesar to "hide" messages he sent to his troops
netineya [11]

Answer:

c. UHPDLQ KRPH

Explanation:

The above question is missing key details.

The missing part of the question is

Suppose that you want to encrypt the following message: REMAIN HOME. Of the following, which would be a potential encrypted message using Caesar Cipher?

a. TGPBKP JPQG

b. SFNCKO IPNF

c. UHPDLQ KRPH

d. PFLBHO INND

Using Caeser Cipher with an offset of 3, the answer is option c, UHPDLQ KRPH

With the main text being, REMAIN HOME,

Notice that if you letter U is 3 letters after R

Letter H is 3 letters after E

Letter P is 3 letters after M

It continues like that till it gets to the last letter H,

Letter H is 3 letters after E

In conclusion if REMAIN HOME is to be ciphered with an offset of 3, it gives UHPDLQ KRPH

4 0
4 years ago
When you pass an array to a method, the method receives ______.
7nadin3 [17]
The correct option is 3.
When an array is passed as a parameter to a function, it is usually passed as a reference parameter. What is actually passed is the address of its first element. Since arrays are typically passed by reference, it means that if the function changes the value of an element in an array, then the corresponding actual array will change that element. To declare an array of real values as parameter one has to specify the parameters.
4 0
3 years ago
If you see someone harassing someone else online you should ​
Sever21 [200]

Try to say something yourself, but if you are too scared, get an adult involved. The one bad thing you could do is ignore it.

4 0
4 years ago
Read 2 more answers
CreatePolicies<br> I need help with this in java.
erica [24]

Answer:

java

Explanation:

7 0
3 years ago
your company has been given the ip address of 199.2.1.0/24 to the subnet. You plan to put each of the 9 floorsin your building o
Varvara68 [4.7K]

Answer:

The correct answer is 254

Explanation:

        Subnet  is a logical partition of an IP address network into multiple  smaller network segments.    

IP address : Internet protocol address is  a unique identifier for every machine using the internet.

199.2.1.0/24.  the part /24  means prefix length. It represents the number of consecutive 1's in the subnet mask.  

5 0
3 years ago
Other questions:
  • A ________ -tier design includes a middle layer between the client and server that processes the client requests and translates
    11·1 answer
  • Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output tho
    9·1 answer
  • Write a function index(elem, seq) that takes as inputs an element elem and a sequence seq and returns the index of the first occ
    7·1 answer
  • A. True
    13·1 answer
  • How does an agile team obtain clarity on backing items that may be picked up in upcoming iterations? (1 correct answer)
    10·1 answer
  • The Android operating system was invented by ______.
    13·1 answer
  • 1) How can you set data types such as Number, currency and date in Ms- Excel? 2) Explain how values, text, data and time can be
    11·1 answer
  • 10. Calculate the checksum for blocks of data with the following byte sum. (a) 1220 (b) 950​
    14·1 answer
  • The first cell phones in widespread use were . Smartphone technological advancements added services. Answer the following questi
    12·2 answers
  • List analog devices, Digital devices and hybrid devices
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!