How do i fix this to make it run ???

class Main {
public static void main(String[] args) {

// Length and sides.

Cube shape1 = new Cube(5, 6);


HalfSquare shape3 = new HalfSquare(4, 20, 4, 5);

// Cluster of print statements to deliver stats about the shape.

// Shape 1
System.out.println(shape1.toString());
System.out.println("");
System.out.println(shape1.toStringCube());
System.out.println("");

// Shape 2
System.out.println("");
System.out.println(shape3.toString());
System.out.println("");
System.out.println(shape3.toStringHalfSquare());


}
}


// Main Class
class Shapes {

private int sidesNum;
// Constructors, Mutators, and Accessors
public Shapes(int SN){
setSidesNum(SN);
}
public void setSidesNum(int value){
this.sidesNum = value;
return;
}
public int sideNumber(){
return this.sidesNum;
}

// shapes, shapes, and more shapes
public String toString() {
return " This shape has: " + sideNumber() + " sides.";
}
}


class Cube extends Shapes{
private int volume;


// Constructors, Mutators, and Accessors
public Cube(int Vol, int SN){
super(SN);
setVolume(Vol);
}

public void setVolume(int value){
this.volume = value;
return;
}

public int getVolume(){
return this.volume;
}

public String toStringCube() {
return " " + "Volume of a cube = " + Math.pow(getVolume(), 3 ) + " squared. Surface area = " + Math.pow(getVolume(), 2) * sideNumber() + " units2.";
}

}

class HalfSquare extends Shapes{
private int length;
private int width;
private int height;

// Constructors, Mutators, and Accessors
public HalfSquare(int lngh, int hght, int wdt, int SN){

super(SN);
setLength(lngh);
setHeight(hght);
setWidth(wdt);
}
public void setLength(int value5){
this.length = value5;
return;
}
public void setWidth(int value6){
this.width = value6;
return;
}
public void setHeight(int value7){
this.height = value7;
return;
}
public int getLength(){
return this.length;
}
public int getWidth(){
return this.width;
}
public int getHeight(){
return this.height;
}
public String toStringhalfSquare() {
double hypot = (Math.sqrt((getLength() * getLength()) + (getHeight() * getHeight())));
return "The volume of a prism = " + (getLength() * getWidth() * getHeight()) * .5 + " squared. The hypotenuse = " + hypot + ", The surface area =" + ((getLength() * getHeight()) + (hypot * getWidth()) + getHeight() * getWidth() ) + " units2";
}
}

Answers

Answer 1

Explanation:

Ask a professional


Related Questions

jdr-wivg-vmb
co.me a.nd jo.in fa.st...
go.ogle me.et​​​​​

Answers

Explanation:

what is this don't post like this

and, or, not are examples of boolean logic

Answers

true a example  boolean logic is (and, or, and  not)

-scav

List two building techniques or materials that should be considered if you are building in Tornado Alley.

Answers

Have a strong foundation and a tornado shelter.

A friend is working on piecing together a computer. He calls and explains that he needs to buy a circuit board with ports and sockets that connects the main devices of his computer. Which computer component is he most likely explaining? Group of answer choices

Answers

So this component is the motherboard

Hope this helps.

-scav

Miriam Is a network administrator. A few employees want to access sensitive Information stored on a backup device. She wants to give access
rights these employees. Which option will she use?
ОА.
remote desktop
ОВ.
monitoring service
Oc.
user accounts
OD.
print service
OE.
directory service

Answers

Answer:

C. user accounts

Explanation:

An access control can be defined as a security technique use for determining whether an individual has the minimum requirements or credentials to access or view resources on a computer by ensuring that they are who they claim to be.

Simply stated, access control is the process of verifying the identity of an individual or electronic device. Authentication work based on the principle (framework) of matching an incoming request from a user or electronic device to a set of uniquely defined credentials.

Basically, authentication and authorization is used in access control, to ensure a user is truly who he or she claims to be, as well as confirm that an electronic device is valid through the process of verification

Hence, an access control list primarily is composed of a set of permissions and operations associated with a NTFS file such as full control, read only, write, read and execute and modify.

Generally, access control list are defined for specific user accounts and may either be an administrator, standard user or guest account.

In this scenario, Miriam a network administrator wants to give access rights to employees who are interested in accessing sensitive Information stored on a backup device. Thus, the option Miriam should use is user account.

Answer:

user accounts

Explanation:

What is a commerce platform?

Answers

Answer:

In basic terms, a commerce platform simply refers to technology that enables a transaction (the commerce bit). The platform part allows you to overlay that technology across various channels such as online and in-store.

Answer:

Explanation:

a commerce platform simply refers to technology that enables a transaction (the commerce bit). The platform part allows you to overlay that technology across various channels such as online and in-store.20 Feb 2017

A free open source audio editing software program is
A. Sound Forge.
B. Pro Tools.
C. iTunes.
D. Audacity.

Answers

D. Audacity

،،،،، ،،،،،،،،،،

A free open source audio editing software program is Audacity. Thus, option D is correct.

What is audio editing?

The audio editing is given as the change in the audio, volume, with the length, speed of the audio or other manipulations. The audio editing is performed with the use of the software in the computer that enables the generation of the audio data.

The three types of audio editing techniques involves:

Sound Forge: It mediates the edit in the sound files with playback.

Audacity: It is a free software that has been used for long with multi-track audio editor and recorder.

Pro Tools: It enables the use of the view and edit of the track.

Therefore, A free open source audio editing software program is Audacity. Thus, option D is correct.

Learn more about audio editing, here:

brainly.com/question/24228690

#SPJ3

1. What are you going to do if someone ask for your personal information online?​

Answers

Answer:

Ask them why they need such information.

Explanation:

If they can't give you a good reason, please don't share your personal info. ♥

Answer:

If someone ask my personal information online i'll  trun off  my mobile data or wi-fi  and then i'll block the user's Id

Explanation:

hope it is helpful to you

Which of the following best describes the protocols used on the Internet?

The protocols of the Internet are designed by government agencies to ensure they remain free to use

The protocols of the Internet are secret to maintain the privacy and security of people using them

Each device connected to the Internet will use a protocol designed by the company that manufactured it

The protocols of the Internet are open and used by all devices connected to the network

Answers

The protocols of the Internet are open and used by all devices connected to the network

-scav

Which of the following terms refers to the legal protection provided against
copying, distributing, performing, or changing both published and
unpublished works?
A.intangible property
B.tangible property
C.copyright
D.intellectual property

Answers

Answer:

The answer is C is your answer I guarantee it is I know it

The photograph shows a way individuals work together in groups a the photograph​

Answers

Answer:

D. Administrators

Explanation:

Hope it helps

#CarryOnLearning

How to create a trace table

Answers

Answer:

To create table g

Go to insert tab

Choose Table option at left corner and measure the table box.

Table is created in Microsoft.

name the default Package of java

Answers

Answer:

java.lang package

Explanation:

Java compiler imports java. lang package internally by default. It provides the fundamental classes that are necessary to design a basic Java program.

(Java)
Summarize the connection between controls, events, and subroutines.

Answers

In order to create an effective summary, you must take time to read through the topics that you have been given. Namely:

"The Connection between Controls, event, and subroutines".

What is a Summary?

A summary refers to a concise statement or account or report of the key points of an event, story, or literature.

A summary is usually exclusive of details that are not necessary. It focuses on the key points.

The text relating to the topic must be carefully researched. Jot down your points on a separate sheet, especially when looking at introductory paragraphs and chapters. You will also find key points in the conclusive paragraphs of each chapter or the text.

Then ensure that all your points are arranged in an order that is logical and sequential.

Learn more about Summaries at:

brainly.com/question/25605883

2. You go to an intemet cafe to send an email to your friend upon returning home you
realize that you forgot to log out your account. What probably could happen to your
account?​

Answers

There is a risk that someone else would gain access to your account as well as your personal information.

Pueden cojer los datos privados hackear la cuenta

What is the purpose of a hyperlink in a presentation?
A to add a joke to a presentation
B to create an attractive image
C to connect a user to a new slide, a file, or a webpage
D to keep track of the order of slides

Answers

Answer:

Answer:c to connect a user to a new slide, a file, or a webpage

Explanation:

Explanation:c

Answer:

c

Explanation:

What technology standard is commonly used today for hard drives to interface with the motherboard in a system? pasago po salamat ^_^

Answers

Answer:

Serial Advanced Technology Attachment (SATA).

Explanation:

The hardware component of a computer can be defined as the physical parts or peripherals that enables it to work properly. Thus, the hardware components of a computer are the physical parts that can be seen and touched. Some examples of hardware components are monitor, speaker, central processing unit, motherboard, hard-drive, joystick, mouse, keyboard, etc.

Digital storage of data refers to the process which typically involves saving computer files or documents on magnetic storage devices usually having flash memory. Some examples of digital storage devices are hard drives, memory stick or cards, optical discs, cloud storage, etc. A reliable storage such as a hard-disk drive ensures that computer files or documents are easily accessible and could be retrieved in the event of a loss.

Serial ATA (SATA) is a technological standard which is commonly used today for hard drives to interface with the motherboard in a computer system. Thus, it's simply a bus interface on computer systems that is typically used for connecting mass storage devices to host bus adapters such as motherboards.

Generally, SATA comprises of two ports and these are the power and data connector.

1.The hardware that allows data to be transmitted from a computer along a telephone line to another computer at the other end is a_____

modem

keyboard

visual display unit

printer



Answers

So this is called a modem we use it to send  and receive info over telephone lines

Hope this helps

-scav

BRAINLIEST TO THE BEST ANSWER!!!!!!!!!!!!!
In your own words in at least two paragraphs, explain why it is important, when developing a website, to create a sitemap and wireframe. Explain which process seems most important to you and why you feel most drawn to that process.

Answers

Answer:A sitemap break a website down to it's most basic components and a wirefram gives more details of what each page will contain but if you do have fleshed out content ready bring that content into your wireframed to see how it fits

Explanation:

Which security option should be used to ensure the integrity and validity of an Access database?

digital signature
database password
trust center options
start-up options

Answers

Answer:

The best security which could be used to ensure integrity and validity of Access database is:  

O. database password

Explanation:

Database password is the only option that best guarantee the integrity of an Access database due to the fact that, it limits the number of people who would be able to have access to it. This password is an administrative right given to those who are meant to access it and it is expected to be renewed every few months (probably every 3 months).

Without the password, no other person can be able to login. Also, no two individual can be able to login in same time using same credential login details assigned (that is, in scenario of using the same Username and password)

Answer:

A) digital signature

Explanation:

what is the output of this line of code
print("hello" + "goodbye")
A - "hello" + "goodbye"
B- hello + goodbye
C - hello goodbye
D - hellogoodbye

Answers

Answer:

D - hellogoodbye

Explanation:

since your merging two string together you will simply just get one string in total

Answer:

D

Explanation:

N an AWS design template, the "depends on" property of a resource is represented by an _________ color dot. Red Orchid Blue Black

Answers

Answer:

Black

Explanation:

Explicit dependencies in Amazon Web Services are used to determine the order in which resources are added or deleted on AWS Cloud Formation. If a user wishes to create explicit dependency, a line from the "dependson" dot located at the route is moved to the gateway-VPC attachment.

The "dependson" dot helps to specify which resource is created before another. It is signified by a black dot (*). It can be used to override parallelisms and also to determine when a wait condition becomes activated.

HELP I HAVE A D RN PLEASE
Use the drop-down menus to describe how to encrypt a database with a password.

1. In Access, click Open on the File tab.

2. Select the database.

3. Click the drop-down arrow to the right of Open, and click
.

4. Click the File tab.

5. Click
, and select Encrypt with Password.

6. Enter a password when you are prompted
. Click OK.

7. Close and reopen the database.

8. To open the database again, you will need to
.

Answers

Answer:

1. Open Exclusive

2. Info

3. twice

4. enter a password

Explanation:

In Access, click Open on the File tab. Open Exclusive or backstage View. Select the database by. clicking Info and Click the File tab twice and enter a password

Which view is opened when File tab is clicked?

The Backstage View is said to be opened. Note that one can use the Backstage through the clicking of the "File" tab that can be found on the top-left hand side of the system application window.

