Questions 6 - 9 Refer to the following code: public class WhatsIt { private int[] values; private double average; public WhatsIt () { values = new int[10]; findAvg(); } public WhatsIt (int[] n) { values = n; findAvg(); } public void findAvg () { double sum = 0; for (int i = 0; i < values.length; i++) { sum += values[i]; } average = 1.0 * sum / values.length; } public String toString() { return "Average: " + average + " Length: " + values.length; } } What does the line findAvg(); in the constructor do? Creates a reference to the average variable. Calls the method findAvg() so the variable average is updated correctly. Calls the constructor findAvg; so the object can be created in memory. This call should be removed. Checks to see if the average variable has been initialized

Answers

Answer 1

Answer:

class WhatsIt

{

private static int [] values;

private double average;

public Double Average=average;

public WhatsIt () {values = new int [10]; findAvg(); }

public WhatsIt (int [] n) {values = n; findAvg(); }

public static void findAvg ()

{double sum = 0;

for (int i = 0; i < values.length; i++)

{sum += values[i]; }

average = 1.0 * sum / values.length;

System.out.println(Average);

System.out.println(average);

}

public static String ToString()

{

   System.out.println(average); System.out.println(values.length);

   return "Average: " + average + " Length: " + values.length;

}

public static void main(String[] args)  

{

    //WhatsIt();

    //ToString();

    findAvg();

}

}

The findAvg() calculates the average.

The reference to average is defined as below:

public double Average=average;

And when we call findAvg average is initialized, and Average is also initialized, which we can check through println statement.

Explanation:

Please check the answer section.


Related Questions

Your credit card debit to limit ratio has a huge impact on your FICO score (30%). It should always be kept below 15%. If your card has a limit of $3,000 and your credit card debit has reached it, what payment will you need too apply to your balance to pay it down to 15%?

Answers

Answer:

The payment that you will need to apply to your balance to pay it down to 15% is $2,550.

Explanation:

To determine the payment that you will need to apply to your balance to pay it down to 15%, the first step is to calculate the credit card balance in which your debit to limit ratio is 15% using:

Debit to limit ratio= credit card balance / total credit card limit

You have to isolate the credit card balance:

Credit card balance= Debit to limit ratio*total credit card limit

Credit card balance= 15%*$3,000

Credit card balance= $450

Now that you have the credit card balance in which your debit to limit ratio is 15%, you have to subtract this amount from the credit card limit to find the payment that you will have to make:

$3,000-$450= $2,550

What statement best characterizes the standard structure of creating game design documents?

There is no standard way of creating a game design document.
There are a number of formats for creating game design documents, but one must be chosen.
There is a standard way of creating a game design document, but changes can be made.
There is a strict standard way for creating game design documents.

Answers

Final answer:

While there's no strict standard for creating game design documents, it's vital to have a structured design process to organize decision-making and cover all important aspects.

Explanation:

The structure for creating game design documents (GDD) can vary widely, as there is no single, strict standard for their creation. While there are several formats and templates that can be used as a starting point, the specific structure of a GDD often reflects the unique requirements of the game being developed and the preferences of the design team. It is essential, though, that a GDD includes a systematic and structured design process, which can help organize decision-making, ensure that all important aspects are considered, and provide documentation for the development process. Tailoring the GDD to the specific needs of the project is crucial, as this allows for flexibility in making necessary adjustments or additions throughout the game development journey.

642
+277
What does 642+277

Answers

answer:
642+277= 919

Please select the word from the list that best fits the definition

Debate

A. Analyze
B. Evaluate
C. Question
D. Reflect

Answers

Answer:

Debate means

Explanation:

Question, usually in debating people question, your judgement.

So, C.

Answer:

it's c - question

Explanation:

what are three common reasons that might make you revise the focus of your research

Answers

the commons reason make you focus on the research

Financial institutions are monitored through which of the following?
A. Federal Reserve System
B. National Banking Union Administration
C. Federal Deposit Insurance Corporation
D National Financial Institution Agency

Answers

Answer:

federal reserve system

Financial institutions are monitored through Federal Deposit Insurance Corporation.

Option C is the correct answer.

We have,

The Federal Deposit Insurance Corporation (FDIC) is responsible for monitoring and regulating financial institutions in the United States.

It is an independent agency of the federal government that aims to maintain stability and public confidence in the banking system.

The FDIC oversees banks and savings associations, ensures their compliance with relevant laws and regulations, and provides deposit insurance to protect depositors' funds.

The FDIC conducts regular examinations of financial institutions to assess their financial health, risk management practices, and adherence to consumer protection laws.

These examinations evaluate the institution's capital adequacy, asset quality, management practices, earnings, and liquidity.

Thus,

Financial institutions are monitored through Federal Deposit Insurance Corporation.

Learn more about financial institutions here:

https://brainly.com/question/29641948

#SPJ6

Read the scenario below and then answer the
question to the right.

The manager of a small engineering company is
setting up a spreadsheet to help track cash flow
for each month. The spreadsheet will track
incoming payments from clients. It will also track
outgoing payments for rent utilities employee
salaries, and insurance.

What is the best way to set up the spreadsheet?

A. List each expense in a row. List each income
source in a column.

B. List each expense and income source in a
separate column List each month in a row.

C. List each month in a column. List each
expense in a row.

D. List each expense in a column. List each
month in a row

Answers

Answer:

B. List each expense and income source in a separate column List each month in a row.

Explanation:

The manager is making the spreadsheet for helping track the cash flow. The spreadsheet will be keeping track of the outgoing and incoming payments from the clients. And it is also going to track the outgoing payments like rent and the whole cashflow. And for that, the Manager should mention the expense and the income source in a separate column and list all the months in a row. And hence, the B. is the correct option.

Answer:

B

Explanation:

The best way to set up the spreadsheet is to list each expense and income source in a separate column. List each month in a row.

In the code snippet, what is the “win” part called in programming?
if (playerGreen > 444) {
setScreen ("win");
}
A. Function
B. Parameter
C. Variable
D. onBoardEvent

Answers

I think the answer is B: parameter

When pasting text and tables,which of these paste options is generally available

Answers

Answer:

For text and table in common: Keep Text Only

And hence, B. Paste as a text item is the correct option.

The above is the common option available in case we are pasting the Text or you are pasting the Table. If you copy a text and try to paste it, and when you will try to paste the table, then you will find this option in common, and hence it is the option that is generally available. Hence, B is the correct option.

Explanation:

Please check the answer section.

COULD U ANSWER THIS ???

Which is an example of a closed loop that best models a circuit?
A.a crowd dispersing in all directions
B.lightning striking a tree
C.students jogging around an oval track
D.a cross-country run from one point to another

Answers

Answer:

B.lightning striking a tree

Explanation:

The crowd dispersing in all directions is not a closed-loop by any means, and students jogging around an oval track as well is not a closed-loop, and also not a cross country run from one point to another. However, the lightning striking a tree is a closed loop that best models a circuit. And as lightning strikes the tree, like a closed circuit, tree catches the fire, or in circuitry words, the current is generated, and tree catches the fire due to it, just like bulb starts glowing.

Sharing a workbook enables multiple users to access the workbook. What are the benefits of using a shared workbook?

Answers

Shared workbooks enable multiple users to access and edit a document simultaneously, track changes with colour-coded edits, and view revision history. They improve efficiency, promote transparency, and foster collaborative learning.

The benefits of using a shared workbook in applications like Microsoft Excel or Goo-gle Docs are significant for collaborative work. Shared workbooks allow multiple users to access the workbook simultaneously, contributing to a more efficient team workflow. This feature enhances productivity as team members can work on different parts of the workbook at the same time, leading to quicker completion of tasks.

Another key advantage is the ability to track changes made by different users. This is often highlighted and colour-coded to indicate who made specific edits. Additionally, a revision history is maintained, making it easy to review past versions and understand the progression of the document. This sharing is invaluable for ensuring transparency and accountability within a team.

