Consider the following code, which is a portion of SomeClass. The instance variable is initialized by the constructor. The method is supposed to multiply the value passed as a parameter by the instance variable and update the value of the instance variable. However, there is a problem. Re-write this code, without renaming any variable names, to resolve the problem.

private int number;

public void multiplyNumbers(int number)

{

number = number * number;

System. Out. Println("The local variable is: " + number);

System. Out. Println("The instance variable is: " + number);

}

Answers

Answer 1

Use the knowledge of computational language in JAVA to write a code which is a portion of SomeClass.

How to write code that uses a file?

To make it simpler the code is described as:

SomeClass

private int number;

public void subtractNumbers(int number)

{

   number = number − number;

   System.out.println("The local variable is: " + number);

   System.out.println("The instance variable is: " + number);

}

See more about Java at  brainly.com/question/2266606

Consider The Following Code, Which Is A Portion Of SomeClass. The Instance Variable Is Initialized By
Answer 2

Answer:

Correct code (For everyone confused):

private int number;

public void multiplyNumbers(int number) {

 this.number = this.number * number;
 System.out.println("The local variable is: " + number);
 System.out.println("The instance variable is: " + this.number);

}

Explanation:

the this. command allows the instance variable of the class to be called instead of the variable in the constructor which as shown can stay the same while still changing the instance variable of the same name. Allowing for the code to be, say if int number was 5. Then the instance variable would be, 5 + 5, which would print:

The local variable is: 5
The instance variable is: 10


Related Questions

According to the video, some workers who work for themselves, such as Actors, Musicians, or Writers, may have what sort of worker represent them to potential customers?

Answers

Answer: an agent

Explanation: got it correct

explain the process of print a file using the microsoft excel​

Answers

You can print complete or partial worksheets and workbooks one at a time or in batches. You can also print simply the Excel table if the data you wish to publish is in a Microsoft Excel table.

Instead of printing to a printer, you can save a workbook as a file. This is important if you need to print the workbook on a printer that isn't the same as the one you used to print it the first time.

Before you print, consider the following:

Before you print anything in Excel, keep in mind that there are a variety of options for getting the best print results.

Windows :

Print one or several worksheets

Select the worksheets that you want to print.

Click File > Print, or press CTRL+P.

Click the Print button or adjust Settings before you click the Print button.

Print one or several workbooks

All workbook files that you want to print must be in the same folder.

Click File > Open.

Hold down CTRL click the name of each workbook to print, and then click Print.

Print all or part of a worksheet

Click the worksheet, and then select the range of data that you want to print.

Click File, and then click Print.

Under Settings, click the arrow next to Print Active Sheets and select the appropriate option.

4. Click Print.

Print an Excel table

Click a cell within the table to enable the table.

Click File, and then click Print.

Under Settings, click the arrow next to Print Active Sheets and select Print Selected Table.

4. Click Print.

Print a workbook to a file

1. Click File, and then click Print, or press Ctrl+P.

2. Under Printer, select Print to File.

3. Click Print.

4. In the Save Print Output As dialog box, enter a file name and then click OK. The file will be saved in your Documents folder

WHAT is the USE OF RIBBON TAB​

Answers

a command bar that organizes a program's features into a series of tabs

There are three groups of people, people who like Apples, Bananas, and Cherries. 19 people like Apples. 23 people like Bananas. 13 people like Cherries. 7 people like Apples AND Bananas. 7 people like Bananas AND Cherries. 6 people like Apples AND Cherries. 4 people like all of them. Using this information, answer the following questions.
1) How many people like Apples but don't like Bananas?
2) How many people like Apples or Bananas (not exclusively) but DO NOT like Cherries?
3) How many people only like one fruit?
4) How many people like AT LEAST two fruits?

Answers

Answer:

answer of QN 1 :10

QN 2:26

QN 2:27

QN 4:62

Explanation:

it goes long to explain

he memory protection requirement must be satisfied by the operating system rather than the processor. True False

Answers

Answer:

true

Explanation:

because memory protection and if not protect all is dead

Focus is which of the following ina photograph?
Depth
Clearness
Color
All of the above

Answers

All of the above. Your welcome :)

Answer:

All of the Above

Explanation:

Because thing is perfect.

You want to check whether a condition has been met, and if it has, perform one action. Otherwise, you want your program to perform a second action. What sort of programming operation would help achieve this

Answers

The  sort of programming operation that would help achieve the above work is Conditional Branch.

What is conditional branching?

A conditional branch is known to be an instruction in a computer. Note that this is a branch instruction that can or cannot give or make a transmission of control that depends on the value of stored bits in the PSR.

It is known to help in decision-making duties in the control unit and it is a kind of programming operation that would help achieve the above work.

Learn more about programming  from

https://brainly.com/question/22654163

