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

When does if(x==y) execute?
A. when x is equal to y
B. when x does not equal y
C. never, it is just a check to see if x is equal to y

Answers

Answer:

A. When x is equal to y

what will happen if I upgrade my asus crosshair v formula-z motherboard to a asus rog strix b450-f motherboard?

Answers

Answer: A lot will happen

Explanation:

If you will upgrade your laptop, that means it will get better in performance and a lot of other things....

Also, if the laptop has the word formula, you know that's a good thing, especially if it's z, which is the last letter in the alphabet.

And the other letters are something that I don't understand especially the Strix b450-f part..

Hope I helped a lotttt...

What is wrong with this case statement -> case (x > 2):
A. cases can't have a test condition
B. cases must be capitalized
C. cases must use a ; and not a :

Answers

Answer:

A: cases can't have a test condition

Explanation:

Under the hood, switch statements don't exist. During the mid-stage of compilation, a part of the compiler will lower the code into something that is easier to bind. This means that switch statements become a bunch of if statements.

A case in a switch statement acts upon the switch value. Think of the case keyword as the value you pass into the switch header:

int x = 10;

switch (x)

{

case (x > 2):

     // Code

     break;

}

// Becomes

if (x(x > 2))

{

// Code

}

// Instead do:

switch (x)

{

case > 2:

     // Code

     break;

}

// Becomes

if (x > 2)

{

// Code

}

3. Which of the following is most likely fake news?
O A. Content from a website that ends in ".edu"
OB. A news site that lists all of its contributing authors
OC. An article that tries to sell you miracle weight loss pills
O D. An academic resource listed in a bibliography

Answers

Answer:

C. An article that tries to sell you miracle weight loss pills

What is the process of ensuring that corporate security policies are carried out
consistently?

Answers

Policy or security and only conscious

Ensuring consistent adherence to corporate security policies involves a systematic approach to implementation and monitoring.

Ask about the process of ensuring that corporate security policies are carried out consistently.

Here are some steps that can be taken to ensure policies are carried out consistently:

1. Policy Development:

Establish clear and comprehensive security policies that cover various aspects such as data protection, access controls, network security, and employee guidelines.

2. Communication and Training:

Effectively communicate the policies to all employees, ensuring they understand their roles and responsibilities in maintaining security.

3. Documentation and Accessibility:

Document the policies in an easily accessible format, such as an employee handbook or an intranet portal. Regularly update and maintain the documentation to reflect any changes or new requirements.

4. Compliance Monitoring:

Implement a monitoring system to track compliance with security policies. This can include conducting internal audits, vulnerability assessments, and security awareness campaigns.

5. Incident Response and Reporting:

Establish a clear process for reporting security incidents or violations. Encourage employees to report any suspicious activity promptly.

To learn more about the security policies visit:

https://brainly.com/question/13169523

#SPJ3

3. Write an algorithm to find Area of square?

Answers

A square is simply a rectangle with equal sides. As a result, the length and breadth of a square are equal. As a result, the area of a square is the product of two square sides, or in simpler terms, squares of the side.

Area = Side^{2}Area=Side

2

We use the following formula to compute the area of a rectangle after being given the length and width of the rectangle as input.

ALGORITHM:

Step 1 : Start

Step 2: Input Side

Step 3: Area = Side \times× Side

Step 4: Print area

Step 5: Stop

True or False?
With search advertising, you should have a landing page with long content (around 2,000 words).
HELPPPPP

Answers

The given statement is True.

What is Search Advertising?

Search Advertising is also known as search engine marketing which is an marketing technique used to place the advertisement in the search engine so that customers can review it.

The Companies who runs the business of the advertising in the search engine get a small amount of pay for such one click.

There is long content on the page of the websites containing the search advertising long with it. Therefore the statement given in the question is true.

Learn more about Search Advertising here:

https://brainly.com/question/8132328

#SPJ1

The layer of the ISO/OSI responsible for source to destination delivery.

Options:
(a) transport
(b) network
(c) data-link
(d) session ​

Answers

Answer:

(b) network

Explanation:

The Network Layer is the OSI Model's third layer. It is in charge of packet transport from source to destination or host to host across various networks. The layer receives data from the transport layer, adds a header to it, and sends it to the data link layer.

changing the ___ sometimes can help you find a contact information more quickly​

Answers

Answer: View
(I really hope this helps?)

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:

What is spy wear on a desk top computer

Answers

Answer:

Spyware is when a hacker gathers confidential information and data by logging the user's key presses (keylogging) etc and uses it for fraud or identity theft. That's also why touchscreens are safer than keyboards.

Explanation:

Q For each of the following words identify the byte that isstored at lower memory address and the byte that is stored athigher memory address in a little endian computer.
a. 1234
b. ABFC
c. B100
d. B800