Lastly, sharing facilitates better communication among team members and can lead to innovative solutions by combining diverse contributions. The process allows for pooling of expertise and knowledge which can result in a more thorough and accurate final product. Working together in a shared workbook can also increase learning opportunities through peer collaboration.

What was Eisenhower's "covert action” policy?​

Answers

Answer: "covert action policy" include activities by U.S Government to influence political, economic or military conditions in other communist countries.

Explanation:

Eisenhower was the General of the American army and he also served as the 34th president of U.S. Eisenhower used "covert action" policy. This policy was used against the communist government of other countries.

There were many secret activities of this policy. This policy was used for national interests. It covered those activities of the U.S government which were undertaken to affect the economic, political or military conditions in other countries. The main intention of this policy was not to reveal the role of the U.S government in other countries to the public.

The technology Herman Hollerith created in the 1880s began the modern-day data processing function in computers.
What was the name of this technology?
transistor
punched-card machine
microprocessor
resistor

Answers

Answer:

Punch Card Machine

Explanation:

The punch cards or the punched cards are also termed as the Hollerith cards or we also know them as the IBM cards. And they happen to be the paper cards where holes can be punched with the help of the hands or with the help of the machine for representing the computer instructions or data. And these were used on quite a large scale for inputting the data when we talk of the early computers. And this technology was developed by the Herman Hollerith.

Please help I really need it

Answers

The correct answer is the F8 ke

What client specifications relate to typography, logos, and color schemes specific to the client's organization?

___________ guidelines are a comprehensive set of references related to typography, color schemes, logo design, and page design specific to each organization and its culture.

Answers

Answer:

Branding

Explanation:

Branding guidelines are a comprehensive set of specifications related to typography, color schemes, logo placement, page layout, and others aspects of design unique to an organization and its culture.

Identify the type of conflict in each situation.
Mark sees his close friend Tom
cheat during a class test and
wonders whether he should
keep the information to
himself or confront Tom about it
Kyle goes on a ski trip alone, only
to be caught in a heavy snowstorm
and become stranded in the
middle of nowhere.
Sarah wants to give up studying
law and follow her dreams of
becoming a musician, but her
family disapproves of this idea.
Kate and Jade have always competed
to be the most popular student
in school. With prom coming up, the
problems between the two increase.
Lizzy finds a wonderful outfit for her
friend's birthday party, but she
realizes that it costs much more
than her budget. She's tom
between buying it and looking
for something else.
Internal Conflict
External Conflict

Answers

first off, good for Tom, he found Brainly. And now the answers (in order)

1. internal

2. internal

3. external

4. external

5. internal

1. Internal conflict 2.  Internal conflict 3. External conflict 4. External conflict 5.  Internal conflict

What is internal and external conflict?

Internal conflict is when a person struggles with their own opposing desires or beliefs.

External conflict sets an individual against something or someone which is not in their control.

1. Mark sees his close friend cheating. The situation must be confronted or kept secret is his inner struggle.

Thus. its an internal conflict.

2. Kyle goes on a ski trip alone and stucks in heavy storm. Now she is afraid of what she will tell her loved ones and how she will face if she get caught.

Thus, its an internal conflict.

3. Sarah wants to pursue her dream of becoming musician. She has to make everyone agree to favor her but she is getting opposed. This struggle is with her parents.

Thus,  its an external conflict.

4. Kate and Jade are competitors. The competition is increasing between the two.

Thus,  its an external conflict.

5. Lizzy denies to buy her wonderful outfit due to high cost. She wants it but can't afford.

Thus,  its an internal conflict.

Learn more about internal and external conflict.

https://brainly.com/question/27377458

#SPJ2

What is the purpose of an attribute in HTML?

A. It is a property that changes the default behavior of an element.
B. It is an empty element.
C. It consists of a start tag and an end tag.
D. It is a tag without angular brackets.

