Define a method calcPyramidVolume with double data type parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volume of a pyramid with a rectangular base. calcPyramidVolume() calls the given calcBaseArea() method in the calculation. Relevant geometry equations: Volume

Answers

Answer 1

Answer:

import java.io.*;

public class Main {

   public static void main(String[] args) throws IOException {

       double baseLength = 0, baseWidth = 0, pyramidHeight = 0;

       Object[] volume;

       volume = calcPyramidVolume(baseLength, baseWidth, pyramidHeight);

   }

   public static Object[] calcPyramidVolume(double baseLength, double baseWidth, double pyramidHeight) {

       double area = calcBaseArea(baseLength, baseWidth);

       double volume = baseLength * baseWidth * pyramidHeight;

       return new Object[]{volume, area};

   }

   public static double calcBaseArea(double length, double width) {

       return length * width;

   }

}

Explanation:

The problem is flawed because it is completely inefficient for one to create two separate methods to calculate the volume and the area when they can be done at once.

The second problem is that it was never specified whether to return something from the calcBaseArea method.

I assumed it required it, so it is not advisable to initiate the method as a double, but rather create it as an Object so that it can return two values: the volume and the area.


Related Questions

which is used for making documentation file from microsoft office package​

Answers

Answer:

the word is use for making docs

Answer:

Explanation:

To create a document, open Word, select a blank document or template, and start typing. Discover professionally designed templates for Microsoft Word.

ctivity 2: irections: Convert the given value to unit asked. 1. 1 tb 2. 500 mb 3. 200 kb 4. 1,000,000 bytes 5. 500 gb mb gb byte gb mb

help please​

Answers

Answer:elab

Explanation:

1. The jargon for navigating on the Internet is called: A. surfing B. selecting C. clicking D. analyzing​

Answers

Answer:

A. surfing

Explanation:

Browsing the internet is known as surfing the internet.

I just need question 2 answered. Someone please help I’m on a test!

Answers

Answer:

Principal photography

Explanation:



Where do you place the logical test argument in an IF function formula?
O before the IF function
O the first argument listed after IF
the second argument listed after IF
O the third argument listed after IF
Intro
Don

Answers

Answer:

the first argument listed after IF

yw

Define a class named Bits that holds a single integer variable. You will use this integer simply as a container of bits. The number of bits you can support depends on the type of integer you use. We will use an unsigned long long, which on most platforms occupies 64 bits.

Answers

In two or more integer plat forms

Give short introduction of profession and make a list of its types. ​

Answers

are you asking for a list of professional jobs or?…..

what are the components of computer system??

Answers

Answer:

1. A motherboard.

2. A Central Processing Unit (CPU)

3. A Graphics Processing Unit (GPU), also known as a video card.

4. Random Access Memory (RAM), also known as volatile memory.

5. Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

(Please give me brainliest)

SOME PLEASEE HELP!!
(has to be 4 paragraphs)

Answers

Answer:

Ahhh i wanna help so bad hold on

Explanation:

CPU is also called RAM.
True or false.​

Answers

Answer:

False

Explanation:

RAM works in conjunction with the central processing unit (CPU). If RAM is the temporary memory, you can think of the CPU as the brain of the computer. The CPU chip retrieves data from the RAM

FALSE ...

BECAUSE RAM IS A MEMORY AND CPU IS A UNIT OF COMPUTER THAT'S WHY IT IS FALSE

three positive impacts of computer technology in our society.​

Answers

ANSWER :

• It facilities business process and other activities. It makes the work simple and less time consuming.

• We can store so many information on computer which makes easy to handle the information for business applications.

• We can perform multitasking and multiprocessing capabilities of data.

Answer:

We can perform multitasking and multiprocessing capabilities of data. 

We can store documents secretly on computer system.

It gives error free result so that we can use it for research, engineering work and other areas.

what does c++ programming mean?

Answers

Answer:

It's an internal joke to say the language is basically C with some extra stuff (like classes)

the "++" is short for

C += 1 or

C = C + 1 which is a common calculation among programmers so they named it C++ to be a more commercial and attractive name than "C with classes"

Explanation:

List the steps you would take to create folders/directories in different operating system environments.

Answers

In Linux we use the terminal to create files and folders.

To create a folder:

1. Open a terminal

2. Go to a directory where you want to create the folder

3. Use the change directory command to go to the directory.

4. Use the mkdir command to make a folder

To create a file:

1. Open a terminal

2. Go to a directory where you want to create a file.

3. use the touch command followed by the filename.

Example to create a directory:

mkdir foldername

Example to create a file:

touch file.txt

Answer:

Various operating systems have different ways of creating folders or directories. Here are steps to create folders or directories in some of the most common operating systems.

Windows  

You can create a new folder in Windows by following the two different ways stated below.

These are the steps for creating a new folder through using the File menu.

Open the location where you want to create the new folder.

Then, select the File menu and click New.

Finally, select the Folder option.

These are the steps to create a folder using the right-click method.

Open any location where you want to save your new folder.

Right-click on any blank area of the screen.

This opens a menu. Select New from the menu.

Lastly, from the menu that opens after you select New, and click Folder.

MS-DOS

These are the steps to create directories in MS-DOS.

Click the Start menu.

Click All Programs and then select on Accessories.

Then, select Command Prompt.

Navigate to the location you want to save your new folder. For example, if you want to open the C drive, the command will be: C:

To create a new directory, type mkdir followed by the folder name of your choice. For example, if I want a folder named projects, I will enter the command, “mkdir projects”.

To create multiple new directories in the newly created directed directory, you can use the md MS-DOS command. For example, if you want to make sub-directories named project1, project2, and project three, your command will be md project1 project2 project3.

Mac OS X

There are three ways to create a new folder in the MAC OS X

These are the steps for creating a new folder through using the File menu.

Open any location where you want to save your new folder.

Afterwards, select the File menu and click New Folder

These are the steps to create a folder using the right-click method.

Open any location where you want to save your new folder.

Right-click on any blank area of the screen.

This option opens the folder menu. Select New Folder from the menu.

These are the steps to create directories in Terminal.

Open the Utilities folder. Start the Terminal program.

Navigate to the location where you want to save your new folder.

To create a new directory, type mkdir followed by the folder name of your choice. For example, if I want a folder named projects, I will enter the command, “mkdir projects”.

To create multiple new directories in the newly created directed directory, you can use the -p Terminal command. For example, if you want to make sub-directories named project1, project2, and project three, your command will be -p project1/project2/project3.

Linux

There two ways of creating a new folder in Linux.

These are the steps for creating a new folder using the right-click method.

First, open the file manager.

Then, proceed to the location where you want to save your new folder.

Next, right-click on a blank spot.

Finally, select Create New Folder from the drop down menu.

These are the steps for creating a new folder using Terminal.

Open Terminal by using the Ctrl+Alt+T combination of keys.

To create a new directory, type mkdir followed by the folder name of your choice. For example, if I want a folder named projects, I will enter the command, “mkdir projects”.

To create multiple new directories in the newly created directed directory, you can use the -p Terminal command. For example, if you want to make sub-directories named project1, project2, and project three, your command will be -p project1/project2/project3.

Explanation:

for plato

9. Organs are made up of vast numbers of cells that perform various tasks. When cells die within an organ,
homeostasis is interrupted. What will most likely happen so that homeostasis can be maintained?




Answers

Answer:  A new cell grows

Explanation:

You should move around and take a rest for 30 minutes every 5 minutes.

True Or False​

Answers

Answer:

obviously true.........

Which is an example of a demand account

Answers

Answer:  savings account investment account credit account checking account Checking account is an example of a demand account.

What is the purpose of a computer network needs assessment? to evaluate how to move from the current status to the desired goal to determine what steps employees can take to increase company revenue to analyze which workers need more training to improve their performance to compare worker productivity

Answers

Answer:

to evaluate how to move from the current status to the desired goal

A double-ended queue, or deque, is a data structure consisting of a list of items on which the operations are defined.

a. True
b. False

Answers

Answer:

true

Explanation:

What is the relationship between the speed of an object in the amount of energy it has? explain

Answers

Light energy into Chemical energy

In order to get the maximum functionality out of a device that is plugged in, a user should download the specific ___ for that device.

Answers

I think the answer they are looking for is drivers. You need to download specific drivers for the device to function to its max potential
the answer to that question is Drivers

Name:

Sup-R Game Desktop – Model EEXL
Inteel® Core i7
6GB Tri-Channel DDR3
500GB SATA-II (7200 rpm)
16x CD/DVD burner
21.5” HD widescreen monitor
NVIDIA® GeForce
Creative Sound Blaster® X-Fi Titanium
Altec Lansing speakers
Gigabit Ethernet port
3 – year limited warranty
Windows 10


1. Suppose you are reading a computer magazine and you come across the ad pictured above. By looking at the specs, you can see that: (2 Points)

The amount of RAM is ___________.

The microprocessor manufacturer is __________.

The amount of disk storage is _______________.

The amount of Solid State Drive storage is ______________

2. In the table below, list the hardware/peripheral components in the ad and check which function the component performs. (Add additional rows to the table if needed). (5 Points)

Component
Processor
Memory
Storage
Input
Output
Other












































3. In the table below, list 5 functions/features you would look for in purchasing a computer and explain why each is important to you. (3 Points)

Function/Feature
Explanation as to why and size, capacity, etc. you need this feature/function












5. List and describe the factors that affect the performance of a microprocessor. Name two manufacturers of central processing units (CPUs) and some for the different models of processors that they manufacture. (5 points)









6. At the beginning of an update for your smart phone, you notice a warning that says “Make sure your device is connected to a wall outlet and do not turn the device off until the update is complete.” You suspect that the update is going to _______________ the ROM boot loader to fix a security vulnerability. (2 Points)

7. You are working on a group project and you suggest to your team that they use a ______________ storage service where members can access a shared folder. (2 Points)

8. One of the ports on your laptop is rectangular and the inside of it is blue. It is a(n) _________ port. (2 Points)

9. You need an external keyboard for your Android device, and thankfully you can add a wireless one because it has ________________ capability. (2 Points)

10. You volunteer to produce a large quantity of black-and-white leaflets for a charity organization. It is fortunate that you have access to a(n) _____________________ printer with a high duty cycle and low operating costs.

Answers

1 6gb of ram
inteel
500gb
500gb

how do you identify the active file if more than one has been opened simultaneously and are being displayed on the screen​

Answers

Explanation:

On the View tab, in the Window group, click New Window.

On the View tab, in the Window group, click View Side by Side .

In the workbook window, click the worksheets that you want to compare.

To scroll both worksheets at the same time, click Synchronous Scrolling in the Window group on the View tab.

Note This option is available only when View Side by Side is turned on.

Tips

If you resize the workbook windows for optimal viewing, you can click Reset Window Position to return to the original settings.

To restore a workbook window to full size, click Maximize at the upper-right corner of the workbook window.

View two worksheets of different workbooks side by side

Open both of the workbooks that contain the worksheets that you want to compare.

On the View tab, in the Window group, click View Side by Side.

Which of the following factors is most likely to result in low shipping and handling costs? A higher than average hourly pay rate for material handlers A rare but high-in-demand packaging material A promotion for free shipping on orders over a predetermined order total All of the above​

Answers

Answer: A higher than average hourly pay rate for material handlers

Explanation:

Shipping and handling cost describes costs related to the total cost of an ordered item which are included in the fees used to deliver the item to the buyer. Hence, the correct option is C

Shipping and handling cost usually depend on the size of the item, the buyer's location and fragility of the item purchased.

From the options given, handling and shipping fee may be reduced as a result of free promotional shipping on orders.

Handler and drivers who are paid above average will result in increased shipping fee and rare in-demand items won't come cheap either.

Hence, low shipping fee will most likely be as a result of promotion for free shipping on orders over a predetermined order total.

Learn more : https://brainly.com/question/20533392

7. What was the original purpose of the network that would become the internet?
A shopping and commerce
B. social media
C. digitizing books
D. military and academic communication

Answers

Answer:

D, Mulitary and Academic communicationj

Explanation: Just did this

Advantages of communications​

Answers

Answer:

promotes team building

creates better relationship

Answer:

➨It is quick in obtaining feedback once delivered. ➨It provides complete understanding of communication delivered and there is chance to make it more clear in case of doubts in interpretation of words or ideas. ➨It is more reliable method of communication. ➨It is flexible and effective for all.

How many 60 KB jpeg files can be stored on a 2 MB folder in your hard drive?​

Answers

Answer:

2 MB = 2048 kb

2048 / 60 = 34.1

Explanation:

where and when to implement such network.

Answers

i think it is a

and it is b , so haha

Define cloud, and explain the three key terms in your definition. Compare and contrast cloud-based and in-house hosting using the comparison presented in Q6-1 as a guide. In your opinion, explain the three most important factors that make cloud-based hosting preferable to in-house hosting.

Answers

Cloud computing is making hardware, software and data available on demand via a network.

The cloud stands for a network that, with all the computers connected to it, forms a kind of 'cloud of computers', where the end user does not know how many or which computer the software runs on or where those computers stand exactly.

In this way, the user no longer needs to be the owner of the hardware and software used and is therefore not responsible for maintenance. The details of the information technology infrastructure are hidden from view and the user has his own virtual infrastructure, scalable in size and possibilities.

Learn more in https://brainly.com/question/8645052

Freeze panes so the first row containing column headings (Row 5) on the support calls worksheet will remain static when scrolling. Ensure that Rows 1-4 are visible.

Please help me its excel

IF YOU DON'T KNOW THE ANSWER DONT ANSWER JUST LEAVE. NO LINKS OR I WILL CALL THE POLICE.

Answers

Answer:

on Freeze Panes so the first row containing column headings (Row 5) on the SupportCalls worksheet wil remain static when scrolling. Ensure that Rows 1-4 are visible. Convert the data to a table, name the table SupportCalls, and apply the Gold, Table Style Medium 12 Remove duplicate records Add a new column to the table named Duration Create a formula using unqualified structured references to calculate the days required to resolve the incident (Date Resolved - Date Created) Add a total row to display the Average days required to resolve an issue. o ñ Sort the table by Agent Name in alphabetical order, add a second level to sort by Description, and create a custom sort order as follows: Won't power on, Virus, Printing issues, Software Update, Forgotten Password. Add a third level to sort by Duration smallest to largest. (Mac users, to create the custom list, from the Excel menu, click Preferences. In the dialog box, click Custom Lists.) Filter the table to only display closed incidents as indicated in the status column. Use Quick Analysis to apply the default Data Bars conditional formatting (Solid Blue Fill) to the Duration column (range 16:185) Mac users on the Home tab, click Conditional Formatting, point to Data Bars, and under Solid Fill, click Blue Data Bar. Create a new conditional format that applies Red fill and bold font to incident (range A6 A85) that required 30 or more days to resolve Change page breaks so page 2 begins with the Computer ID column (column EX Set the print scale to 85% Add a custom footer with your name on the left side, the sheet name code in the center, and the file name code on the right side Save and close the workbook Submit the workbook as directed

Widte Automatic HeightAutomatic- Escale Gridlines Headings View Print Margins Onentation Sure Print reaks Background Print Titles 100% Bring Send Forward - Backward Selection Pane Arrange 747-57548 DE Technical Support Calls 3 Threshold days 1992 2971 1850 9018 6404 Cox COX Incident Number - Date created - Last Name - Agent Name 747-57548 3/24/2021 Murray Broadnax 254-3993: 2/4/2021 Stone Broadnax 831-91089 4/4/2021 Herrera Broadnax 15207-19047 2/4/2021 Cook Broadnax 16 284-56116 2/17/2021 Ramos Broadnax 19 295-57913 5/5/2021 Nguyen Cox 23 619-44822 2/10/2021 Silva 24 605-47583 3/9/2021 Garner 29 424-30728 4/26/2021 Walker Dodson 31 875-36070 5/2/2021 Delgado Dodson 32 727-78890 2/15/2021 Watts Dodson 33 247-70541 3/24/2021 Rodgers Dodson 34 868-40830 5/5/2021 Griffin Dodson 35 878-43585 3/13/2021 Hale Dodson 37 859 12568 3/18/2021 Soto Hays 38 2019-20285 2/20/2021 Coleman Hays 41 179-51542 3/29/2021 Gray 42 657-68422 1/16/2021 Washington Hays 45 751-81316 3/3/2021 Ramirez 49 614-70314 2/20/2021 Gutierrez 52683-70001 3/22/2021 Newman 54 422-24141 2/18/2021 Carpenter Leggett 3/1/2021 SupportCalls 8930 9589 9955 3488 4468 2340 7125 2853 8586 3198 1577 6405 9751 3801 6580 4978 16 Won't power on Won't power on Won't power on Virus Virus Won't power on Software Update Forgotten Password Won't power on Won't power on Printing issues Software Update Forgotten Password Virus Won't power on Won't power on Software Update Software Update Virus Software Update Forgotten Password Forgotten Password Went Weron Status Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed 7 Date Resolved Duration 3/25/2021 2/20/2021 4/30/2021 2/12/2021 2/28/2021 5/13/2021 | 2/12/2021 3/14/2021 5/2/2021 5/28/2021 2/28/2021 4/11/2021 5/7/2021 3/21/2021 4/5/2021 3/20/2021 4/9/2021 2/9/2021 3/24/2021 3/3/2021 3/26/2021 2/26/2021 6/12/2021 -

On Freeze Panes, the SupportCalls worksheet's first row of column headings (Row 5) will stay static even when scrolling. Make sure Rows 1-4 are discernible.

What is Static scrolling?

Create a table using the data, rename it Support Calls, and apply the Gold, Style Medium Table 12 Get rid of duplicate records Create a column in the table with the name Duration.

To determine the number of days necessary to settle the event, create a formula utilizing unqualified structured references.

To show the average number of days needed to fix a problem, add a total row. The data in alphabetical order by Agent Name, add a second level of sorting by Description, and generate a unique sort order like in the example below.

Therefore, On Freeze Panes, the Support Calls worksheet's first row of column headings (Row 5) will stay static even when scrolling. Make sure Rows 1-4 are discernible.

To learn more about Column headings, refer to the link:

https://brainly.com/question/13163317

#SPJ2

Identify the following verb by number and person by checking on the appropriate boxes.

SHE WANTS!!


second person
singular
plural
same form for both singular and plural
third person
first person PLEASE HELP!!!!!! LAUNGUAGE ARTS

Answers

second person ig Imao yeah

Answer:

Singular and third person

Explanation:

Second person: this answer is not correct as second person refers to pronouns such as “you, yourself” like in a recipe.

Singular: this is correct as a singular verb is when there is only one subject. You can also tell it’s a singular verb as the present tense ends with a “s”.

Plural: this is not plural because there is only one subject. Plus the present tense of the verb ends with an s so it’s not a plural verb. Plural verb’s present tense never ends with an s.

Third person: this is correct because the subject of the sentence is someone else. Third person pronouns include: “her, she, he, him, they, then” basically, third person is when you talk about someone else.

First person: this answer is not correct because first person refers to one’s self. So first person pronouns are: “I, me, myself”

Other Questions
how does the colour of star help to find its age In bakery when _______ is added to the dough for preparing bread, the dough rises PLEASE HELP MEHow would Newtons second law of motion impact the fitness routine of someone who is significantly overweight? Is there any type of fitness activity that a significantly overweight person could do where Newtons second law of motion would not be a factor? Explica cules eran las etapas para llegar al conocimiento de las cosas en filosofa the pH of soil X is 7.5 while that of soils Y is 4.5 which of the two coils should be treated with powered talked to adjust its PH If line m is perpendicular to line n, and the slope of line m is -5/3, what is the slope of line n? Write in simplest form. You throw a rock up into the air as hard as you can. It stays in the air a total of 6.0 s. Whatwas the velocity of the rock when you threw it? -2(-2)(-2)3+(-2)3(-1) Josie used 1/2 of the milk for pancakes this morning. If her brother and sister divided what was left to eat cookies with their movie, what fraction of the milk did each drink? For brainily please help HELLP MEEEEEEPLEASE Simplify: |7 9| + (7 9)^2 1. A Rhode Island couple and their three-year-old son move into a new custom-builthouse near the shore. Shortly afterward, they notice fungus and mold growing on thehouse's woodwork, which they attribute to the humid ocean air. They clean the moldwhenever they see it growing, but it consistently returns. One year later, the couple'sson develops a serious neurological disorder. Doctors determine that the disorderwas the result of mold exposure. A house inspection determines that the moldoriginated with the lumber used to build the house, which was improperly storedbefore being used to build the house.a. Gather the facts related to this case and determine the issue involved. (1 point)| Metamorphic rocks are common when two continental plates collide because There is a lot of stress when enormous slabs of crust push together Sediment buries rocks to increase pressure O Magma bodies are common because there is a lot of melting O All of these 3. What are three purchasing activities in businesses? A figure with coordinates J ( 12 , 16 ) , K ( 4 , 3 ) , L ( 2 , 16 ) , M ( 1 , 0 ) is dilated by a scale factor of 4 with the origin as the center of dilation. Fill in the coordinates of J of the figure after dilation. What is the solution to the equation?-4 = 1.Enter your answer in the box.X= Hey!Need help please...[tex]\sf{What~is~2x~+~16= 8.[/tex]Answers/w explanation Nonsense answers, or answers. that I didn't ask for will be reported. chromosomes tightly coiled structure enables them to be properly segregated during: what do all craniates have that earlier chordates did not have?