Practice Question

What will be displayed after this

code segment is run?

count

0

REPEAT UNTIL (count = 3

count count + 1

DISPLAY

and"

DISPLAY count



"1 and 2 and 3"

"And 1 and 2 and 3"

"0 and 1 and 2"

"And 0 and 1 and 2"

Answers

Answer 1

Answer:

Follows are the code to the given question:

#include <stdio.h>//header file

int main()//main method

{

int count=0;//defining an integer variable

for(count=0;count<3;count++)//use for loop to count values

{

printf("%d\n",count);//print count values

}

return 0;

}

Output:

0

1

2

Explanation:

In this code, it declares the integer variable "count" which has a value of "0" and in the next step declares a loop, using the count variable to regulate count values, which is less than 3, and increases the count value, and prints its values. This variable is the count value.

The count variable holds a value of 0, and use a for loop that checks its value is less than 3, and print its value, that's why it will print the value that is 0,1, and 2.


Related Questions

List and fully describe at least 3 examples of input devices and how they are applied in the real world. (In separate paragraphs.)

Answers

Answer:

1. Mouse

2.Graphic Tablet

3.Keyboard

Explanation:

1. A computer mouse (plural mice, rarely mouses) is a hand-held pointing device that detects two-dimensional motion relative to a surface. This motion is typically translated into the motion of a pointer on a display, which allows a smooth control of the graphical user interface of a computer.

2.Graphic tablets, because of their stylus-based interface and ability to detect some or all of pressure, tilt, and other attributes of the stylus and its interaction with the tablet, are widely considered to offer a very natural way to create computer graphics, especially two-dimensional computer graphics

3.A keyboard is for putting information including letters, words and numbers into your computer. You press the individual buttons on the keyboard when you type. The number keys across the top of the keyboard are also found on the right of the keyboard. The letter keys are in the centre of the keyboard.


When you
you can use the diverse knowledge sets of a team and share a workload.
O strategize
O quantify
discriminate
I
O collaborate

Answers

Answer:

Collaborate.

Explanation:

It was correct for me!

Answer:collaborate

Explanation:

cs edgen 100%

which internet service is the main reason the internet has expanded and what draws newcomers to the internet?

Answers

Answer:

It has spread throughout the world since it is a very useful tool since most things are facilitated, thus leading to a much more efficient daily life, which is why the internet is one of the main means for the functioning of the world today. day, as new technologies have revolutionized

Social media.

The term social media refers to those digital tools that facilitate the transmission of information, communication and social interaction between individuals. Thus, social media allows individuals to relate to each other, in a similar way as if they were physically interacting, but through computer means.

These social media can be from profiles on social networks to blogs, podcasts or even videos on digital platforms. In short, nowadays social media is an integral part of people's social life, and it is in many cases what ends up driving them to use the internet.

Learn more in https://brainly.com/question/21765376

2. It is the art of creating computer graphics or images in art, print media, video games.
ins, televisions programs and commercials.

Answers

the answer is CGI :)

You should write the client so that it sends 10 ping requests to the server, separated by approximately one second. Each message contains a payload of data that includes the keyword PING, a sequence number, and a timestamp. After sending each packet, the client waits up to one second to receive a reply. If one second goes by without a reply from the server, then the client assumes that its packet or the server's reply packet has been lost in the network.Hint: Cut and paste PingServer, rename the code PingClient, and then modify the code. The two programs follow very similar process.You should write the client so that it starts with the following command:java PingClient host portwhere host is the name of the computer the server is running on and port is the port number it is listening to. Note that you can run the client and server either on different machines or on the same machine.The client should send 10 pings to the server. Because UDP is an unreliable protocol, some of the packets sent to the server may be lost, or some of the packets sent from server to client may be lost. For this reason, the client cannot wait indefinitely for a reply to a ping message. You should have the client wait up to one second for a reply; if no reply is received, then the client should assume that the packet was lost during transmission across the network. You will need to research the API for DatagramSocket to find out how to set the timeout value on a datagram socket.When developing your code, you should run the ping server on your machine, and test your client by sending packets to localhost (or, 127.0.0.1). After you have fully debugged your code, you should see how your application communicates across the network with a ping server run by another member of the class.Message FormatThe ping messages in this lab are formatted in a simple way. Each message contains a sequence of characters terminated by a carriage return character (r) and a line feed character (n). The message contains the following string:PING sequence_number time CRLFwhere sequence_number starts at 0 and progresses to 9 for each successive ping message sent by the client, time is the time when the client sent the message, and CRLF represent the carriage return and line feed characters that terminate the line.

