3.12 LAB: Output range with increment of 5 Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 10

Answers

Answer 1

The INPUT code of the given programme in Java would be as given below:

In this first we are taking input of two integers j and k from the user and then performing the required operations over it

import java.util.

Scanner;  public class LabProgram {    

public static void main(String[ ] args) {  

Scanner scnr = new Scanner(System.in);        

 int i,j;        

 i  = scnr.nextInt();        

 j = scnr.nextInt();        

if(i<=j) {            

int k = i;            

while (k <= j) {                

System.out.print(k + " ");                

 k = k + 5;            

 }            

 System.out.println();        

 }        

 else{            

 System.out.println("Second integer can't be less than first.");                  

}    

}

}  

Learn more about Java Programming here:

https://brainly.com/question/18554491

#SPJ10


Related Questions

show me how to create an argument essayshow me how to create an argument essay ​

Answers

Answer:

1 Introduce the problem.

2 Explain your perspective.

3 Explain your opponent's perspective. Refute their points one-by-one as you go.

4 Present your evidence.

5 Conclude your argument.

1 Introduce the problem.

2 Explain your opponent's perspective first. ...

3 Explain your perspective.

Explanation:

What will happend when I got a BSOD in Windows?

Please answer this question. I'll give You 50 points for free!

Answers

Answer:In Windows OS, the Blue Screen of Death or BSOD appears after a serious system crash that indicates there is some major issue with your PC. Typically, the BSOD—also referred as STOP error — is related to critical hardware and driver misconfiguration, damage, and failure.

Explanation:

Answer:

A blue screen error (also called a stop error) can occur if a problem causes your device to shut down or restart unexpectedly. You might see a blue screen with a message that your device ran into a problem and needs to restart.

what is the maximum length of a text field can be?

Answers

Answer:

4000 characters

Explanation:

I think the max is 4000 characters

Explanation:

no se perdon pero creo es 4000 caracteres

Consider the following code segment. How many unique new (do not count the starting process) processes are created? (you may want to supply some reasoning/diagram )
pid = fork();
if (pid >= 0) // pid greater than or equal to zero
fork();
fork()

Answers

The number of unique processes that are created is in the original process, you get the PID of the child process. In the child process, you get 0.

What is a Code Segment?

This refers to the portion of an object file that is in the virtual space of a computer that contains executable instructions.

Hence, we can note that since PID >= 0, then there would be the creation of two identical processes in which the original process returns the PID of the child process, and the output in the child process would be zero.

If we make use of a canonical tag,

p = fork();\\if (0 == p)

{

   // We're the child process

}

else if (p > 0)

{

   // We're the parent process

}

else

{

   // We're the parent process, but the child couldn't be created

}

Read more about code segments here:

https://brainly.com/question/25781514

#SPJ1

state four input device that are used for playing gaming programs​

Answers

Answer:

Mouse, Keyboard, Headphones, Charger.

Explanation:

These can be plugged into the computer for gaming and other uses.

Answer:

mouse

joystick

keyboard

headset

Explanation:

A few more examples : a gaming keypad and a microphone

Briefly explain purpose of input device​

Answers

Answer:

Mouse, Keyboard, Headphones, Mouse dongle.

Explanation:

Input Device Definition: A piece of equipment/hardware which helps us enter data into a computer is called an input device. For example keyboard, mouse, etc.

Answer:

Input devices are those devices connected to the computer which are used to enter the data. Input can be in the form of text, graphics and sound. There are different types of input devices for different types of inputs.

Explanation:Today, input devices are important because they are what allows you to interact with and add new information to a computer. For example, if a computer had no input devices, it could run by itself but there would be no way to change its settings, fix errors, or other various user interactions. Also, if you wanted to add new information to the computer (e.g., text, command, document, picture, etc.), you wouldn't be able to do so without an input device.


- factors to consider when buying a computers

Answers

Answer:

money

Explanation:

for working for socializing with others

Operational level management can be supported by the systems except Select one: 01. Transaction Processing System 2. Manufacturing Information System 3. Executive support system 4. Financial management system ​

Answers

Answer:

01×3=3

=3

Explanation:

mousamyuig9uuygytyugghbhhbhhbhh

Why when I send a message on iOS it says the person’s notification is silenced, and the message isn’t delivered?

Answers

Answer:

This is because the other person has "Focus Mode" turned on. When this is turned on, all of your messages that you send to him/her will be silenced.

the most popular input device for computer game is called?

Answers

Answer:

joystick

Explanation:

A joystick is an input device that monitors and transmits motion input to the Processor. It monitors any minute changes in direction using a central pivot, then transmits this input to be analyzed and generally operates another device. A joystick is a type of input device which is often utilized to operate gaming programs or graphics programs. A joystick is often used to control a device or a character in a computer software. It is used to operate videogames and may be used to play games designed for gaming platforms or computer games. A joystick is an input device with a pivoting center handle that communicates the angle and direction to the device it is controlling. It helps to engage with your games and has several real-world applications.

After Daniel performed poorly on a test, his teacher advised him to do some self-reflection to figure out how he could get a better score on the next test.

Which actions should Daniel take? Check all that apply.

analyze the content that he knows well
think about whether he should study differently
forget about the test behind him and concentrate on the next one
ask the teacher for some extra help outside of class
go out with his friends to put the poor grade behind him
study the questions he missed and think about why he missed them

Answers

Daniel gives more and more time to self-reflection and improves the mistakes he was doing in the last exam.

What is self-refelection?

Reflecting on oneself is similar to gazing in a mirror and reporting what you see. It is a method of evaluating your work habits, study style, and self. To think about something is the definition of reflection, given simply.

When Daniel didn't do well on an exam, his teacher suggested that he think about his performance to see how he may perform better on the upcoming test.

Examine the material he is familiar with. Consider whether he needs to change his study strategy. Request extra assistance from the instructor outside of class.

Examine the questions he didn't get right and consider why. Self-reflection is the process of assessing one's performance to identify any problem areas that require improvement.

Hence, daniel gives more and more time to self-reflection and improves the mistakes he was doing in the last exam.

To learn more about self-reflection refer;

https://brainly.com/question/14754364

#SPJ1

Answer:

Explanation:

a analyze the content that he knows well

b think about whether he should study differently

d ask the teacher for some extra help outside of class

f study the questions he missed and think about why he missed them

what's an example of radical technological change

Answers

Some radical technology changes are:

3D printing - from the Thing-O-Matic less than 10 years ago to now - people are 3D printing houses (with a concrete admixture), cakes and food items, steel objects with additive welding nozzles… SpaceX even 3D prints some of their rocket engine parts!

Please hit the thanks button :)

Answer:

An example of radical technological change is a metromile which is a US car insurance company.

I hope it helps you.

When does if(x!=y) execute?
A. when x doesn't equal y
B. when x does equal y
C. when x is greater than y

Answers

Answer:

A

Explanation:

Identify the cost of non-compliance. What will happen to the organization if they fail to meet compliance?

Answers

The costs of non-compliance are:

FinespenaltiesBusiness disruption.Revenue loss.Productivity loss.

What will happen to a firm is non-compliance?

Non-compliance is one that makes a firm or company to loose millions of dollars in terms of  financial losses, there is also security breaches, license band, business disruptions, and others.

Therefore, The costs of non-compliance are:

FinespenaltiesBusiness disruption.Revenue loss.Productivity loss.

Learn more about  non-compliance from

https://brainly.com/question/17306620

#SPJ1

Directory services store information in a heirarchical structure. Which statements about Organizational Units (OUs) of a directory service hierarchy are true? Check all that apply.

Answers

Answer:

accounting, authorization, centralized authentication

How many times is the second for loop going to loop in this block of code? Write your answer in numeric form in the box provided.
for steps in range(5):
turtle.forward(100)
turtle.right(90)
for moresteps in rage(4):
turtle.forward(50)
turtle.right(90)​

Answers

Explanation:

The second for loop does 1 of 4 iterations for every 1 of 5 iterations of the parent loop. meaning it is 4 x 5 which is 20.

what two QuickBooks Online payroll subscription levels include QuickBooks time

Answers

The two QuickBooks Online payroll subscription levels include QuickBooks time are:

Online Payroll Premium Elite subscription

What is this about?

QuickBooks Time mobile access is known to be commonly made up of one's QuickBooks Online Payroll Premium and also one's QuickBooks  Elite subscription that is said to be given at no additional cost.

Therefore, The two QuickBooks Online payroll subscription levels include QuickBooks time are:

Online Payroll Premium Elite subscription

Learn more about QuickBooks from

https://brainly.com/question/24441347

#SPJ1

Which of the following Office Online apps is most effective for creating multi-media presentations?
O Calendar
O Cloud computing
O Outlook
PowerPoint
Answer - powerpoint

Answers

Answer:

powerpoint (PP) ..........

prove that A + ĀB = A + B using 1) boolean basic laws and 2) truth table​

Answers

Answer:

projects of sums or POS Boolean expectation may also be generated from two tables quite easy divide determining which rows of the table have and output of zero writing on some term for each row and final multiplying all the some terms this creates a bowler expression representing the truth table as whole

Explanation:

helpful

a transmitter is operating at 150 MHz with a power of 3 W into a one-quarter wavelength vertical antenna. The receiver, which is 32.2 km away, has an antenna with a gain of 8 dB. What is the received power?

Answers

The received power will be 1.243 nW

We're given:

frequency [tex]f[/tex] = 150MHz

distance of the receiver [tex]d[/tex] = 32.2 km=32200m

Power of transmitter [tex]P_{t}[/tex] = 3W

Antenna gain = 8dB

To find :

Power received [tex]P_{r}[/tex]

[tex]P_{r}= \frac{P_{t} *G_{t}*G_{r}* \lambda^2 }{16*\pi^2*d^2}[/tex]

where [tex]G_{t[/tex] is transmit gain and [tex]G_{r[/tex] is receive gain as refrenced to isotropic source

⇒wavelength [tex]\lambda = \frac{c}{f}[/tex] where c is the speed of the light

⇒  [tex]\lambda = \frac{3*10^8}{150*10^6} =2m[/tex]

[tex]G_{t}= 1*1.64[/tex] ( value of [tex]dipole[/tex] = 1.64)

Now,

Antenna gain[tex]=8dB[/tex] ( in decibals)

⇒[tex]10log(x)=8[/tex]

⇒[tex]x=10^0^.^8=6.3095[/tex]

⇒ considering isotropic receiver

⇒[tex]G_{r}=6.3095*1.64=10.3477[/tex] ([tex]dipole[/tex] =1.64)

Now , using the formula

[tex]P_{r}= \frac{3 *1.64*10.3477 *2^2 }{16*\pi^2*32200^2}=1.2437*10^-^9[/tex]

Hence The received power will be 1.243 nW

Leaen more about communication devices here:

https://brainly.com/question/14530107

#SPJ10

What are fields in a table? What are rows in a table? This is talking about Microsoft Word. What are fields and rows and what are they used for?

NEED ASAP

Answers

A  fields in a table is known to be a table that contains records (found in rows) and fields (that are found in columns). Fields have a lot of types of data, e.g. text, numbers, and others.

What are the rows in a table?

A table is known to be a kind of two-dimensional means that is known to have columns and rows.

Note that the columns are said to be fields and the rows are are said to be records.  A record fields  is said to be made up of a lot of data, like information about a specific employee or  product and others

Learn more about fields from

https://brainly.com/question/14789161

#SPJ1

What would you consider before buying a printer​

Answers

Answer:

Printing Quality, Price, If it van vonnect to my laptop or nay devices.

Answer:

to make sure it comes with ink

Explanation:

if not buy some when u purchase it

Review 03 diagnostic and troubleshooting skills including data gathering methods and techniques.

Answers

The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

What is diagnostic and troubleshooting?

Diagnosing is known to be the act of finding out the root cause of any issue through an act of elimination but troubleshooting is known to be the act of fixing of the problem after diagnosis is said to have been carried out.

Therefore, The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

Learn more about troubleshooting skills from

https://brainly.com/question/14983884

#SPJ1

100pts!!!! It can be challenging to create algorithms that are not biased towards minority groups because machine learning works by _____. Select 2 options.


1. discarding outliers

2. excluding majorities

3. including outliers

4. discarding patterns

5. determining patterns

Answers

100pts!!!! It can be challenging to create algorithms that are not biased towards minority groups because machine learning works by _____. Select 2 options.


1. discarding outliers

2. excluding majorities

3. including outliers

4. discarding patterns

5. determining patterns

If x = 5 and y = 7, will statement if(x!=y) execute?
A. yes
B. no

Answers

A. yes

!= means not equal, so if you substitute, you get if(5 is not equal to 7), which renders True and executes

Choose the expression that belongs in the blank in order to ask the user the question shown.

>>> answer = input(_____)
What is your name? Juan

Answers

Answer:

"Juan"

Explanation:

If this is script, than that should be the correct argument.

Algorithm to find odd integers between 1 and49 ​

Answers

Answer:

1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49.

Beth is a software developer who is focused on identifying early-stage interface problems. Beth addresses the dimension of usability known as __________.

Answers

The dimension of usability that is being addressed by Beth is known as efficiency.

The dimension of usability.

In Usability Engineering, there are five (5) qualities of a usable product suggested by Jakob Nielsen and these include the following:

LearnabilityMemorabilityEfficiencyErrors (low rate, easy to recover)Satisfaction

In this scenario, we can infer and logically deduce that the dimension of usability that is being addressed by Beth is known as efficiency because she's focused on identifying early-stage interface problems in software.

Read more on software here: brainly.com/question/26324021

#SPJ1

Question2.
What are the functions of information technology?

Answers

Answer:

I) infrastructure

ii) communication