Answers

A httml is the bace to all coding

An attribute in HTML changes an element's default behavior or appearance and provides additional information to produce functional web pages.

The purpose of an attribute in HTML is to provide additional information about an element, acting as a modifier that changes the element's default behavior, appearance, or characteristics in some way. For example, the src attribute of an <img> tag defines the URL of the image to be displayed, and the alt attribute provides alternative text in case the image cannot be displayed. Attributes are an essential part of HTML, providing richer, more functional web pages and allowing for customization and interactivity.

Ansel Adams education and special training

Answers

Answer:

Ansel Adams was dismissed sadly from various schools where he studied because of his bad behavior. And hence he got special training that was being given to him by various private tutors as well as his family members since he was 12 years of age. And in 1916, while on a Yosemite National Park trip, he started working on Photography as well, and he will always be remembered for the work he did in Photography.

Explanation:

Please check the answer section.

Which structure does a web page normally use to define an area of focus?

Many web pages use a ______

structure to define an area of focus.

Answers

Answer:

meta Tag

Explanation:

The meta charset, meta name="description" content" ", meta name="keywords" content=" ", meta name="author" content=" " and meta name="viewport" defines the area of focus in a web page.

And hence, it is the meta tag that defines as well as describes the area of focus on a web page. The description describes keywords that add the keywords, and the author adds the author's name. The viewport helps in making the webpage responsive.

Answer:

Grid

Explanation:

a grid structure defines areas of focus.

As it relates to the internet the term “host” means

Answers

Answer:

The host, which we also know as the network host, happens to be a computer or any other device which communicates with various other devices that can communicate with various other hosts on a network. And a node is a much broader term that covers everything which is connected to a network. And the host requires an IP address.

Explanation:

Please check the answer section.

Question 2(Multiple Choice Worth 5 points)
(02.01 LC)

Which will display output from a tablet?

Memory
Screen
Power button
Power cord

Answers

Answer:

Screen

Explanation:

The memory is used to save the data, and the power cord is used to connect to the power supply. And the Power button is used to power on the tablet. And the display output from a tablet is shown on the screen. Hence, the correct option here is the screen. And It is the screen that displays the output.

Answer:

Screen

Explanation:

I took the test :)

Match the description to its correct game design principle.

1. clarity

2. consistency

3. engagement

4. simplicity

5. utility

A. use features that retain the interest of 
the intended player audience in the game



B. know the kind of fun the game must 
create in the intended player audience



C. add minimum features that 
meet the goal of the game



D. use one type of approach 
in the game



E. provide flexibility for 
future modifications​

Answers

Answer:

The answers are explained below.

Explanation:

Clarity refers to know the kind of fun the game must create in the intended player audience.

Consistency is explained in letter D: use one type of approach in the game.

Engagement matches letter A: use features that retain the interest of the intended player audience in the game.

Simplicity is to add minimum features that meet the goal of the game.

Utility refers to provide flexibility for future modifications.

the advantage of purchasing a dual Ethernet 10/100 Mbps NIC for your PC is that your PC can now?​

Answers

A dual Ethernet 10/100 Mbps NIC for your PC is that your PC is now compatible with both LAN speeds.

Explanation:

A 10/100 Ethernet port transmits 10 and 100 Mbps, while the maximum speed of a 10/100/1000 "Gigabit" port is 1 Gbps. Ethernet uses the highest common speed between sending and receiving devices. Ethernets above one gigabit are separate and do not mix with 10/100/1000 components.10GBase-T networks can span up to 100 meters. Enterprises use 10 Gigabit Ethernet switches to provide Layer 2 networking for very high-speed network applications – mostly in the data center or server room. 10/100 Mbps NIC is a good choice for flexibilty. Also, plan to use a PCI bus slot.The NIC should have both half duplex as well as full duplex capacity.By modifying the NIC properties through the operating system your PC will also work faster compared to before.

In a non-formatted/standard template, if the number 25 is converted to text format, the
alignment becomes
_. (right, left, center)

Answers

The alignment of the text will be "left" by default

Explanation:

In Excel or spreadsheet, if any number is entered, it will automatically be aligned to right because right alignment is preferable for the numbers.In case of any alignment is mentioned in the cell in prior to entering text or if the type of data is changed after or before entering the text, then the text is aligned accordingly.According to the given scenario, a number "25" is entered and it is converted to text. So a text format will preserve the alignment as entered. By default it will be "left" aligned.

1) Moore's law refers to:

Answers

Answer:

Moore's law refers to: the pace at Central Processing Units (CPU) improves this rule.

Explanation:

It also predicts that CPU will double about every 2 years dynamic, random access.

The technology Herman Hollerith created in the 1880s began the modern-day data processing function in computers.
The tech
What was the name of this
transistor
punched-card machine
microprocessor
resistor

Answers

Answer:

punched-card machine

Explanation:

We know this as the punched-card machine, and it is also known as the Hollerith cards or the IBM cards. At that time, and through this technology, we used to punch a hole with hand or with the machine, and each hole used to represent the data and the instruction. And these were widely used for inputting the data in the early computers.

Answer:

D) Punched-card  Machine

Edge 2021

What are the advantages of using a page description diagram?

A. They are rigid in construction.

B. Only an experienced designer can create a good PDD.

C. They are simple to grasp.

D. The contents are vast.

Answers

The answer to your question is C they are simple to grasp
Final answer:

A page description diagram (PDD) is a visual representation of the structure and content of a web page. It is simple to grasp, aids in communication, and helps with planning and organization.

Explanation:

A page description diagram (PDD) is a visual representation of the structure and content of a web page. It provides a high-level overview of how the different elements on a page are organized and related to each other. There are several advantages of using a PDD:

They are simple to grasp: PDDs use simple shapes and labels to represent different elements, making it easy for designers and developers to understand the page layout without getting overwhelmed by details.They help with communication: PDDs serve as a communication tool between designers, developers, and other stakeholders. They provide a common visual language to discuss page structure and ensure everyone is on the same page.They aid in planning and organization: PDDs help in planning and organizing the content of a web page. Designers can use them to identify the most important elements, prioritize content, and create a logical flow for users.

Will web browser cannot open any web page what should will do first

Answers

Answer:

The solution to this question is given below in the explanation section.

Explanation:

If a web page is not open in a web browser, the first step that will be performing is to check if the internet is connected or not. Because we need to connect to the internet to access any web page. For this, you need to see the wifi or LAN icon and see the status of the connection. If this step is shown the internet is connected. Then diagnose the problem in the browser click on "Running Windows Network Diagnostics".

The diagnosis will get started in your browser, the solution will be suggested by this step if the problem exist. Mostly these problems are internet disconnectivity, router shutdown, browser issues, and internet connection and DNS issues.


All of the following are stages in the SDLC except _____.

JAD
Design
Development
Analysis

Answers

Final answer:

JAD is not a stage in the SDLC; it is a methodology used to involve clients during the design phase. The true stages of the SDLC include Analysis, Design, and Development, with iterative testing and refining during the design stage being crucial for project success.

Explanation:

The System Development Life Cycle (SDLC) consists of several stages that are essential for developing a successful information system. However, the term JAD (Joint Application Development) does not refer to a stage in the SDLC. Instead, JAD is a methodology aimed at increasing the efficiency of the design phase by involving the client in the analysis and design of the system.

The core stages of the SDLC include Analysis, Design, and Development. During the design stage, the development team may go through rounds of testing and refining a prototype to achieve the best possible design, which aligns with the project's criteria and constraints. This iterative design process plays a critical role in the overall success of the development project.

A self improvement plan should begin with planning how you will accomplish your goal.

Answers

Answer:

True

Explanation: The first step is to make a goal. The second step is to plan how you will accomplish you goal. The third and final step is to accomplish your goal.

Answer:

Answer:

True