Answers

C is the correct answer for this question

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 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

(e) The entries in each column of the array A are sorted into strictly increasing order.

(f) The entries in any two consecutive columns of the array A are distinct.

(g) At least one of the entries in the array is divisible by 3 and has remainder 1 when divided by 5.

2. Decide whether each of the above statements is True or False. If False, provide an example to demonstrate why.

3. Describe how you decided the truth value of each statement. E.g., did you use any technology to assist you, did you work out any of the values, etc.?

Answers

The answer is 3 because

List and describe four services that comprise IT infrastructure, beyond physical devices and software applications.

Answers

The four services that comprise IT infrastructure are:

Telecommunications services. Data management services . Application software services.Physical facilities management services.

What does these services do?

Telecommunications services is known to help in terms of giving data, voice, and video network.

Data management services helps to save , manage, and analyze all data. Application software services helps to give firms-wide range capabilities.

The Physical facilities management services helps to make and handle physical installations of technology.

Therefore, The four services that comprise IT infrastructure are:

Telecommunications services. Data management services . Application software services.Physical facilities management services.

Learn more about  IT infrastructure from

https://brainly.com/question/869476

#SPJ1

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

You are advising the owner of Smalltown Computer, a new, local computer repair store that also builds custom computers to order. What competitive strategies could Smalltown Computer exert? Which ones will it have difficulty exercising?

Answers

Answer:

speech processing is the study of speech signals and processing access signal the signals are used process in a digital representation suspicious processing can be recognised as a special case of digital signal processing light to speed signal

What is a group of two or more integrated hard disk called

Answers

Answer:

Redundant Array of Independent Disks known as RAID

Explanation:

If you want to load the "my-data.csv" file to Dataframe so that you can explore find out the number of data items in the data set, how should you import the required library?

1.import numpy as dataframe

2.import pandas as pd

3.import seaborn as pd

4.import matplotlib.pyplot as pd​

Answers

If a person want to load the "my-data.csv" file to Dataframe one can use import pandas as pd.

What is pandas?

Pandas is known to be a tools that carry out data transformations. It often helps to filter and analyze any kind of data.

Note that for import one can use:

import numpy as np. import pandas as pd.

Therefore, If a person want to load the "my-data.csv" file to Dataframe one can use import pandas as pd.

Hence, the second(2) option is correct.

Learn more about Dataframe  from

https://brainly.com/question/25525005

#SPJ1

When evaluating an OR operator, what is necessary for execution.
A. Only one condition can be true
B. One condition must be true
C. Both conditions must be true

Answers

Answer:

B

Explanation:

SAfe is based on four primary bodies of knowledge#

Answers

SAfe is based on four primary bodies of knowledge that are Agile improvement, Lean product improvement, structures thinking, and DevOps.

What is the number one want for SAFe?

A number one purpose for SAFe is to align improvement to in addition commercial enterprise objectives. SAFe combines learnings from validated agile methodologies to create a platform that meets the necessities for software program improvement inside big organization programs.

SAFe Full Configuration includes 4 ranges: Team, Program, Large Solution and Portfolio. It is continuously being improved, and its ultra-modern model. Fe is primarily based totally on 4 number one our bodies of knowledge: Agile improvement, Lean product improvement, structures thinking, and DevOps.

Read more about the SAfe:

https://brainly.com/question/8430576

#SPJ1

Suppose that you have the following definitions:
struct time Type
struct tourType
{
int hr;
double min;
int sec;
string cityName;
int distance;
timeType travelTime;
};
};
a. Declare a variable destination of type tourType.
b. Write C++ statements to store the following data in destination: cityName - Chicago, distance -- 550
miles, travelTime - 9 hours and 30 minutes.
c. Write the definition of a function to output the data stored in a variable of type tourType.
d. Write the definition of a value-returning function tat inputs data into a variable of type tourType.
e. Write the definition of a void function with a reference parameter of type tourType to input data in a
variable of type to tourType

Answers

Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;

What is C++ statements?

Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.

#include#includethe use of namespace std;struct timeType;struct tourType;tourType destination;tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;cin>>destination.distance;cin>>destination.travelTime.hr;cin>>destination.travelTime.min;go back destination;}void display()cityName;d.distance = t->distance;d.travelTime.hr = t->travelTime.hr;d.travelTime.min = t->travelTime.min;">int main().

Read more about the variable :

https://brainly.com/question/2804470

#SPJ1

Select the items below that are a computer
Pocket Watch
Server
Calculator
Piano
Laptop
Tablet

Answers

Answer:

Laptop is the answer.. .....