iii) introduces and maintains computerized systems to process data efficiency , etc

How might the design be changed so that additional copies of print statements would not be needed?

Answers

A design be altered so that additional copies of print statements would not be needed by changing the format spring.

What is the aim of a print statement?

The PRINT statement is known to be often sent data so that it is taken to the display terminal or to another kind of print unit.

Note that A design be altered so that additional copies of print statements would not be needed by changing the format spring.

Learn more about design from

https://brainly.com/question/1020696

#SPJ1

Other Questions
Which statements describe characteristics of a soliloquy? Check all that apply. what is the moop3fngonoi9w Based on statistics from a worldwide health organization, in there were million people worldwide living with a certain disease, and million deaths from the disease. By , the number of people living with the disease had grown to million, and million deaths were reported. Find the percent change for each statistic, and write any conclusions you can draw. An email of inspiring a friend to join the debate club How much sodium bicarbonate to raise alkalinity in pool. Sally spent a lot of time studying for her psychology exam. She received an A on her exam, which reinforced her studying behavior. Sally decided that she is going to spend a lot of time studying for her math exam that is next week because she believes that studying will lead to receiving a good grade. According to operant conditioning principles, Sally is demonstrating that she can _______ her behaviors and desired consequences. The right-handed twin lives in the Sky-World and he is content with the world he helped to create. The left-handed twin lives in the world below. He, too, is content with the world of men. He delights in the sounds of warfare and suffering. These two beings rule the world and look after the affairs of men. During the day people have rituals to honor the right-handed twin. At night they dance and sing for the left-handed twin.Based on this excerpt, it is reasonable to conclude that 1. A bus traveled for 4 hours and 30 minutes to travel 183 miles. What was it's average speed?A. 42.56 mphB. 40.67 mphC. 32.09 mphD. 30.67 mph The complete stress distribution obtained by superposing the stresses produced by an axial force and a bending moment is correctly represented by _______. Of the events that you researched in Part I, which do you think was most important to the women's suffrage movement in the United States? Why? Help this is for my chinese hw, would appreciate it!what does mean in english please type a FULL meaning not just one word give a well-detailed explanation of the importance of the amniotic sac to the mammalian embryo Which statements describe George C. Marshalls contributions? Check all that apply Need help with this question (pic included) If salt (5.99 106 mol) is dissolved in 1.50 102 l of water, which expression can be used to find the molarity of the resulting solution? 2.50 10-8 m 2.50 103 m 3.99 104 m 3.99 104 m You are trying to measure the mass of several different objects when you realize that there is a large wad of gum stuck to the underside of the balance pan. Removing the gum will improve the __________ of your measurements. A metallic spoon is placed in a hot cup of coffee. If the coffee gives away 190 calories to the spoon to cool down by 0.75C, what is the mass of the coffee? (Assume that ccoffee = 1.0 cal/gC.) The nurse is preparing a client for a scheduled surgical procedure. What client statement should the nurse report to the healthcare provider which of these is an example of graphic?a. introductionb text box with summary pointsc. paragraphsd. clincher sentence Please help! thank youuuu Use polynomial long division to divide. Determine whether the divisor evenly divides into the dividend. (8x-5)/(2x+1)