Explanation: The first step is to make a goal. The second step is to plan how you will accomplish you goal. The third and final step is to accomplish your goal.

Explanation:

Other Questions
Notebooks cost $1.20 each this weekend they will be on sale for $.80 what percentage is the sale using the soubility curve what is the solubilityof nh4cl in 10 mL of water at a temperature of 60 degrees Celsius Explain why the function represented by the equation y=ax2+bx+c is quadratic only when a0. ____________is a sense of normlessness. Societies experience it as a result of a breakdown in the social cohesion. Individuals experience it when they lack guidance and structure for appropriate social behaviors.1. Anomie2. Labeling3. Strain4. Differential Association Which is NOT a role of political parties?Congress: Select the best answer from the choices provided.A. Educating the public about important issuesB. Acting as an institutional watchdogC. Facilitating compromise and coordination in governmentD. Drafting bills for Congressional consideration The effectiveness of an advertisement is based on ________.Sales manuals, training programs, and supportive materials are all examples of ________ promotions. Comparing how many dollars it takes you to run your car each year to annual earnings on a job insteadof keeping track of costs in terms of gallons of gasoline and quarts of oil represents the use of money as:_______. a. means of payment.b. unit of account.c. store of purchasing power.d. form of plastic money. According to Carter, the elements of police work that can lead to drug use include all of the following except: a. time spent in traffic patrol duties. b. relative freedom from supervision. c. exposure to a criminal element. d. uncontrolled availability of contraband. How does symbolizing allow an author an idea indirectly Carson went to pick apples at an orchard.he gave one-third of his apples to his friend Nathan.then he gave one-half of what he had to his friend Nikki.on his way home he dropped one-fourth if what he had left,so that he only had 9 for him and his family.how many apples did Carson pick originally? While some have suggested that emotional intelligence is a concept that is distinct from other measures of cognitive skill, others have posited that emotional intelligence is nothing new, and is simply a measure of certain personality traits that have been studied for decades. This simplistic way of conceptualizing emotional intelligence is consistent with the critical thinking principle of __________.Occam's Razor what year is shown on this map? how does this relate to the history of Islam? Pastoria Enterprises has scheduled raw material purchases of $100,000 in January, $130,000 in February, and $150,000 in March. The company pays for 75% of its purchases in the month of purchase and 25% the month after the purchase. Calculate the expected cash disbursements for the month of February.a. $135,000 b. $122,500 c. $107,500 d. $130,000 1 pointThe volume of a container varies jointly with the square of its radius, r, and its height, h. Thecontainer has a height of 10 centimeters, and radius of 6 centimeters, and a volume of 377 cubiccentimeters. What is the volume of a container with a radius of 4 centimeters and a height of 4centimeters?Your answer When a train first starts going down the railroad, it is very difficult for it to get going. When it comes to a stop, it has a hard time slowing down. Why is this?A: balanced forcesB: unbalanced forcesC: inertia Solvents at disposal: Hexanes, Toluene, dichloromethane, diethyl, ethyl acetate, methanol, water, acetic acid From the solvents, choose a single solvent that would give the best chance of separating benzophenone, diphenyl methanol and biphenyl using TLC on silica gel. Explain reasoning behind the choice. (phenyl groups are fairly non-polar) Thanks if u help and brainly Can someone help me on this?? I'm stuck!Find the total area for the regular pyramid.T. A. = A truck moving at 35.0mph collides head on with a car traveling in the opposite direction. The mass of the car is 550 kg, the mass of the truck is 2200 kg. During thecollision both vehicles come to a stop in 0.150s as the front end of both vehiclescrumples. What was the acceleration of the car? Assume that during the collision the acceleration of each vehicle is constant.Also, assume that frictional force are small compared to the forces compared to the contact forces between the vehicles during the colision. A person filled with grandiose self-esteem, displaying rapid speech and impulsive behaviors, and showing an elevated, expansive, or irritable mood for at least one week is exhibiting symptoms of Steam Workshop Downloader