What is the result of the following code?
int x = 1;
switch(x)
{
case 1: printf( "Help" );
case 0: printf( "Me" );
break;
case 2: printf( "Hello World" );
}
A. HelpMe
B. Help
C. Help Me
D. Hello World

Answers

Answer:

B: Help

Explanation:

During the execution of this switch statement, it will print "Help" because that's the only case that matches the value of x, it will not print "Me" because that case does not match, so it will fall through that case into the break statement.

Is computer doing more good than harm or more harm than good

Answers

Answer:

yes computer do more good also if we use safely if we don't use safely computer harm also

What is CPU? List its major parts.​

Answers

Answer:

The central processing unit is the brain of the computer. it is the part of the computer which performs manipulations. it is also called the microprocessor.

components of the CPU: The control unit, the arithmetic and logic unit, the register and the memory unit.

I hope you understand:-):-)

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

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

Trent is researching what it would take to become a pharmaceutical scientist. What academic requirements should he complete?
A.
an associate’s degree
B.
on-the-job training
C.
technical school
D.
a doctorate degree
E.
a bachelor’s de

Answers

Trent is researching and for Trent to become a pharmaceutical scientist, he needs to complete a doctorate degree. hence, Option D is the correct answer.

What degree is a doctorate?

A doctorate degree can be defined as the best-earned academic degree in U.S postsecondary education. Doctoral tiers usually take 4 or greater years to complete, and the number of credits required for completion can also additionally range relying on the program.

hence, Trent is researching and for Trent to become a pharmaceutical scientist, he needs to complete a doctorate degree.  Option D is the correct answer.

Learn more about doctorate degree:

https://brainly.com/question/21974838

#SPJ1

Other Questions
The order in which controls receive the focus is called the ________ PLEASE HELP. A stovetop burner on medium reaches 95C. Which will also receive a flow of heat directly from the burner?A. the surrounding airB. a burner at the same temperatureC. a pan heated to 100CD. hotter water inside a pan PLEASE HELP!! ANSWER AND EXPLANATION NEEDED URGENTLY!! There are x boys in a class. If thenumber of girls are 3x + 1, how manyboys and girls are in the classaltogether. A particle moves along a straight line such that its acceleration is a=(4t^2-2) Last week, you went to the water park with friends on Monday, Wednesday, and Friday. If you stayed at the water park 3.5 hours each of those days, how many hours did you spend at the water park last week? A. 15 hours B. 9 hours C. 5.5 hours D. 10.5 hours What does it mean for the forces acting on an object to be balanced? 9. Solve for x: Please explain Which of the following is equivalent to(16 3/2)^1/2 ?O 6O 8 O 12O 64 Cmo es tu familia? Working with a classmate, ask each other these questions to find out more about your respective families. 1. Cmo es tu familia? Es muy unida? Un poco loca? 2. Dnde vive tu familia? Llevan muchos aos all? 3. Tienes hermanos o eres hijo(a) nico(a)? (If your partner has siblings, ask:) Cuntos? 4. Visitas con frecuencia a tus abuelos? Cuntos aos tienen? 5. Tienes muchos tos y primos? Pasas mucho tiempo con ellos? 6. Cul de tus amigos es como parte de tu familia (is like part of your family)? Asiste a muchas fiestas de tu familia? 7. Qu mascotas tienes? Cmo se llaman? The chart lists four different kinds of atoms.A chart titled Different Kinds of Atoms with the entries calcium, gold, argon, iodine.What is true about all of these atoms?They cannot be solids.They are the largest units of matter.They are the only types of atoms that exist.They cannot be divided and still keep the properties of the element. How did the Berlin Conference affect 19th-century European imperialism in Africa? A. It led to military conflicts among European powers over unclaimed territory in Africa. B. It forced European powers to work closely with local leaders in their African colonies. C. It determined which African regions each European imperial power would control. D. It ensured that Europeans would continue to rely on Africa as a source of slave labor. A management perspective that suggests jobs should be designed to meet higher-level needs by allowing workers to use their full potential is called a which of the following was a social cost associated with the devolpment of the internal combustion engine used in most cars? Find the surface area of the composite figure4 cm13 cm3 cm4 cm12 cmSA = [?] cm5 cm3 cm. Pls help In which of the following ways did Rome limit the consuls' power?A. Consuls held unlimited power.B. The consuls served for only one year terms.C. Consuls were forced to leave Rome for four years following their terms as consul.D. Consuls were chosen by lot. Roberto: Quiero trabajar como voluntario el prximo verano. Julio: Yo _________ viajar por Europa.A. tengo raznB. tengo vergenzaC. tengo pensadoD. tengo cuidado You are not liable for damage to property next to a street or highway if in a collision. FALSE TRUE Submit answer 4Days 7hours 16 minutes What does it mean if someone says they are slowly giving up?