Note that In Access, click Open on the File tab. Open Exclusive or backstage View. Select the database by. clicking Info and Click the File tab twice and enter a password.

Learn more about password from

https://brainly.com/question/17174600

#SPJ2

necesito ejemplos de actitud filosófica por favor

Answers

Answer:

La filosofía es una disciplina intelectual que estudia críticamente las cuestiones más básicas de la humanidad y la naturaleza. Preguntas fundamentales de la filosofía son, entre otras, las siguientes:

-¿Existe alguna realidad fuera de mis pensamientos?

-¿Qué es el conocimiento?

-¿Qué es la verdad?

-¿Qué hace que una acción sea valiosa?

-¿Los humanos y los animales tienen valor y son iguales o diferentes?

-¿Qué es el tiempo?

Así, el planteamiento y reflexión de este tipo de preguntas son claros ejemplos de actitud filosfófica.

One way to use contiguous allocation of the disk and not suffer from holes is to compact the disk every time a file is removed. Since all files are contiguous, copying a
file squires a seek and rotational delay to read the file, followed by the transfer at full speed. Writing the file back requires the same work. Assuming a seek time of 5 msec, a rotational delay of 4 msec, a transfer rate of 8 MB/sec, and an average file size of 8 KB, how long does it take to read a file into main memory and then write it back to the disk at a new location? Using these numbers, how long would it take to compact half of a 16-GB disk?

Answers

Answer:

The answer is below

Explanation:

a) Seek time = 5 msec, transfer time = 4 msec, transfer rate = 8 MB/sec = 8000 KB/sec, average file size = 8 KB

Transfer time = 8 KB ÷ 8000 KB/sec = 1 msec

The time required to read and write is twice the sum of the seek and transfer time.

Total time = (5 msec + 4 msec) * 2 + 1 msec = 19 msec

b) half of 16 GB = 8 GB = 8000000 KB

number of read and writes = (8000000 KB of total file size/ 8 KB of average file size) * 2 = 2000000

Transfer rate = 8 MB/sec = 0.008 GB/sec

Transfer time = 8 GB ÷ 0.008 GB/sec = 1000 sec

Total time = (5 msec + 4msec) * 2000000 + 1000 sec = 19000 sec

Hey, Another question. I'm sure it's possible in the future, but I wanted to ask if HIE would be possible. I'm sure it would be, I just want to hear other people's comments on this. (Beatless)

Answers

Answer:

Originally Answered: Will there ever be a band as big as the Beatles? No, there will never be a band as popular as the Beatles. For one thing they were exceptionally good in a time of great music in general.

Explanation:

please mark this answer as brainliest

Nicole is in a study group to prepare for a test on plant biology, a subject she knows a lot about. During their meetings, she always comes prepared, helps other students, does most of the talking, and handles all of the tasks. What does Nicole need to do to make the study group more effective? come better prepared and offer relevant information let other students participate more and share the workload share more of her opinions and answer questions keep her thoughts to herself and let others do all the talking

Answers

Answer:

B

Explanation

Let other students participate more and share the workload.

Have a good day everyone!

Answer:

let other students participate more and share the workload

Explanation:

The following procedure is intended to return true if the list of numbers myList contains only positive numbers and is intended to return false otherwise. The procedure does not work as intended. PROCEDURE allPositive(myList) { index ←← 1 len ←← LENGTH(myList) REPEAT len TIMES { IF(myList[index] > 0) { RETURN(true) } index ←← index + 1 } RETURN(false) } For which of the following contents of myList does the procedure NOT return the intended result?

Answers

Answer:

[-1, 0, 1]

Explanation:

Given

The above procedure

Required

Which list does not work as intended

The question has missing options (the options are available online).

From the question, we understand the procedure is to return true for lists that contain only positive numbers.

However, the list does not work for [-1, 0, 1]

The reason is that; the procedure starts checking from index 1.

i.e. index ←← 1

In [-1, 0, 1], the element at index 0 is negative (-1).

Since the procedure starts checking from index 1, the procedure will not check the element at index 0 (i.e. -1).

Hence, it will return true, instead of false

In this exercise we have to use the knowledge of computational language in python, so we have that code is:

It can be found in the attached image.