Answers

Answer:

figure it out urself

Explanation:

5.18 LAB: Output numbers in reverse Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicating the number of integers that follow. For coding simplicity, follow each output integer by a comma, including the last one. Ex: If the input is: 5 2 4 6 8 10 the output is: 10,8,6,4,2, To achieve the above, first read the integers into a vector. Then output the vector in reverse.

Answers

Answer:

In C++:

#include<iostream>

#include<vector>

using namespace std;

int main(){

   int len, num;

   vector<int> vect;

   cout<<"Length: ";

   cin>>len;  

   for(int i = 0; i<len;i++){

       cin>>num;

   vect.push_back(num);}

   vector<int>::iterator iter;

   for (iter = vect.end() - 1; iter >= vect.begin(); iter--){

       cout << *iter << ", ";}    

}

Explanation:

This declares the length of vector and input number as integer

   int len, num;

This declares an integer vector

   vector<int> vect;

This prompts the user for length  

cout<<"Length: ";

This gets the input for length  

   cin>>len;  

The following iteration gets input into the vector

   for(int i = 0; i<len;i++){

       cin>>num;

   vect.push_back(num);}

This declares an iterator for the vector

   vector<int>::iterator iter;

The following iterates from the end to the beginning and prints the vector in reverse

   for (iter = vect.end() - 1; iter >= vect.begin(); iter--){

       cout << *iter << ", ";}

Write a SELECT statement that returns one row for each customer that has orders with these columns: The email_address from the Customers table

A count of the number of orders

The total amount for each order

(Hint: First, subtract the discount amount from the price. Then, multiply by the quantity.) Return only those rows where the customer has more than 1 order. Sort the result set in descending sequence by the total amount . Hint: You will join three tables together. Returns 3rows of data.

Questions done up until #4: https://pastebin.com/LwSKknPi

all questions before and after:

Write a SELECT statement that returns these columns:

The count of the number of orders in the Orders table

The sum of the tax_amount columns in the Orders table

Returns 1 row of data.

Write a SELECT statement that returns one row for each category that has products with these columns:

The category_name column from the Categories table

The count of the products in the Products table

The list price of the most expensive product in the Products table

Sort the result set so the category with the most products appears first.

Hint: You will join two tables together. Returns 3 rows of data.

Write a SELECT statement that returns one row for each customer that has orders with these columns:

The email_address column from the Customers table

The sum of the item price in the Order_Items table multiplied by the quantity in the Order_Items table

The sum of the discount amount column in the Order_Items table multiplied by the quantity in the Order_Items table

Sort the result set in descending sequence by the item price total for each customer.

Hint: You will join three tables together. Returns 7 rows of data.

Modify the solution to exercise 4 so it only counts and totals line items that have an item_price value that’s greater than 400. Returns 2 rows of data.

Write a SELECT statement that answers this question: What is the total amount ordered for each product? Return these columns:

The product name from the Products table

The total amount for each product in the Order_Items (Hint: You can calculate the total amount by subtracting the discount amount from the item price and then multiplying it by the quantity)

Use the WITH ROLLUP operator to include a row that gives the grand total.

Hint: You will join two tables together. Returns 10 rows of data.

Write a SELECT statement that answers this question: Which customers have ordered more than one product? Return these columns:

The email address from the Customers table

The count of distinct products from the customer’s orders

Hint: You will join three tables together. . Returns 3 rows of

Answers

Answer:

Please find the attachment files of the queries:

Explanation:

In the all queries the select statement is used that selects the defined columns and use the function like sum, join, orderby, and groupby to perform the various operations, in which the sum is used to add columns or rows values, join is used for joining two or more tables, and orderby is used for return the table into ascending or descending order, and groupby is used for the count the value, calculate average and perform other operation and gives its return value.

Have you ever tried using such a camera?​

Answers

Answer: yeah i mean i use my canon camera

Explanation:

Which term describes the surrounding area of this image?

The surrounding area of this image is called
Surroundings
Foreground
Background

This area is also called a
Negative
Positive
Neutral

Answers

Answer: background/negative

Explanation: the background, is negative space. A solid piece of sculpture occupies space, and makes the space around it come to life.

lower cabinet is suitable for storing and stocking pots and pans true or false​

Answers

True.
Make sure cabinet is clean enough to put the pots and pans.

Online, it is easy to think of communication as “computer to ____________” rather than “_________ to ___________”.
a.
person, computer, person
b.
computer, person, computer
c.
person, person, person
d.
computer, person, person

Answers

I would say D but if not I’m terribly sorry

Hope this helps

Have a great day/night

Online, it is easy to think of communication as “computer to computer” rather than “person to person”. Thus, option D is correct.

What is communication?

It is possible to describe communication as the act of passing the information between one person or group of people to the next. Communicating facilitates easy understanding of what a different person is trying to say or convey. There are two forms of communication: both verbal and nonverbal.

With the help of communication the person can tell and feature tthe data between the person and an group. In this, that data is given to the people and the data is not given to the person but it is rather given to the person. As this data is been transferred from one computer to another and then it reaches the people.

Therefore, option D is the correct option.

Learn more about communication, here:

https://brainly.com/question/22558440

#SPJ2

h. What is recycle bin?
->​

Answers

Answer:

Trash application, the Recycle Bin

____________ reference is used when you want to use the same calculation across multiple rows or columns.

Answers

Answer:

relative cell

Explanation:

So, if you want to repeat the same calculation across several columns or rows, you need to use relative cell references. For example, to multiply numbers in column A by 5, you enter this formula in B2: =A2*5. When copied from row 2 to row 3, the formula will change to =A3

Answer:

Relative

Explanation:

Relative  reference is used when you want to use the same calculation across multiple rows or columns.

Other Questions
A scientist wants to examine a genetic disease in humans. The scientist hypothesizes that the disease can be treated by using gene therapy. Humans take a long time to reproduce and develop, so the scientist will have togive up on testing the hypothesis.test the hypothesis for a very long time.develop new methods to test the hypothesis.find a way to make humans reproduce faster. Enter 31/100 as a money amount and as a decimal in terms of dollars. Every 3 bases (a codon) in the RNA codes for 1 amino acid.Example: CCA codes for proline (pro)2. Write the amino acid that corresponds to each codon.CGGCUGAGCCAG Write the equation of a line given its slope,m=6 and its y-intercept, b=-5 classify the number -4_6/7 in as many ways as you can Plan Your Future DiscussionNo unread replies.No replies.Where do you see yourself after high school?What kind of job do you think youll eventually have? What skills will the job require?What will you need to know going into the job?Do you think someday you will have a family to support? Will you have student loans to pay off?Do you see yourself doing one job for many years, or do you think you will try different kinds of jobs? pls help ill give brainliest if you give a correct answer!! Why would the atomic number be better to identify an element than the atomic mass? pls answer all questions for brainliest!! The number 650,000 written in scientific notation would be _____.A.6.5 10 -5B.6.5 10 5C.65 10 4D.0.65 10 -6 1. Evaluate the expression when b = 24.310 + bHELP!!! I have no clue!!! Please help Find the height of a cone that has a radius of 3 in and a volume of 96.91 in. In triangle ABC, point D is the centroid, and BD = 6. Find BE. cules seran algunos de los complementos y aparatos ms utilizados en la clase de educacin fsica para la prctica de la gimnasia???????? Ayuda!!!!!!; find the missing value so that the line passing through the points has the given slope.(10, y) and (3, 4); m= - 2/7 Wich is not a crochet stich ? A.chain B.slip stich C.stan stich D.treble a straight line has equation 4y-5x=2 work out the gradient of this line Which word has a spelling error?OA. misnomerOB. pnewmaticOC. pulverizeOD. distraught Rhian sat a maths test and an English test. in the maths test, she scored 14/17. in the English test, she scored 31/39. in which test did she do better A rectangle is such that the length of 2 of each adjacent sides are in the ratio 1:3. A similar rectangle has 1 side of 6cm. Find 2 possible values for the length of each adjacent sides.