Which of the following statements is true?

AI has mastered social interaction and emotions.
AI takes much less time to adjust to changes than humans.
Computers depend on data given to them.
Modern computers use more energy than humans.

Answers

Answer:

Computers depend on data that is given to them

Explanation:

With AI it doesn't just know everything automatically so it is given data to help run

The word "Input" refers to data entering a computer. Anything that is put into the computer. Input can come in many different sources, including keyboard commands and data from other computers or devices. Thus, option C is correct.

What is computer dependency on data?

An input device is anything that transfers data into a computer, like a keyboard or mouse.

It receives information or data from one end, stores it for processing, and then outputs the outcome from the processing on the other end.

Computer input refers to the data it receives at one end, and computer output refers to the output it produces after processing the data.

Data is accepted via input devices in a format that a computer can understand, and after being sent there, it is processed.

Therefore, central processing unit (CPU), also referred to as the processor, is an electronic device that transforms data input into the desired information.

Learn more about computer data here:

https://brainly.com/question/11941925

#SPJ2

An application requires a frontend web tier of multiple servers that communicate with a backend application tier of multiple servers. Which design most closely follows AWS best practices?

Answers

The design most closely follows this Amazon Web Service (AWS) best practices: multitenancy.

What is AWS?

AWS is an acronym for Amazon Web Service and it can be defined as a web-based service that is saddled with the responsibility of providing on-demand cloud computing and application programming interface (API) to individuals, governments, and business firms on a metered basis.

Generally, some key design principles of the Amazon Web Service (AWS) Cloud include the following:

ScalabilityAutomationDisposable resourcesLoose coupling managed services.Multitenancy

A multitenancy model is typically used for providing services to multiple end users through an instance of the application running on a server.

Read more on cloud computing here: https://brainly.com/question/19057393

Which option will likely be used by a traveling salesman?
A A tablet PC or a laptop
B A server or a laptop
C A laptop or a desktop
D A desktop computer or a server

Answers

Answer:

A

Explanation:

With travel, you cant keep a bulky Desktop or Server with you at all times. Its only reasonable to have small, easy to transport, and powerful enough for its necessities. E.g Tablet Or Laptop

what was the first computer ever to co me out

Answers

Answer:

The first mechanical computer, The Babbage Difference Engine, was designed by Charles Babbage in 1822. The ABC was the basis for the modern computer we all use today. The ABC weighed over 700 pounds and used vacuum tubes

Explanation:

The first mechanical computer, The Babbage Difference Engine, was designed by Charles Babbage in 1822. The ABC was the basis for the modern computer we all use today. The ABC weighed over 700 pounds and used vacuum tubes

What kind of error is there in this line of code: pritn(“Hello, world!”)?
1.logic error

2.punctuation error

3.algorithm error

4.syntax error

Answers

Answer:

3.algorithm error

Answer:

1. logic error

Explanation:

who is the founder of computer??​

Answers

Answer:

there is no organization or buisness labeled " computer"

Explanation:

So nobody founded "computer"

Charles Babbage did invent computers though.

Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. Considered the "father of the computer", he conceptualized and invented the first mechanical computer in the early 19th century.

Brainlist pls

Firefox won't play my downloaded videos, how do I fix that

Answers

Answer:

Try cleaning up cached images and files or manage Fire-fox. Try updating if needed, otherwise, fix any settings you do not like.

Hope this helps!

1. What do you think are the importance of 5S Principles?

2. Cite a situation in which you can apply the knowledge of understanding 5S Principles?​

Answers

1) The importance of the 5s Principles is to improve productivity in industries, hospitals, government and education. Additionally it helps to eliminate wasted time, space and inventory.

(2) I can use the knowledge acquired from the 5s Principles to make my everyday life easier.

Please have a great day <3

I need help with my assignment, basically I need python to write " H E L L O " with the Ls being 50% larger! PLEASE HELP!!!

Answers

Answer/Explanation:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# printing letter H

draw.left(90)

draw.forward(70)

draw.penup()

draw.goto(0, 35)

draw.pendown()

draw.right(90)

draw.forward(30)

draw.penup()

draw.goto(30, 70)

draw.pendown()

draw.right(90)

draw.forward(70)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# printing letter E

draw.penup()

draw.goto(40, 0)

draw.pendown()

draw.right(180)

draw.forward(70)

draw.right(90)

draw.forward(35)

draw.penup()

draw.goto(40, 35)

draw.pendown()

draw.forward(35)

draw.penup()

draw.goto(40, 0)

draw.pendown()

draw.forward(35)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# printing letter L

draw.penup()

draw.goto(90, 70)

draw.pendown()

draw.right(90)

draw.forward(70)

draw.left(90)

draw.forward(35)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# printing letter L

draw.penup()

draw.goto(135, 70)

draw.pendown()

