write a program using a for loop, to display number 20 to 10 in descending order

Answers

Answer 1

Answer:

public class MyProgram {

  public static void main(String[] args) {

     for (int i = 20; i >= 10; i--){

        System.out.println(i);

     }

  }

}

Explanation:

Since we are printing in descending order, we start with an initial value of 20, keep decrementing counter by 1 (the i-- part) until i reaches 20


Related Questions

Select the correct answer.
Feather Light Footwear approaches Roy and his team to develop a website that will help increase the company's sales and customer base. Apart
from other items that are clarified in the requirements-gathering session, the client insists on a speedy launch of the site, in two months flat. Roy
and his team already have partially complete projects for other clients that they must complete first. How should Roy handle this situation?
OA. Roy can put aside his current projects and prioritize to finish this new project before the others.
OB. Roy should commit to the project deadline and then later change the delivery date as they work on the project.
OC. Roy can commit to the timeline set by the client and make his team work overtime each day to meet the deadline.
OD. Roy can take up the project, hire additional resources, and later charge the client additional fees for the extra hires.
OE. Roy should be honest and agree on a reasonable timeline that he and his team can easily meet.
Hurry I need help

Answers

Answer:

I'm pretty sure it's D.

IM NOT REALLY SURE BUT YES

What will be printed to the screen when the following program is run?

Answers

Answer:

false

Explanation:

the parenthesis contains 2 true statements (5 is greater than 4 and 10 is greater than or equal to 10)

outside the parenthesis is the not, so the true parenthesis is negated to false

this means the value of a is false

For which tasks is Layout view most helpful? Check all that apply.

moving an object from one section to another
showing how a report will look when printed
selecting and formatting an object
positioning an object precisely within a section
exporting a report to email or Microsoft 365

Answers

The task where the Layout view most helpful is showing how a report will look when printed.

What is the Layout view?

The Layout view is known to be a view that is said to be more of visually-oriented when compared to the Design view.

Note that the Layout view is one where each control often shows real data and as such, The task where the Layout view most helpful is showing how a report will look when printed.

Learn more about  Layout view  from

https://brainly.com/question/1327497

#SPJ1

Answer:

Its B and C

Explanation:

I just answered it. Believe it or not

Question 3 of 25
What does the number of hertz measure in a CPU?
A. How quickly the data in RAM can be read, changed, and
overwritten
B. How fast a CPU can process data, indicating performance
O c. How many bits are fed into a CPU in a certain amount of time
D. How much data is stored magnetically and is used for long-term

Answers

B as clock speed measures the amount of fetch-decode-excute cycles per second, or the amount of data processed per second measure in GHz.

How fast a CPU can process data, indicating performance does the number of hertz measure in a CPU. Hence, option B is correct.

What is process data?

Process data is information about a business process that builds up in an XML document during the course of the process, in accordance with configured instructions in the BPML.

a stock trading program that creates a straightforward graph from millions of stock data points. Customers' search histories are used by an online retailer to suggest related products. A digital marketing company develops location-specific ads using demographic information about consumers.

Batch processing, real-time processing, and online processing are the models. Data processing that is done in batches is known as batch processing. This indicates that each item of data is processed separately.

Thus, option B is correct.

For more information about process data, click here:

https://brainly.com/question/30094947

#SPJ2

2
Select the correct answer
What is the term used when an agent obtains knowledge online?
OA computation
OB, learning
OC observation
OD. reasoning
Reset
Next

Answers

Answer:

b

Explanation:

i believe its b. i apologize if im wrong

ANSWER QUICKLY!!!

Mr. Harris runs the organization You and Your Child, which helps to build life skills in teenagers and prepare them for the future. He approached
Katsumi to develop a website that will enhance the good work he is doing. The client and the development team went through several rounds of
sessions before they finalized the requirements. Katsumi has partially completed the design document, and she is worried that Mr. Harris might
change certain requirements midway through the project. What should Katsumi do in this situation?

Answers

The thing that Katsumi should do in this situation is to option A in the image attached.

Why choose option A?

Note that Design documentation is said to be a composition of documents and resources that is said to cover all areas of one's product design.

Option A is correct because  in the above scenario, it is usually mostly inconclusive and as such, Katsumi  should do nothing.

Learn more about design document from

https://brainly.com/question/27250066

#SPJ1

2.
Select the correct answer.
Consider the following statements:
Pls "It is hot."
Q is "It is dry."
Ris "I am thirsty."
What does the sentence (P^Q)->R mean?
Ο Α.
If it is hot and dry, then I am thirsty.
B.
If I am thirsty and dry, then it is hot.
C.
If it is dry or hot, then I am thirsty.
OD.
If it is hot then I am dry and thirsty.

Answers

The structure argument can be given as, with dry and hot weather, it felt thirsty. Thus, option A is correct.

What is the structure of the argument?

The argument is held valid and correct with the use of proper relationships between the sentences. The correct correlation depicts the conclusion to the sentence.

P Q means P followed by Q~R means excluding RP^Q means P and Q

From the given argumentative sentences it can be delivered as If it is dry and hot then I’m thirsty. Thus, option A is correct.

Learn more about structure of argument, here:

https://brainly.com/question/14993040

#SPJ1

Write a program that reads two numbers from the user, and proceeds as follows: If the input numbers are equal, the program displays: both numbers are the same. Otherwise, the program logs all the integers in the range of the input numbers from the smaller value to the larger value in the console. For example, if the user enters 22 and 16, the program displays: 16 17 18 19 20 21 22. Note that all the numbers are displayed in one line separated by a single space. . If any of the input values are invalid, the program displays an error message and terminates.​

Answers

import sys

x = input("enter number 1: ") #ask for user input

y = input("enter number 2: ")

output = "" #the output string

try: #try integering them (this also has error message and will check if input is valid)

 x = int(x)

except:

 print("error! number 1 was not a number :(")

 sys.exit() #leave

try:

 y = int(y)

except:

 print("error! number 2 was not a number :(")

 sys.exit()

if x == y: #check they are not the same

 print("both numbers are the same")

else: #do the thing

 if y > x: #otherwise swap the order

   for i in range (x, y + 1): #+1 for inclusive

     output = (output + str(i) + " ")

 else:

   for i in range (y, x + 1):

     output = (output + str(i) + " ")

 print(output) #so it's all in one line

I need the answer with c++
The question : Implement the class "Rectangle" with sides parallel to the coordinate axes. 1.Provide for the possibility of moving rectangles on the plane. 2.Provide for the possibility of changing sizes. 3.Provide for the possibility of constructing the smallest rectangle containing two given rectangles. 4.Provide for the possibility of constructing the rectangle that is a common part (intersection) of two rectangles. 5.Provide for the possibility of calculating the length of half the diagonal of a rectangle.

Answers

Using the knowledge of computational language in C++ code we found that this code can be written as:

The code can be found in the attached image.

How to writte the C++ code ?

So from the c++ code you can write the geometric figure as

#include <bits/stdc++.h>

struct Point {

   int x, y;

};

bool doOverlap(Point l1, Point r1, Point l2, Point r2)

{

   if (l1.x > r2.x || l2.x > r1.x)

       return false;

   if (r1.y > l2.y || r2.y > l1.y)

       return false;

    return true;

}

/* Driver program to test above function */

int main()

