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";
}
}
Explanation:
Ask a professional
(PLATO) Which of these games was a graphical adventure game?
OA Colossal Cave Adventure
OB. MacHack 6
OC. Life
D. King's Quest
Answer:
Kings quest
Explanation:
Pretty sure it was kings quest
1. In the space below, explain how the Table Tools can be accessed in Word.
Answer:
Creating a Table
1) Click the Insert tab on the Ribbon
2) Click on Table
3) Highlight the number of columns and rows you’d like
OR
4) Click Insert Table
5) Click the arrows to select the desired number of columns
6) Click the arrows to select the desired number of rows
7) Click OK
Answer:
Click in the cell (or select multiple cells) that contains text you want to align. The Table Tools tab appears. Click the Layout tab under the Table Tools heading. … If you change the alignment of blank cells, any new text you type in those blank cells will appear according to the alignment you choose.
Explanation:
Electromagnetic fields flow in what way?
high voltage to low voltage
sender to receiver
high frequency to low frequency
north to south
Answer: North to South
Explanation:
Electromagnetic field is a field that's caused by moving electric charge. The direction of the electromagnetic field is from the north to the south pole. This direction can be deduced by holding the current carrying conductor in your left hand with the thumb extended pointing in the direction of the electron flow from negative to positive.
Even though electromagnetic fields cannot be seen with our eyes, they are presentcin our environment as they are produced through the build up of electric charges.
Answer:
high frequency to low frequency, or high voltage to low voltage.
Explanation:
All i know is north to south is wrong i got it wrong and had to do a retake on the quiz
The purpose of project management is _____. executing a requirement improvement working toward a common goal completing a project
Answer:
working toward a common goal.
Explanation:
Project management can be defined as the process of designing, planning, developing, leading and execution of a project plan or activities using a set of skills, tools, knowledge, techniques and experience to achieve the set goals and objectives of creating a unique product or service.
Generally, projects are considered to be temporary because they usually have a start-time and an end-time to complete, execute or implement a project plan.
Furthermore, the main purpose of project management is working toward a common goal.
This ultimately implies that, project managers should ensure adequate attention and time is taken to identify, analyze and manage capital, raw materials, people, system of tasks and other resources, so as to effectively and efficiently achieve a common goal with all project stakeholders.
The fundamentals of Project Management which are universal across all fields and businesses includes;
1. Project initiation.
2. Project planning.
3. Project execution.
4. Monitoring and controlling of the project.
5. Adapting and closure of project.
In conclusion, it is very important and essential that project managers in various organizations, businesses and professions adopt the aforementioned fundamentals in order to successfully achieve their aim, objectives and goals set for a project.
PLSSSSS HELPP!! Population biologists are concerned about invasive species such as the zebra mussel found in North American water ways because
A.The introduced species compete for resources more effectively than native species
B.These introduced species will require more land to be protected
C.Introduced species often become endangered when they are placed in a new habitat
D.Predators of the zebra mussels will decrease after these organisms are introduced into the habitat
Answer: A.The introduced species compete for resources more effectively than native species.
Explanation:
An introduced species is also called the exotic species and this is an organism which is not a native organism or specie and therefore isn't native to the place but rather it's being transported to the place through the activities of human being.
When the introduced species are introduced to a particular area, they compete with the natives for the available resources and often do this more effectively than the other native species.
Therefore, the correct option is A.
What is the path to add a Switchboard tab to the ribbon?
Go to the File tab, Options group, then Settings.
Go to the Home tab, Format group, then Add to Ribbon.
Go to the File tab, Options group, then Customize Ribbon.
Go to the Home tab, Records group, then Customize Ribbon.
Answer:
Go to the File tab, Options group, then Customize Ribbon.
Explanation:
Got it on E2020.
Bredan has $200 on a savings account with a 1% interest rate. Using the formula for a simple interest how much will her earn in interest after 7 years
Answer:
$14
Explanation:
Simple interest can be calculated using below formula
I=PRT .................(1)
Where P= principal = $200
I= interest = 1%
T= time = 7 years
R= rate = 1% = (1/100) =0.01
Then substituting the given values into eqn (1)
I = (200× 0.01 × 7)
I =$14
Hence, she will her earn $14 of interest
What electronic appliances at your home / school can be controlled remotely? Name any 4
with its uses.
Answer:
Hi how are you doing today Jasmine
Need answer ASAP I’ll mark brainliest if correct
How can you create a class without any methods, yet call a method from that class?
The class can___ methods from another class
write a programme to print the following series or pattern 1,22,333,4444,55555
Answer:
hey here is your req answer.
CLS
FOR i = 1 TO 5
FOR j = 1 TO i
PRINT i;
NEXT j
NEXT i
END
any problem the comment it and let me know
hope this helped you
List any two software that could be used for creating visual information
Answer: inkscape
Microsoft PowerPoint
Explanation:
Visual information is the presentation of information in visual format e.g through pictures, etc. It is the use of pictures, signs, icons etc to pass a message with one's sense of sight.
The software that could be used for creating visual information include inkscape and Microsoft PowerPoint. IInkscape is an open-source vector graphics editor which is used in the creation of vector images. Microsoft PowerPoint is also a presentation program.
Name the tools in plant propagation.
Q
18.
16.
17.
19.
20.
please po asap
Need answer ASAP. Plz
-Infinity ⇒ NEGATIVE_INFINITY
Infinity ⇒ POSITIVE_INFINITY
1.7...e+308 ⇒MAX_VALUE
5e-324 ⇒ MIN_VALUE
compare and contrast the typewriter with that if the computer keyboard pls help omg
Answer:
Typewriters use paper and ink
and computers keyboards is an electroic typing
Explanation:
Unlike radio frequency identification (RFID) tags, bar codes: Question 30 options: require a reader that tunes into a specific frequency to determine the location of products. cannot be read using a handheld or pen-type scanner that reads and records data instantly. require direct line-of-sight scanning. increase data entry errors by 75 percent.
Answer:
require direct line-of-sight scanning.
Explanation:
Unlike radio frequency identification (RFID) tags, bar codes require direct line-of-sight scanning. Meaning you need a device that can scan the bar code and the scanner needs to be directly pointing at the barcode without anything in the way. This is because bar codes work by embedding the information in a design of lines that need to be scanned to retrieve the information. If anything gets in the way it interrupts the scanning process and the data is not correctly transmitted. RFID tags on the other hand do not need a direct line of sight since the information is transferred through radiofrequency. This allows the data to be transferred without a line of sight and at a distance of up to 300ft.
write a programme to input the values of two angle and find out the third angle of a triangle
Answer:#include <stdio.h>
int main()
{
int ang1, ang2, ang3; /*are three angles of a triangle */
/* Read two angles of the triangle from user separated by comma*/
printf("Input two angles of triangle separated by comma : ");
scanf("%d, %d", &ang1, &ang2);
ang3 = 180 - (ang1 + ang2); /* Calculates the third angle */
printf("Third angle of the triangle : %d\n", ang3);
return 0;
}
Risk of new technology is NOT evaluated by asking questions during which phase?
Product screening
Risk assessment
Concept testing
Test marketing
Answer:
the answer is D
Explanation:
hope this helps :)
What is 1 of the rules for naming variables?
Answer:
Rules for Naming VariablesThe first character must be a letter or an underscore (_). You can't use a number as the first character. The rest of the variable name can include any letter, any number, or the underscore. You can't use any other characters, including spaces, symbols, and punctuation marks.#Markasbrainlessplease✅
Circuit-switched networks provide connection between two parties that: Group of answer choices is dedicated for use by the parties for the duration of a connection. prioritizing voice calls over other connections on IP networks. repeatedly switches between an open and closed state depending on whether someone is speaking or other noise is being transmitted during a call. slicing up the conversation into smaller chunks and transmitting them over a shared circuit that mixes content with other callers but routes and reassembles a call to the correct recipient. uses a single router for each individual on either end of the connection.
Answer:
The answer is "The first choice"
Explanation:
The circuit switches are used to provide a network that connects among the two parties, which are dedicated for the use to the parties for the length of the connection. It is a familiar technique, that is used to create a network for communication, which is used on telecalls. It also enables the hardware and circuits to share among the users, and for every user, it has direct access to the circuit during the use of the network.
Complete the statement about WYSIWYG editors when you use a WYSIWYG editor you typically specify the continent and blank A.layout B.Html Code C. Meta tags while the editor generates the blank A.layout B. Html code C. Meta tags
Answer:
When you use a WYSIWYG editor you typically specify the content and layout while the editor generates the HTML code
Explanation:
Required
Complete the blanks
In WYSIWYG, the user of the application provides contents to the WYSIWYG software and also designs the appearance; The appearance is referred to as the layout.
Throughout the design, the user will not use HTML codes; it is the duty of the WYSIWYG editor to generate HTML code based on the input designs by the user.
Which of the following is constantly changing and advancing?
Innovation
Cell phones
Technology
Computers
Answer:
Technology
Explanation:
This is because Cell phones ,Innovation ,and Computers ARE changing although they are in the same group of "Technology" so it would be technology.
Any questions?
write a program to input a number and check whether it is even or odd number
its qbasic question
no links plzz
Answer:#include <stdio.h>
int main() {
int num;
printf("Enter an integer: ");
scanf("%d", &num);
// true if num is perfectly divisible by 2
if(num % 2 == 0)
printf("%d is even.", num);
else
printf("%d is odd.", num);
return 0;
}
Can someone tell me which key is the num lock
Write a program to create a list of numbers in the range of 1 to 10. Then delete all the even numbers from the list and print the final list.
Directions: In at least 10 complete sentences, persuade me into believing your favorite movie is the best movie ever. (No more than 15 sentences)
Explanation:
In my personal opinion, the movie called " Soul Surfers " one of the most inspiring movies out there. Why, you may ask? First of all, Bethany Hamilton has found such a joy and thrill for surfer. Sadly, every surfers worst nightmare was a reality to Bethany. While her and a couple others we surfing, a shark obruptly bit Bethany Hamilton's arm off. You would think her carrier would be over, but she simply denied the odds of that happening. She got on her surf board and started practicing again! She began just as good as she was before the accident. And that is why " Soul Surfer " is the best movie ever!
Which of these is a type of array .
( library , file , index , tulle )?
Answer:
index
Explanation:
i want to learn i am not sure
Item 3
Which of the following describes new technology development?
A harmless process
A somewhat assured process
A partially risky process
A very risky process
Answer:
A somewhat assured process
B. A somewhat assured process is describes new technology development
What are the five phases in technology development process?Five phases guide the new product development process for small businesses: idea generation, screening, concept development, product development and, finally, commercialization.
What is technology development process?Technology Development Process, is a directed process at developing new knowledge, skills and artefacts that in turn facilitates platform development
To learn more about new technology development, refer
https://brainly.com/question/27090068
#SPJ2
Edhesive 11.4 code practice
Answer:
<!DOCTYPE html>
<html>
<body>
<h2>Billboard Hot 100 Songs 1980</h2>
<p>1. Blondie - “Call Me“</p>
<h2>Billboard Hot R&B/Hip-Hop Songs 1980</h2>
<p>1. Michael Jackson - “Rock with You“</p>
<h2>Billboard Hot Country Songs 1980</h2>
<p>1. Kenny Rogers - “Coward of the County”</p>
</body>
</html>
Mainly for edhesive users
100% on edhesive code practice 11.4
Why do you need to cite your sources? (check all that apply)
other researchers should not be able to use your work
you give credit to the original author
you avoid plagiarism
DONE
the answer to this is 2 and 3
Hope this helped
-scav
Answer:
2 3 baka baddies
Explanation: