How to print:
Number is equal to: 1 and it is odd number
Number is equal to: 2 and it is even number
Number is equal to: 3 and it is odd number
Number is equal to: 4 and it is even number
in the console using java
using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens

Answers

Answer 1

Answer:

Here is a possible solution:

   int number = 1;

   while(number <= 4) {

     String kind;

     if ((number % 2) == 1) {

         kind = "odd";

     }

     else {

         kind = "even";

     }

     String output = String.format("Number is equal to: %d and it is %s number\n", number, kind);

     System.out.print(output);

     number++;

   }  


Related Questions

What is the chief concern of cloud computing?

Answers

Answer:

Security is the chief concern of cloud computing

Explanation:

The phrase cloud computing refers to a type of Internet-based computing, in which different services including storage, servers, and applications are delivered to the devices and computers of an organizations through the Internet.

The main concerns of cloud computing include;

Cost

Security

Speed

Redundancy

Among these, Security is the chief concern of cloud computing

Let us first understand what a cloud computing is? So what is cloud? A cloud is up in the sky? Who has access on it? Everyone in the world can see. Do you know which cloud is giving you rain?

No. The same is the concept of cloud computing. Any subscriber can save data. The user does not know where the data is stored and retrieved. After understand this you can easily understand the concern of cloud computing.

1. Cyber attacks  

2. Security breaches  

3. Intrusion of Government  

4. Legal liabilities  

5. High risk to store data

Here security is the chief concern of cloud computing.

All of these are parts of the primary ignition circuit except

A. the ignition switch.
B. the ignition module.
C. pickup coil.
D. spark plug wiring.

Answers

Pickup coil is not apart of the primary ignition

Answer:

The pickup coil ( C )

Explanation:

the ignition circuit is designed and divided into two circuits namely the primary ignition circuit and the secondary ignition circuits

The primary Ignition circuit is made up of : the ignition switch ,the ignition module, the battery, resistor, and spark plug wiring also known as primary coil wiring

The secondary Ignition circuit is made up of : The pickup coil (ignition coil) , spark plug and distributor.

therefore the pickup coil is not part of the primary Ignition circuit system

What is LINUX?
An open source operating system
A version of MS DOS
The first version of UNIX
The newest technology available

Answers

It would be an open source operating system. there isnt much to say but that is something that is more commonly known. so i honestly cannot provide a proper explanation for that

Answer:  An open source operating system

Linux is a free and open-source operating system. Let us understand the terms free and Open source.

Explanation:

Free indicates that it can be downloaded without any cost and can use it either personally or for commercial but the user does not have rights to sell.

Open source indicates that the user can edit the code written for the operating system and use it personally or even once again circulate in the Linux website for free of cost. Open source means the code is available for free to the user.

Audra has applied formatting to text in her document. She would like to copy this formatting to one other value in the document

Answers

well, since she wants to copy the formatting into the document then "Format Painter" is the best answer for this.

--hope this helps! please mark brainliest

Answer:

Format Painter

Explanation:

I am a bacterium. I cause stomach cramps and diarrhea. I am caused by eating rotten foods
such as chicken, fish, or eggs. Sometimes turtles carry my bacteria.
What am I?​

Answers

I think it's salmonella. : )

Answer:

Salmonella

Explanation:

Also called: salmonellosis. Symptoms  include diarrhea, fever, chills, and abdominal pain

Late at night, some traffic signals change patterns and become _____.

Answers

Answer:

combined in color.

Explanation:

It's because the modern traffic signals are controlled by the computers, and they are programmed to display different signals for different times of day, night, days of week and holidays etc.

Answer:

Late at night, some traffic signals change patterns and become flashing lights.

Explanation:

This is usually due to the less traffic during those hours of night. The same time varies for national highways where large trucks and lorries continuously travel. To avoid accidents, the dividers are provided with flashing yellow lights for better visibility.

Many traffic signals display flashing yellow and flashing red lights. This means to first stop, wait for a clear intersection and proceed. It is safe to watch out areas and move slowly where drinking shops are nearby.

In 2009 to 2010, how many social network users were reported as being victims of online abuse?

A. 1 in 10
B. 100%
C.1 in 100
D. 50%

Answers

Answer: i think it is D but it might be A

Explanation because not everyone in the world at that point was and 1 in 10 is to little and one in 100 in way to little so it is either D or A

Answer:

its 50%

Explanation:

a third of the sum of a number and ten is thirty​

Answers

Answer:

 2*(x+3) = 3*(x-9)

Explanation:

Twice the------ sum -----------------of a number and 3

2 times -------- addition ----  x + 3

2 times-------------x times 3

               

                  2*(x+3)

 

is equal to------ three times---- the difference----- of the number and 9

=----------------- 3*------------- subtraction--------- x-9

Final answer:

The algebraic equation (x + 10)/3 = 30 can be solved by multiplying both sides by 3 and then subtracting 10, resulting in the number 80 as the solution.

Explanation:

The student's question is about solving an algebraic equation where a third of the sum of a number and ten is thirty. To solve this, we let the unknown number be represented by the variable x. The equation can be written as: (x + 10)/3 = 30. Multiplying both sides by 3 to eliminate the fraction gives us x + 10 = 90. Subtracting 10 from both sides reveals that x = 80. So, the number we are looking for is 80. This is a classic example of solving one-step linear equations which is an essential skill in mathematics.

When Guido van Rossum created Python, he wanted to make a language that was more ____________ than other programming languages.
a.
Code-based
b.
Human-readable
c.
Complex
d.
Functional

Answers

Human readable and easy to understand
Final answer:

Guido van Rossum aimed to create Python as a programming language that is more human-readable than others. His emphasis was on making the language easy to understand and reducing the cost of program maintenance.

Explanation:

When Guido van Rossum created Python, his primary objective was to make a programming language more human-readable than others. This means he desired that Python should be easy to understand for both the computer and the human reader. Unlike many languages that are more code-based and complex, Python's syntax emphasizes readability and reduces the cost of program maintenance.

Learn more about Python here:

https://brainly.com/question/30391554

#SPJ2

Technician A says that a system should be recharged with refrigerant until the condenser temperature is equal to the ambient temperature plus 100°F. Technician B says that a system should be recharged with the type and amount of refrigerant found on the vehicle's under-hood sticker. Who is correct?

Answers

Answer:

Technician B

Explanation:

The vehicle will always come with a sticker placed under the hood of the AC unit. This sticker has information like the amount of ounces or pounds required for a complete charge. The car’s gauge will state the psi with most gauges having a color bar on the face the appropriate pressure.

Read the following scenario, and then answer the question below. You want to send an e-mail to your boss requesting a meeting to discuss a raise. What is the best example of an e-mail to an employer about this meeting? “Hey Jason. Can we chat about getting me more money soon? Let me know. Peace, Meg.” “Hello Jason. Please pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. I am dying to know when you can talk. Sincerely, Meg.” “Hello Jason. I have been with the company for one year and have taken on more responsibilities than outlined in my job description. I would appreciate an opportunity to speak with you about my position. Please let me know when we can schedule a meeting. Thank you, Meg.” “Greetings Jason! I hope this e-mail finds you well and happy today. I really, really want to talk to you about something important. I am not sure if you have time. I hope you do. Please get back in touch with me and let me know when we might talk. Thanks ever so much for taking the time to read this. Sincerely, Meg.”

Answers

Answer:

“Hello Jason.

I have been with the company for one year and have taken on more responsibilities than outlined in my job description. I would appreciate an opportunity to speak with you about my position. Please let me know when we can schedule a meeting.

Thank you, Meg.”

Explanation:

Sending an email to your boss can be a good way to ask for a pay rise without having an awkward in-person conversation. To write an email of this stature, you should make sure to request a meeting to discuss pay increase as the subject line of the email. You should also make sure to include a reason of why you deserve a salary increase and what additional responsibilities you have taken on in your current role. If you have acquired any certifications since being hired, make sure to include that too.

Answer:

“Hello Jason. I have been with the company for one year and have taken on more responsibilities than outlined in my job description. I would appreciate an opportunity to speak with you about my position. Please let me know when we can schedule a meeting. Thank you, Meg.”

Explanation:

the answer is C, e2020 checked

Before you enter an intersection on a green light make sure

Answers

Final answer:

Before entering an intersection, even with a green light, it's essential to ensure the way is clear for reasons like pedestrian safety, especially around campuses, and to be cautious of vehicles that may speed through the intersection.

Explanation:

Before you enter an intersection on a green light, it is crucial to ensure that your path is clear and that it is safe to proceed. This precaution is vital for several reasons:

Pedestrian safety is at risk, particularly at busy times when students are arriving at or departing from campus. They require a safe time to cross, and proceeding only when the intersection is clear helps to prevent incidents.Even with a green light, traffic conditions may not always be safe. Many vehicles speed through intersections, ignoring the posted speed limits, so it is essential to look out for such dangers.In conditions where a traffic signal might be ignored, such as during an emergency (like transporting a pregnant woman to the hospital), different considerations apply, but generally traffic rules ensure safety and must be followed.

It is not just about following traffic signals; it's about assessing the situation to ensure everyone's safety. Whether we're dealing with pedestrian pace or emergency scenarios, intersection safety is paramount.

These tools give presenters more freedom to move about the room and interact with their audience.

laptop computer
laser pointer
LCD projector
remote control

Answers

Answer:I would say laser pointer and remote

Explanation:

The LCD projector normally isnt moved around during a presentation and the laptop computer is usually also stationary

Answer:

laser point

remote control

Explanation:

The tools that give the presenters more freedom to move about the room and interact with their audience are:

-Laser point: is a small device that has a visible light which allows the presenter to highlight things from any place where he is.

-Remote control: Is a device that helps the presenter to control the projector from the distance to handle what's being showed in the presentation which gives him/her the liberty to move as the presenter won't have to stand next to the computer.

While creating a web page, what does each of the following HTML tags define?

1.
2.


3.

4.


A. defines a new paragraph
B. defines a term
C. defines a single line break
D. defines a heading

Answers

Answer:

defines a new paragraph-<p>

defines a term-<dd>

defines a single line break-<br>

defines a heading-<h3>

Explanation:

PLATO

While creating a webpage, <p> defines a new paragraph and <dd> defines a term.

What is a webpage?

A webpage is also referred to as web page and it can be defined as a hypertext document within a website with a unique uniform resource locator (URL).

In the creation of a webpage, the definition of each of the following HTML tags include:

<p>: defines a new paragraph.<dd>: defines a term.<br>: defines a single line break.<h3>: defines a heading.

Read more on webpages here: https://brainly.com/question/26324021

#SPJ2

in cell B20, enter a function to calculate the average attendance for 2018

Answers

A function to calculate the average attendance for all of the locations for the year 2018 would be: =average(F5:F11).

To enter a function to calculate the average attendance for the year 2018 we have to follow the following steps.

We have to select the cell that we want to edit. In this cell we are going to enter the function and the result of  the operation will be there. In this case is cell B20.

We have to enter the next code "=average(F5:F11), with this code we are going to programate the program to sum and divide (promediate) the attendance of the year 2018.

Finally we have to press enter key to activate the formula.

Full Question:

Although part of your question is missing, you might be referring to this full question:


In cell B20, enter a function to calculate the average attendance for 2018?
See attached.

where are American poets found in the Dewey Decimal System​

Answers

Answer:

The Dewey Decimal Classification (DDC) is structured around ten main classes covering the entire world of knowledge; each main class is further structured into ten hierarchical divisions, each having ten sections of increasing specificity.[1] As a system of library classification the DDC is "arranged by discipline, not subject", so a topic like clothing is classed based on its disciplinary treatment (psychological influence of clothing at 155.95, customs associated with clothing at 391, and fashion design of clothing at 746.92) within the conceptual framework.[2] The list below presents the ten main classes, hundred divisions, and thousand sections.[3]

Explanation:

Other Questions
A person travels by car from one city to another with different constant speeds between pairs of cities. She drives for 25.0 min at 95.0 km/h, 16.0 min at 100.0 km/h, and 50.0 min at 40.0 km/h and spends 30.0 min eating lunch and buying gas. Determine the average speed for the trip. In the ________, consumers are pictured as either receptive to or actively searching for products and services that fulfill their needs and enrich their lives. What can be inferred about the cyclops in this excerpt from Homers odyssey? Match the relationship in the second pair of words with that of the first pair.Fervent:Apathetic :SmallA.prodigiousB.ingeniousC.solace Simplify the expression square root of 15square17 When the herbicide glycoladehyde is applied to a plant, its cell are unable the Calvin cycle What is the concentration, in grams per liter, of a solution prepared by dissolving 0.00040 mol HCl in 2.2 L H2O? Assume that the volume of the solution does not change when the HCl is added. Exercise 15-7 Crawford Corporation incurred the following transactions. 1. Purchased raw materials on account $53,000. 2. Raw Materials of $45,200 were requisitioned to the factory. An analysis of the materials requisition slips indicated that $9,400 was classified as indirect materials. 3. Factory labor costs incurred were $65,400, of which $50,200 pertained to factory wages payable and $15,200 pertained to employer payroll taxes payable. 4. Time tickets indicated that $55,000 was direct labor and $10,400 was indirect labor. 5. Manufacturing overhead costs incurred on account were $81,700. 6. Depreciation on the companys office building was $8,100. 7. Manufacturing overhead was applied at the rate of 160% of direct labor cost. 8. Goods costing $89,400 were completed and transferred to finished goods. 9. Finished goods costing $76,000 to manufacture were sold on account for $105,100. Journalize the transactions. (Credit account titles are automatically indented when amount is entered. Do not indent manually.) No. Account Titles and Explanation Debit Credit (1) (2) (3) (4) (5) (6) (7) (8) (9) (To record the sale) (To record the cost of the sale) Click if you would like to Show Work for this question: Open Show Work Carbon dioxide is excreted from the body by thea. kidneysb. skinc.lungsd.liver The earth can be approximated as a sphere of uniform density, rotating on its axis once a day. the mass of the earth is 5.971024 kg , the radius of the earth is 6.38106 m , and the period of rotation for the earth is 24.0 hrs . part a what is the moment of inertia of the earth? use the uniform-sphere approximation described in the introduction. If a system of linear equations has the unique solution (2, 3), then its graph consists of what?parallel lineslines that intersect at a single pointidentical linesa y-intercept at 3 A particular radioactive nuclide has a half-life of 1000 years. What percentage of an initial population of this nuclide has decayed after 3500 years? Read the excerpt from Julius Caesar, act 1, scene 2.CASCA. Why, there was a crown offered him: and beingoffered him, he put it by with the back of his hand,thus; and then the people fell a-shouting.230BRUTUS. What was the second noise for?CASCA. Why, for that too.CASSIUS. They shouted thrice. What was the last cry for?CASCA. Why, for that too.BRUTUS. Was the crown offered him thrice?235CASCA. Ay, marry, wast; and he put it by thrice, everytime gentler than other; and at every putting by,mine honest neighbours shouted.What kind of conflict does this passage best illustrate?character vs. societycharacter vs. charactercharacter vs. naturecharacter vs. self(It's A) Classify the figure. Name the vertices, edges and bases. (90 points) How does the allegory in The Alchemist develop the theme that happiness can only be realized by following ones Personal Legend?A) Santiago learns that anything is possibleeven transforming oneself into the windas long as there is enough faith.B) Santiago learns that we are all destined for greatness, but we must work hard to attain it.C)By the end of the story, Santiago learns that his treasure is not just gold coins but also the experiences he has had.D)In the beginning of the story, Santiago is content with his life; by the end, he is once again happy. How many times does the graph of 4x = 32 - x2 cross the x-axis?012 HelppppppIm only on #11 Not everyone thinks they have rhythm / dancing can be a fun and active hobby.Not everyone thinks they have rhythm, and dancing can be a fun and active hobby.Not everyone thinks they have rhythm because dancing can be a fun and active hobby.Because not everyone thinks they have rhythm, dancing can be a fun and active hobby.Even though not everyone thinks they have rhythm, dancing can be a fun and active hobby. which statement made by the patient suggests the patient will need to be treated with antipsychotics that target paranoid psychosis?A. It's my fault that all of this is happening. I don't think I could ever forgive myselfB. I have to talk to the President because I'm the only one who can help him.C. I'm not sure why that lady is wearing a red jacket since it's the dogs who need food.D. I don't know that I even want to go to that meeting. It doesn't seem worth it anymore. Which structural formula represents a molecule that is not an isomer of pentane?----------- ------- -HII-0- ---Submit AnswerPreviousNext Steam Workshop Downloader