{

   Point l1 = { 0, 10 }, r1 = { 10, 0 };

   Point l2 = { 5, 5 }, r2 = { 15, 0 };

   if (doOverlap(l1, r1, l2, r2))

       printf("Rectangles Overlap");

   else

       printf("Rectangles Don't Overlap");

   return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

You are a Junior IT Technician in your organisation. One of the duties is to demonstrate and explain how the computer works to the new intern staff. Discuss how you would demonstrate and explain

Answers

Recognizing the way computational modeling are utilized is just as important as employing technical knowledge about computer or laptop.

What is a demonstration?

Providing verifiable evidence to demonstrate that maybe something real or is correct.

You are a Junior IT Technician in your organization. One of the duties is to demonstrate and explain how the computer works to the new intern staff.

I'll describe how and when to install and set up computer networks, examine computer issues, and resolve technical and application issues over the phone or face to face as an IT specialist.

Based on the scale of the company for which you work, how would you represent particular maybe more knowledge and expertise? A technical IT support team is commonly separated into both first support, with both the second-line support workers answering more specialized inquiries that the first support staff couldn't handle.

More about the demonstration link is given below.

https://brainly.com/question/15070998

#SPJ1

Which of the following functions is a scalar function?
A.count B.Max C.Sum D.Month

Answers

Count, Max, and Sum are all scalar functions. Thus, option A, B, and C is correct.

What is a scalar function?

A scalar function can be defined that only returning one number out of an incoming signal. The Scalar function treats every column separately. Input data forms the basis of SCALAR Services. Although scalar procedures can accept one or more inputs, they all must give a mono result.

The different function helps to identify the data in a different respect. The serve as significant only function accepts input value, usually a column number and another single identifier that denotes a set.

Count function totals each row. The sum function gives the total. The function represents the data and is formed with the help of the Count, Max, and Sum.

Therefore, option A, B, and C is the correct option.

Learn more about the scalar function, here:

https://brainly.com/question/21925479?referrer=searchResults

#SPJ2

15 points! Introduction to Computer Science. (Picture included)
The user is told to guess a number between one and 10.
Which responses from the user could cause the program to halt with an error statement? Choose two options.

Answers

Answer:

2.5, two

Explanation:

Most likely user input should be of type int, which is whole numbers, so 2.5 (double/float) and two (string) are incorrect

How do the following technologies help you with your quest to become a digital citizen kiosks enterprise computing, natural language processing, robotics and virtual reality

Answers

Answer:

How could be an individual become a digital citizens?

Skills such as self-advocacy, conflict resolution, anger management, and decision-making skills, as well as the ability to use assertiveness, resistance, and refusal techniques, are also included and can help students respond safely and effectively online

Explanation:

SAlamat po pa rate nalang

Which of these inventions where the most iconic and important of the 1970s? Why?
The First Floppy Disk (1971).
The First Digital Camera (1975).
Altair 8000 (1974).
Pong (1972).
Rubik’s Cube (1974).

Answers

Answer:

Explanation:

Discussion

I don't think I would choose Rubik's Cube, although I think many people would. It does have a depth of something that moves in all three dimensions, but lot's of things do that. It was more of a craze than something of every lasting value.

Pong is a game. Game software has advanced so dramatically that I don't think you know anyone who has played Pong. You could argue it was a beginning -- but there are others that shared that distinction  like Pacman.  

Do you know anyone who ever owned an Altair 8000? I don't. by then the Apple 2 was well on its way. And so was Apple which is a huge corporation.

Computer storage has always been forefront in Computer Engineer's minds. I think the First Floppy Disk is likely your answer, although if you choose the digital camera, I don't think you be wrong.

Answer: First Floppy Disk  

what is the protocol suit for the current internet

Answers

Answer:

TCP/IP protocol suite

Explanation:

it just is lol

Explanation: One of the most common networking protocol suites is known as Transmission Control Protocol/Internet Protocol (TCP/IP). All devices that communicate across the Internet must use the TCP/IP protocol suite. Ok bye

Consumers affect which goods and services are produced because they _____.

name the goods and services produced
choose which goods and services to buy
select the capital goods used for production

Answers

Answer:

Choice B, "choose which goods and services to buy"

Explanation:

Consumers choose which goods and services to buy. Companies only want to provide goods and services they know will be bought. Therefore, consumers affect which goods and services are produced because they choose which goods and services to buy.

The ________ mouse uses a rolling ball to detect movement and requires regular cleaning to work properly

Question 7 options:

A Mechanical

B Optical

C None of the above

D All of the above

Answers

A. mechanical

The mechanical mouse uses a rolling ball to detect movement and requires regular cleaning to work properly.

In this area, you want to focus on which hardware, application, personnel, or department(s) will be impacted by the security policy. For instance, what type of personal devices are allowed on the network and when? Must the personnel receive formal approval before using such devices on the network? What kind of activity is allowed on a personal device? Who is responsible for granting the permission to use a device on the network?

Answers

The type of personal devices that are allowed on the network are:

1. Laptops

2. Smartphones

3. Tablets

What devices do BYOD have?

BYOD is known to be Personal devices such as smartphones that organizations often gives permission for employees that are working from home to be able to have a flexible schedule and others.

Therefore, The type of personal devices that are allowed on the network are, Laptops, Smartphones, tablets.

Learn more about personal device here,

https://brainly.com/question/12253360

#SPJ1


Explain three of the the features of the word processing to document. ​

Answers

Word processing software may be used to create, edit, save, and print documents, among other things. Text within a document may be copied, pasted, moved, and deleted. Text formatting includes font selection, bolding, underlining, and italicizing.

I’m so sorry to say I have a lot to say I don’t

What fictional place would you most like to go to? Its your opinion!

Answers

Mount olympus

Explanation:

Because its the home of the greek gods and i feel like it would be cool to meet the gods

what are the benefits and drawbacks of a desktop utilising virtualisation and a server?

Answers

•Cons of Virtualization. High Initial Investment. Data Can be at Risk. Quick Scalability is a Challenge. Performance Witnesses a Dip.

•Pros of Virtualization. Uses Hardware Efficiently. Available at all Times. Recovery is Easy. Quick and Easy Setup. Cloud Migration is Easier.

Mark as brainlest answer!!!!!

Today's classified ads are often geared toward
medical jobs
O entry-level jobs
military jobs
O high-tech jobs

Answers

Answer:

entry-level jobs

Explanation:

Briefly explain how human thinking is mapped to artificial intelligence components.

Answers

Answer:

The technique is called 'mind mapping' which allows the visual representation of ideas and information which also links to memorization. Artificial Intelligence is mimicked as a system based on how our mind works; the human brain's critical thinking is mapped to artificial intelligence.

Database queries is an example of

Answers

Answer:

A query in a database is a request for information stored within a database management system (DBMS), which is the software program that maintains data.

SQL(Structured Query Language ( is a standard language for storing, manipulating, and retrieving data in database.

Five types of SQL queries are:

1) Data Definition Language (DDL).

used to define and modify the structure of a database.

2) Data Manipulation Language (DML).

used to manipulate (change) the data in the database.

3) Data Control Language(DCL).