draw.right(90)

draw.forward(70)

draw.left(90)

draw.forward(35)

# printing letter O

draw.penup()

draw.goto(210, 70)

draw.pendown()

for i in range(25):

draw.right(15)

draw.forward(10)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~Learn with Lenvy~

Write a pseudocode for the logic of a program that accepts five numbers from a user and displays one of the following messages:- The largest number is xx. The smallest number is xx

Answers

The pseudocode of a program is used as a prototype of the program

How to write the pseudocode

The pseudocode of the program is as follows:

Counter = 1Input numMin = numMax = num // Input remaining 4 numbers do { Counter = Counter + 1Input numIf (num < Min) { Min = num } if (num > Max)  {Max = num}  } while (counter < 5) Print Min, Max End

Read more about pseudocode at:

https://brainly.com/question/24735155

Carolyn owns a small business that designs air conditioning units for large buildings. A construction company that's building an office complex is looking for someone to design air conditioning units for the project. Carolyn should _____. send a memo submit a business report called a business proposal create a spreadsheet leave a long voicemail trying to convince the owner to give her a chance

Answers

Answer:

submit a business report called a business proposal

Explanation:

In this scenario, Carolyn should submit a business report called a business proposal. This proposal should detail all of the services that Carolyn's company provides, estimated pricing per square footage, materials used, estimated time frames, and contact information. The receiving company will see this proposal and if it meets their needs will contact Carolyn. From there, Carolyn can set up a meeting in order to discuss the finer details of the project.

Answer:

buisness proposal

Explanation:

Suggest why people might not want the government to carry out Internet surveillance?​

Answers

Answer:

People dont want there day to day life being suerviellianed. It gives most people a sense of unease and uncomfort.

Explanation:

It would be at least two decades before some of
the technologies he demonstrated saw
widespread use, but all of them are used by
people today. Here is a list of some of Engelbart's
technologies. Which ones do you use today?

Answers

Answer: A,B,C,D,E

All of the above

Explanation:

Tabs you see at the bottom of your workbook file, labeled Sheet 1, Sheet 2, and so on. You can rename the tabs.
They represent worksheets within the workbook.
File
Function
Heading
Sheet Tab

Answers

I believe the answer is Sheet Tab

I hope that helped!

What might cause mountains to get taller over time?

Answers

Answer:

Mountains grow when movements of the Earth's crust push the rocks up. Glaciers atop mountains in temperate latitudes flow downhill, scouring away the surface of the mountain. Over millennia, such erosion can reduce the height and width of a mountain range by miles.

Explanation:

plz help
What are the similarities between taking notes for audio and online materials? Check all that apply.

It is important to identify the keywords and concepts.
The Cornell method can be useful when students need detailed notes.
It is necessary to print the material from the online source and the audio recording.
The main idea of the material must always be identified.
It is essential to use the SQRW system.

Answers

Answer:

a b d

Explanation:

i just answered the question got it right edge 2020

Answer:

A. It is important to identify the keywords and concepts.

B. The Cornell method can be useful when students need detailed notes.

D. The main idea of the material must always be identified.

Explanation:

I answered the question on edge too! and got it right thanks to the person above me :)

What color model should Joe use if he will be using an offset printing press?

A. RGB

B. hexadecimal

C. CMYK

D. index

Answers

Answer:

CMYK

Explanation:

Monitors typically use RGB color (additive model — adding to make white), but offset printing uses CMYK pigments (subtractive color — subtracting from the existing white). Printed images have less visual range, saturation, and contrast than digital images, so in print, colors will usually appear darker and less vibrant.

Answer:

The correct answer is letter C. CMYK

Explanation:


Which rule should be on the top line when creating conditional formatting?
the most important rule that marks it as lowest precedence
the most important rule that marks it as highest precedence
O the least important rule that marks it as highest precedence
the least important rule that marks it'as lowest precedence

Answers

Answer:

B

Explanation:

Final answer

Answer:

B) the most important rule that marks it as highest precedence

Explanation:

"Should be on the top line because it is the most important." -Edge narrator

Question 1
1 pts
(02.01 MC)
Jackie used the software development life cycle to create a new game. Jackie ran her code to make sure it
worked and had no errors.
Which stage of the software development life cycle is Jackie currently in?
o Coding
O Maintenance
O Planning & Analysis
Testing

Answers

Answer:

she is running a maintenance to make sure everything works

how did i get negative points???

Answers

Answer:

“By spending points but not earning them”

Explanation:

Cloud computing allows you to store your files and access applications in a(n) ______ account. Select your answer, then click Done.

Answers

Cloud computing avails end users an ability to store their files and access software applications in an online account.

What is cloud computing?

Cloud computing can be defined as a type of computing that typically requires the use of shared computing resources over the Internet rather than local servers and hard drives.

Some examples of shared computing resources are:

Cloud storageServersComputer powerSoftware application

This ultimately implies that, cloud computing can be used by end users to store and access various files, documents and software applications, provided that they have an online account with the cloud service provider.

Read more on cloud computing here: https://brainly.com/question/19057393

How does the DNS solve the problem of translating domain names like example.com into IP addresses?

How does DNS help the Internet scale?

Answers

Answer:

DNS translates domain names and hostnames into IP addresses through a basic lookup function.  When a user requests a domain name (as in the case of a browser lookup) the computer queries the local DNS server to find the matching IP address.  If the local DNS server does not contain the information in it's local database, it contacts the next higher DNS system or the root domain DNS servers (i.e. microsoft.com - if the local system does not know it, it will query the well-known DNS server for the .com domain - which will know where to get the information).  

DNS helps the users by not requiring them to remember the IP address of every system them want to connect with.  microsoft.com is much easier to remember than 40.82.167.220.  

DNS also helps the internet scale through the use of load balancing.  Multiple systems can comprise a single web site with the web pages stored on many different machines with multiple IP addresses.  When a user requests the microsoft.com website IP, they are given the primary IP of the load balancer sitting in front of the multiple computers.  The load balancer will then distribute the traffic to any of the systems that are hosting the web page that are not busy.  To the end user it look like they are connecting to a single machine - when in fact they are connecting to one of potentially hundreds of web servers with the same content.  As traffic grows on the internet more servers are necessary to handle the additional traffic.  DNS helps ensure the end user will connect to the proper web server regardless of the number of web server copies spun up in response to the additional traffic.  This allows the capacity to scale as necessary without interruption to the web site.  

Explanation:

DNS translates domain names into IP addresses so that the browsers can be able to load internet.

Through a lookup function, DNS solve the problem of translating domain names like example.com into IP addresses. It should be noted that when a user requests a domain name, the local DNS server will then find the matching IP address.

If the information isn't contained in the local database, then the information will be requested from the next higher DNS system. Through the Domain Name System (DNS), the human readable domain are translated to machine readable IP addresses.

Lastly, Domain Name System also helps in scaling the internet through the use of load balancing. The load balancer helps in the distribution of the traffic to the system hosting the web page.

Read more on:

https://brainly.com/question/23944954

Can someone please help me with this tynker lesson! Plz help me!

Answers

Answer:

Explanation:

no i cant its to hard.

Other Questions
please help me asap 10. The speed of a transverse wave is 15 m/s. The frequency of the wave is 2.5 Hz.What is the wavelength? * How many lateral faces does a triangular pyramid have? onetwothreefour 2. Hinduism is based on four major principles: injure no life, tell thetruth, do not steal, and own no property.A. True or b.false if false type the correct term PLEASE HELP ASAP! WILL MARK BRAINLIEST How many types of charges are gained by rubbing objects?(a) 2(b) 1(c) 3(d) 4 Kane Manufacturing has a division that produces two models of fireplace grates, x units of model A and y units of model B. To produce each model A grate requires 3 lb of cast iron and 6 min of labor. To produce each model B grate requires 4 lb of cast iron and 3 min of labor. The profit for each model A grate is $4.00, and the profit for each model B grate is $4.00. Also, 1000 lb of cast iron and 20 labor-hours are available for the production of fireplace grates per day. Because of a backlog of orders for model A grates, Kane's manager had decided to produce at least 150 of these grates a day. Operating under this additional constraint, how many grates of each model should Kane produce to maximize profit $641.29 is what percent of $986,60? I need this ASAP What are the coordinates of your new IMAGE ABC? A=____B=____C=____ Aquifers are _______. A. Located below the water table b. Important sources of freshwater c. Located in the saturated zone d. All of the above Please select the best answer from the choices provided A B C D. Bridget was thinking of a number. Bridget halves it and gets an answer of 31.3. What was the original number? Which of these are functions of the liver? (Select all that apply.)secretes hydrochloric acid into the stomach to break down foodfilters poisons from the bloodsecretes bile for fat break down into the gall bladderstores vitamins, minerals, fats, and ingredients for making glucose Find the value of x? Which question investigates a characteristic shared by electromagnetic and mechanical waves?AHow much energy can the waves carry?BWhat are the speeds of the waves in different media?Which medium do both kinds of waves utilize to travel?DIn what direction do the particles in the medium vibrate when the waves travel? The radii of two similar cones are 27:125. What is the ratio of their areas? List three world events inspired by the declaration ? Which graph represents the function f(x) = |x| 2? Explain why days are warm and nights are cold during high air pressure solve for brainliest :) What does to kill two birds with one stone mean?a. to take the easy way outC.to accomplish two tasks with one course ofactionnone of theseb.to tackle two things one after anotherd.