So, to make it easier, the code in python can be found below:

NumList = []

Number = int(input("Please enter the Total Number of List Elements: "))

for i in range(1, Number + 1):

   value = int(input("Please enter the Value of %d Element : " %i))

   NumList.append(value)

print("\nPositive Numbers in this List are : ")

for j in range(Number):

   if(NumList[j] >= 0):

       print(NumList[j], end = '   ')

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

Which service uses a broadband connection?
Select one:
O a. DSL
O b. 3G and 4G
O c. dial up
O d. all connections use broadband

Answers

Answer:

d

Explanation:

because all in one question form

algorithm of how to calculate the area of a square.

Answers

Answer:

In order to calculate area of a square, 'A' be the area of square and the length of the square be 'a'. Then we need to calculate A= a*a. Step 2 :- Accept as input, the length of the sides of the square, and store the value in variable a. Step 3 :- Calculate the area of the square (a*a) and store in a variable A.

Explanation:

Answer:

Area = side x side. For example, the area of a square of each side of length 8 feet is 8 times 8 or 64 square feet.

Other Questions
A powerful women's group has claimed that men and women differ in attitudes about sexual discrimination. A group of 50 men (group 1) and 40 women (group 2) were asked if they thought sexual discrimination is a problem in the United States. Of those sampled, 11 of the men and 19 of the women did believe that sexual discrimination is a problem. Find the value of the test statistic. Round to two decimal places. A. Z= - 1.20 B. Z= -2.55 C. Z= -1.05 D. Z= -0.85 Comentario del plano de la ciudad de Santander How is unit rate related to the linear equation? Which of the following is true of pseudoscience and science? A) Pseudoscience is testable and science is not testableB) Pseudoscience cannot be tested and science is testableC) Pseudoscience and science both use a lot of empirical evidenceD) Pseudoscience is based on facts and science is just opinion A salesman who is on the road visiting clients thinks that, on average, he drives the same distance each day of the week. He keeps track of his mileage for several weeks and discovers that he averages 122 miles on Mon- days, 203 miles on Tuesdays, 176 miles on Wednesdays, 181 miles on Thursdays, and 108 miles on Fridays. He wonders if this evidence contradicts his belief in a uni- form distribution of miles across the days of the week. Explain why it is not appropriate to test his hypothesis using the chi-square goodness-of-fit test. Please help asap I need this is there always one right answer when triaging patients? why or why not The whale swims down 150 feet more. What is the whale's elevation now? Do not include units (ft) in your answer Solve for i3 (.5i - 6 ) = 12 which polygon matches this set of ordered pairs 49. Calculate the value of c in the triangle below. Explain biometric senser. Restrictions are associated with the culture of a language are called....Select one:a. Selectional Restrictions.O b. Thematic restrictions.O c. Collocational restrictions. . 1. Oblicz:a) Liczb o 15% mniejsz od 60b) Liczb, ktrej 15% stanowi 60c) Jakim procentem 60 jest 15d) O ile %wiksza jest 60 od 152. Kasia kupia buty na wyprzeday przecenione o 20%. Ich cena pocztkowa to 180 z. W domu sprzedaa je siostrze zarabiajc na tym 10% wartoci. Ile zapacia Kasi siostra za buty?3. Liczba, ktr powikszymy o 20% daje nam 30. Jaka to bya liczba?4. Za dwie ksiki zapacono 42 z. Ile kosztuje drosza z nich, jeeli jedna jest o 25 % tasza od drugiej? 12. What property of multiplication is illustrated in 9 x 7=7 x 9? The main purpose of the Anti-Saloon League in the early 1900s was' please help me....... In a survey asking what is your favorite dessert, 15% of the students said their favorite dessert is candy. This means that 12 students said that candy was their favorite dessert. How many students were surveyed? (Hint you are trying to find the whole). Calculate the value of Molly's name if an acute angle is worth 5 points, a right angle is worth 7 points, and an obtuse angle is worth 7 points. What is the lateral surface area?7 A cylindrical pipe measures 18 inches and has a diameter of 1 inch. How many square inches of metalare used to make the pipe, which is open on both ends? Round your answer to the nearest hundredth.1 2 345 678910NextM