used for access control and permission management for users in the database.

4) Transaction Control Language(TCL).

used for maintaining consistency of the database and for the management of transactions made by the DML commands.

5) Data Query Language (DQL).

used for performing queries on the data within schema objects.

What is a major advantage of medical simulators?


The procedures can be practiced with no risk to a patient.

The games have replaced more time-intensive training in hospitals.

The programs deliver more realistic training than actual surgeries.

The simulators are inexpensive and easy to design.

Answers

Answer:

The procedures can be practiced with no risk to a patient.

Explanation:

This program will output a right triangle based on user specified height triangle_height and symbol triangle_char.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt)



(2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)



Example output for triangle_char = % and triangle_height = 5:

Answers

Answer:

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))

print('')

for I in range (triangle height):

for j in range(i+1):

print(triangle_char, end = " ")

print()

Explanation:

I did this question mark brainiest please

ANSWER QUICKLY!!

Kenny is designing a document for the employee motivation campaign at his company. He is using various elements of design and grouping them accordingly. Which principle of design is Kenny following in his document?

Answers

Answer: The answer is Proximity.

Explanation:

To perform any task in the computer, we have to instruct the computer what to do. true or false can you say there is confusion ​

Answers

Answer:

True, we have to instruct the computer what to do.

Explanation:

Rather than entering an IP address into our browser, we use a text-based address known as a(n

Answers

Answer:

url

Explanation:

Gigantic Life Insurance has 4,000 users spread over five locations in North America. They have hired you as a consultant to provide a
solution for standardizing Windows 10 configuration. There is a mix of desktop computers and tablets running Windows 10. The computer
and tablets come from a variety of vendors because Gigantic Life Insurance allows agents to purchase their own computers. How do you
recommend they standardize their Windows 10 installations?

Answers

First of all, when buying a set of Windows 10 operating system, It needs to buy Windows Server 2016 version as well in order to centrally connected to the Windows server machine. So coming to the edition of the Windows 10 version, we need to buy Windows 10 Enterprise edition for your infrastructure. So, the configuration can be like for each computer machine you must use 8 GB of memory and 500 GB of storage. For tablet, it can choose 4 GB memory and 32 GB ROM. Windows tablet comes with already installed OS. But for installation of Windows enterprise client OS, it needs to choose network mode of installation.

What is windows?

A window is a separate viewing area on a computer display screen in a system that allows multiple viewing areas as part of a graphical user interface (GUI). Windows are managed by a windows' manager as part of a windowing system. A window can usually be resized by the user.

Learn more about window's here,

https://brainly.com/question/26388929

#SPJ1

Other Questions
Write the quadratic equation in standard form:-3x^2-16=3x 3. Be prepared to discuss what you learned with the entire class.Let's say your health insurance plan has the following features:Deductible: $500Coinsurance: 80/20 (you pay the 20%; insurance company pays 80%)Out-of-Pocket Maximum: $5,000Now, let's say that you go to the hospital and incur $7,500 worth of medical expenses. How much do have to pay out of pocket? ANSWER THIS CORRECTLY FOR BRAINLIEST (algebra) Tara is interested in designing automated systems for a supply chain. which type of degree would she most likely need? select an answer: mechanical engineering packaging engineering computer science industrial engineering When an object rolls over a surface, what type of force is acting on it? How many state's ratified the constitution right away ? A. 13 B. 9 C. 1 D. 5 Why is Earth's magnetic field important to the survival of life? #18. estimate the perimeter and the area of the shaded figure to the nearest tenth A diner is serving a special lunch combo meal that includes a drink, a main dish, and a side. customers can choose from 4 drinks, 5 main dishes, and sides how many different combo meals are possible? customers cani create choose. v different lunch combo meals. What are the two (2) different design elements of scratch? Which organisms are likely to be found in level 1 of this diagram? Select thetwo correct answers.460031550Trophic Level2170001340000O A. DaisyB. TigerO C. AlgaeO D. SquirrelO E. Rabbit What is the balance point of the data set?46936 Write an equation in slope-intercept form for the relationship in the table. Step 4: Summarize nuclear changes.a) Use your completed table and models to write a summary that addresses the following questions:1. How does energy change in these reactions? Is energy needed to start the reactions or is energy given off in the reactions? For each type of reaction, approximately how muchenergy is released?2. How do these energy changes compare in scale to other types of reactions, such as chemical reactions? Dr. shepherd is studying a bacterial colony with a population of 29,600 bacteria. the colony is growing 5% per hour. how many bacteria will the colony contain in 12 hours? if necessary, round your answer to the nearest whole number bacteria If you have 10,000 grams of a substance that decays with a half-life of 14 days, then how much will you have after 28 days?Round to the nearest whole number. Which of the following is true about spores?Spores are much larger than seeds.Spores are much larger than seeds.Spores are not used for plant reproduction.Spores are not used for plant reproduction.A. Most flowering plants produce spores.B. Most flowering plants produce spores.C. Spores are much smaller than seeds.D. Spores are much smaller than seeds.ANSWER QUICKLY PLSSSSS Which graph represents a circle whose equation is (x+3) + (y-1) = 4? Please help! Im a bit confused, offering 25 points! This mix and match! I need this Asap!!!!!! please