Complete the program to calculate and print the volume and surface area of a rectangular box, each rounded to the nearest tenth (1 decimal place).
The starter code already prompts the user and takes in the dimensions of the box (length, width, and height) as three double-value inputs. You need to do the calculations and print the results. Use the printf() command (described in chapter 3 of the book) to print the results with the correct rounding.
Sample output:
Enter the dimensions of a box, in centimeters:
Length?
8.5
Width?
5
Height?
3.4
Volume = 144.5 cm^3
Surface Area = 176.8 cm^2

Answers

Answer 1



Here's the completed program to calculate and print the volume and surface area of a rectangular box, each rounded to the nearest tenth (1 decimal place):

The program uses a Scanner object to get the user input for the dimensions of the box. It then uses the input values to calculate the volume and surface area of the box using the appropriate formulas. The printf() method is used to format the output and round the values to one decimal place.
To calculate the volume of the box, we simply multiply the length, width, and height values together. To calculate the surface area, we use the formula: Surface Area = 2 * (length * width + length * height + width * height) This formula accounts for the six faces of the rectangular box.


Here's the code snippet that demonstrates the calculations and print statements:
```java
// Assume that length, width, and height are already provided by the user
double volume = length * width * height;
double surfaceArea = 2 * (length * width + length * height + width * height);
// Print the volume and surface area with 1 decimal place rounding
System.out.printf("Volume = %.1f cm^3%n", volume);
System.out.printf("Surface Area = %.1f cm^2%n", surfaceArea).

To know more about surface visit:

https://brainly.com/question/28267043

#SPJ11


Related Questions

A magnetic field is formed when electric charges move. When the electric charges stop moving, the magnetic field (which was formed by the moving charges) ceases to exist. True or False​

Answers

True

Explanation:

when electrons stop.moving it cause a stoppage

in formation of magnetic field

i hope.it helps u

The acceleration of an object is ____________________ related to the net force exerted upon it and _____________________ related to the mass of the object.

Answers

The acceleration of an object is directly related to the net force exerted upon it and inversely related to the mass of the object.

answer : directly , inversely

10 POINTS Please AND Will Mark AS BRAINLEST Please

Answers

Answer:

B

Explanation:

The answer:


B



Explanation:

can someone please help:)

1- A positive charge of 3x10-7 is located in a field of 27N/C directed toward the south. What is the force acting on the charge?



2- A positive test charge of 5x10-6Cis in an electric field that exerts a force of 2x10-4N on it.

What is the magnitude of the electric field at the location of the test charge?

Answers

Explanation:

(1) Given that,

A charge, [tex]q=3\times 10^{-7}\ C[/tex]

Electric field, E = 27 N/C

We need to find the force acting on the charge. The force on the charge is given by :

[tex]F=qE\\\\F=3\times 10^{-7}\times 27\\F=8.1\times 10^{-6}\ N[/tex]

So, the force acting on the charge is [tex]8.1\times 10^{-6}\ N[/tex]

(b) Charge, [tex]q=5\times 10^{-6}\ C[/tex]

Force, [tex]F=2\times 10^{-4}\ N[/tex]

Let E be the electric field.

[tex]E=\dfrac{F}{q}\\\\E=\dfrac{2\times 10^{-4}}{5\times 10^{-6}}\\\\E=40\ N/C[/tex]

So, the electric field is 40 N/C.

PLEASE HELPPPP!!!!!!!!!!

Answers

Answer:

I think its B

Explanation:

I’m pretty sure it’s B :)

An object horizontally dragged across the surface by a 100 N force acting parallel to the surface . Find out the amount of work done by force in moving the object through a distance of 8 m

Answers

Answer:

800J

Explanation:

Given data

Force= 100N

Distance moved= 8m

The expression for the work done is

WD= Force* distance

substitute

WD= 100*8

WD= 800Joules

Hence the work done is 800J

What is the mass of an object that has 324 J of energy and is moving at a speed of 9 m/s? Answer:​

Answers

Answer:

the mass of that object = 324 ÷ 9 = 36j

Answer:

36 kg

Explanation:

m=?

KE= 324 J

v= 9 m/s

m= 324 / 9

= 36 kg

Gizmos Warm Up Energy constantly changes from one form to another, but in a closed system, the total amount of energy always remains the same. This concept is known formally as the law of conservation of energy The Energy Conversion in a System Gizmo allows you to observe the law of conservation of energy in action. In the Gizmo, a suspended cylinder has gravitational potential energy. When the cylinder is released, the gravitational potential energy is converted into kinetic energy, which causes the stirrer in the water to spin. 1. What is the initial temperature (T) of the water?​

Answers

Answer:

25 Celsius

Explanation:

A ball is thrown horizontally from the roof of a building 50. m tall and lands
45 m from the base. What was the ball's initial speed?

Answers

Answer:7.92 m/s

Explanation:

A ball is thrown horizontally from the roof of a building 50. m tall and lands 45 m from the base then the ball's initial speed is 14.10 m/s

What is speed?

The rate of change of position of an object in any direction is called speed. Speed is scalar quantity.

speed = distance/time

s=d/t

Where,

s is the speed in m/sec

d is the distance travaled in m

t is the time taken in sec

Given that in the question ball travel a height from building of 50 m to a distance 45 m from the base so total distance travelled is given as 45 m.

Body is travelling downward under the influence of gravity.

Using equation of motion under gravity,

y = ut + ½gt² , where u = 0 m/s in y direction  and

y = ½gt²

t² = 2y / g

t² = 2*50/9.8

t  =  3.19 sec

ball's initial speed in x direction is given as

u = 45/3.19

u= 14.10 m/sec.

The balls initial speed is given as 14.10 m/sec.

To learn more about speed refer to the link

brainly.com/question/28224010

#SPJ2

which of these three words applies to all types of sedimentary rock: weathering, compaction, or deposition

Answers

Weathering is words applies to all types of sedimentary rock.

What is Weathering?

The breakdown or dissolution of rocks and minerals on the Earth's surface is referred to as weathering. Agents of weathering include water, ice, acids, salts, plants, animals, and variations in temperature.

The breakdown or dissolution of rocks and minerals on the Earth's surface is referred to as weathering. Agents of weathering include water, ice, acids, salts, plants, animals, and variations in temperature.

The effects of weathering and erosion cannot be resisted by any rock on Earth due to its softness. These processes combined to carve famous sites like Arizona's Grand Canyon.

Therefore, Weathering is words applies to all types of sedimentary rock.

To learn more about weathering, refer to the link:

https://brainly.com/question/12963930

#SPJ2

If the net force acting on an object is zero, its inertia is also zero.
True or false

Answers

Answer:

its false

Explanation:

Cadmium has eight naturally occurring isotopes. What do the isotopes have in common?
A.
atomic mass
B.
mass number
C.
number of protons
D.
number of neutrons

Answers

C, their number of protons is the same but the neutron numbers change (thats what makes them isotopes)

The isotopes of any element have same number of protons inside them.

What is Cadmium?

Cadmium is a chemical element with the symbol Cd and atomic number 48. It is soft, silvery and white metal.

Given is about Cadmium that it has eight naturally occurring isotopes.

Isotopes are the atoms of the same element which have same number of protons in them but the number of neutrons are different. Isotopes usually have same chemical properties, but they have different physical properties. Their can be stable and unstable isotopes. These unstable isotopes are also called radioisotopes, since they emit radiation. Thus, the isotopes have same number of protons.

Therefore, the isotopes of any element have same number of protons inside them.

To solve more questions on isotopes, visit the link below-

https://brainly.com/question/20596678

#SPJ1

Put the following objects in order from smallest
Wrong order
Milky Way
Earth
Moon
Jupiter
Universe
Sun
Comet
Solar System

Answers

Moon

Earth

Sun

Comet

Jupiter

Solar system

Milky Way

Universe

If the voltage of a circuit is 6V, and the power is 4W, what is its resistance?

Answers

Answer:

9 ohms

Explanation:

P = V²/R

R = v²/p = 6²/4 = 36/4 = 9 ohms.

The resistance is 9 Ohm.

To find the resistance, we need to know about the power in term of resistance and voltage.

What is the value of power in terms of resistance and voltage?We know that power=work/timeElectrostatics work is given as voltage ×charge. So, power=(Voltage×charge)/timeAgain, charge/time is given as current. So, power = Voltage×currentFrom Ohm's law, we know that current=voltage/resistance. So, power= voltage ²/resistance. What is the resistance, if power is 4W and voltage is 6V?Resistance in term of power and voltage is given as Resistance= voltage ²/powerSo, resistance=6²/4=36/4= 9 Ohm

Thus, we can conclude that the resistance is 9 Ohm.

Learn more about the electrical power here:

brainly.com/question/16054310

#SPJ2

5
Drag each tile to the correct box.
Adam takes a bus on a school field trip. The bus route is split into the five legs listed in the table. Find the average velocity for each leg of the trip.
Then arrange the legs of the trip from highest velocity to lowest:
Leg Distance (km) Time (min)
A 18
9
B 25
15
C С 24
8
D
48
12
E
15
7
leg A
leg B
leg C
leg D
leg E
Reset
Next

Answers

1) D
2) C
3) E
4) A
5) B

Answer:

1) D

2) C

3) E

4) A

5) B

Explanation:

Hope this help!

Mercury has a radius of 2.43x10^6 m, and a mass of 3.2x10^23 kg, what is Mercury's acceleration due to gravity?

Answers

I think that you need the gravitational acceleration of mercury

so we will use Newton's gravitational law :

gravitational acceleration = [tex]\frac{G * m}{r^{2} }[/tex]

G is the gravitational constant = G = 6.673×10^-11 N m^2 kg^-2

after substitution :

6.673×10^-11 * 3.2x10^23 / (2.43x10^6)^2

using calculator :

gravitational acceleration of mercury = 3.61625 m/s^2

pls give me brainliest

Please help. Will give branliest!!

Which action is an example of a force that operates at a distance.

A. A baseball thrown by a player.
B. A pebble falling to the ground
C. Fish swimming in the water
D. A sailboat sailing on a lake

Answers

An action which is an example of a force which operates at a distance is a pebble falling to the ground. Thus, the correct option is B.

What is force?

A force is an influence which can be changed upon with the motion of an object. A force can cause an object with some amount of mass to change the velocity of the object, i.e., to accelerate the object. Force can also be described as a push or a pull of the object. A force is a vector quantity because it has both the magnitude and direction.

A pebble falling to the ground level is an example of the force which operates at a specific distance. A force applied on the pebble covers some distance.

Therefore, the correct option is B.

Learn more about Force here:

https://brainly.com/question/13191643

#SPJ1

a right circular cylinder with a radius of 2.3cm and a height of 1.4cm has a total surface area of ​

Answers

Answer:

6.44pie

Explanation:

[tex]2\pirh[/tex]

the total amount of energetic does not change. this is known as the principle of (blank) energy

Answers

Answer:

Conservation

Explanation:

A player throws a basketball with a force of 30.0 N. If the mass of the basketball is 0.625 kg, what acceleration (in m/s) does the player give to the ball?​

Answers

Answer:

your answer should be 48 m/s.

Explanation:

the total for was 30N and the formula for force is F=m*a divide the force by the known, in this case the mass. 30/0.625=48 m/s

Use Newton’s First Law of Motion and the concept of inertia to explain what happens to a person in a head-on car accident who is not wearing a seat belt. How does wearing a seat belt help?

Answers

Answer:

Newtons first law of motion explains what happens in a car crash because it basically states that the passenger will continue to travel at the same velocity until an unbalanced force acts on he or she. The force that will act upon he or she would be the window, so you should always wear a seat belt!

Explanation:

According to Newtons first law of motion, a passenger tends to continue in the state of uniform motion even after the accident which causes the passenger to move forward.

According to the Newtons first law of motion, an object will continue in a state of rest or uniform motion unless it is acted upon by an external force. This is also known as the law of inertia.

While in a car undergoing uniform motion and suddenly the car is involved in an accident which causes the vehicle stop abruptly, a person suddenly moves forward because of the tendency to continue in the former state of uniform motion according to Newtons first law.

A seat belt helps to prevent the person from suddenly moving forward in a way that may lead to injury as a result of the accident.

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

What does it mean to be a carrier?

Answers

One that transports or conveys: baggage carriers; a message carrier. 2. One, such as a person, business, or organization, that deals in the transport of passengers or goods. 3. A mechanism or device by which something is conveyed or conducted.

A 0.6kg ball accelerated at 55 m/s​ 2​ . What force was applied?

Answers

Answer: 33N

Explanation:

Newton's second Law of motion F = ma

F = (0.6)(55) = 33N

A 10 kg boat is moving 3 m/s. Find kinetic energy. Use KE = (mv^2)/2 ​

Answers

KE = 1/2 (mv^2)

m= 10kg, v=3m/s

10 * (3^2) = 90

Again, KE = 1/2 (mv^2)

1/2 (90) =

45 Joules

A scientist wants to study the movement of air in a hurricane in order to help prevent damage. Which tool should the scientist use to find out more about the movement of air?(1 point)

a computer model

a barometer

a levee

a Doppler radar

Answers

Answer:

B

Explanation:

IM PRETTY SURE it is B

The scientist should use a barometer to learn more about the movement of air. A barometer is a scientific instrument that measures the pressure of air in a particular environment.

What a barometer is used for?A barometer is a scientific instrument that measures the pressure of air in a particular environment. Short-term weather changes can be predicted by the pressure tendency. In surface weather analysis, many air pressure measurements are used to help locate surface troughs, pressure systems, and frontal boundaries.Furthermore, just as air flows out of the high-pressure environment inside an inflated balloon if the opening is not tied, air in the atmosphere will move to a lower pressure area, resulting in wind. An anemometer is a device that measures the speed of the wind. The readings on each of these digital barometers are slightly different! Layers of air wrap around the Earth to form the atmosphere.

To learn more about Barometers, refer to:

brainly.com/question/28877775

#SPJ2

What is a curved line in velocity time graph represent?

Answers

A curved line shows the slope is constantly changing. Think about it - an upward curve shows the slope is pretty flat at first but it gets very steep as time increases.

So what is the slope of a Vt graph represent? Well, slope is rise over run, aka delta V over delta t. That’s just the formula for acceleration.

We know the slope is changing, and the slope is acceleration, therefore we can say that the acceleration is changing.

It turns out that if you graph this changing acceleration with time, the acceleration changes at a constant rate - it’s linear, NOT a curve. (If you have specific values you could plot this, but if you’re just talking about general graphs, then just take my word for it).

In summary - if you’re velocity is changing at a non constant rate, then you’re acceleration must be changing (at a constant rate).

Hope this helped!

what is the si unit of loudness of sound​

Answers

Answer:

We know that loudness is directly proportional to amplitude and SI unit of amplitude is Decibel So unit of loudness is decibel

Answer:

volume

Explanation:

the si unit of sound is volume

Which was a common goal of Spanish and British explorers in the Southeastern region of North America?
OA. to convert American Indians to Catholicism
ОВ.
to discover gold
OC. to cultivate tobacco
OD
to prevent French settlement of Florida

Answers

Answer:

B

Explanation:

To discover gold

A child pushes a 2.2kg swing that is initially at rest. The net force on the swing over time is shown below. What's the swings speed at t= 40ms

Answers

Answer:

The answer is "[tex]\bold{0.36363 \ \frac{m}{s}}[/tex]"

Explanation:

Please find the attached file of the complete question:

Given:

[tex]m= 2.2 \ kg\\\\t= 40 \ ms[/tex]

Using formula:

[tex]\to F=ma[/tex]

       [tex]= 2.2 \ (a)\\\\= 2.2 \ \frac{dv}{dt}[/tex]

but  

[tex]\to F= f(t)\\\\[/tex]

[tex]\to 2.2 \ a= f(t)\\\\ \to 2.2 \ \frac{dv}{dt}=f(t)\\\\ \to \int^{v}_{0} \ dv =\int^{t= 40 ms}_{0} (\frac{f(t)}{2.2}) \ dt\\\\[/tex]

[tex]\to v= \frac{\text{(Area of given graph)}} {2.2} \\\\[/tex]

      [tex]=\frac{1}{2} \times \frac{1}{2.2} \times 40 \times 40 \times 10^{-3} \ s\\\\= \frac{1}{4.4} \times 40 \times 40 \times \frac{1}{1000} \ s\\\\= \frac{1}{4.4} \times 16 \times \frac{1}{10} \ s\\\\= \frac{16}{44} \ s\\\\= 0.36363 \ \frac{m}{s}[/tex]

Susan said, if I fertilize my geranium plants, they will blossom

Answers

Answer:

I don't know what you're asking, but I will try my best.

If Susan fertilizes her geranium plants, it will help them blossom. If she over-fertilizes them though, they will die. But yes, in general, they will blossom if Susan fertilizes her geranium plants.

Other Questions
An ordinary ruler is used to measure the area and its error of a rectangle. It is found that their sides are 5.0 cm long and 2.0 cm width. The error in area (in cm) is please help!!!!!!!!!!!!!!!!!! How do the intellectual revolution change societies? solve for x or find x What is the clarinet a flat concert scale? What is x in 2. pls help me What crop was in high demand during 1500-1700? In the video adaptation of Bigfoot and Me, what is the purpose of the narrator's journey on foot through the town?to provide a visual backdrop that supports the story's meaningto give the audience something interesting to look at while the woman talksto provide important clues to the real location of Bigfootto mislead the video's audience about the woman's situationThe correct answer is `` to provide a visual backdrop that supports the story's meaningI hope it helped someone. cosas que te dan alegra 2NaCl 2Na +Cl2What reaction is this Clare is painting some doors that are all the same size. She used 2 liters of paint to cover 1 and 3/5 doors. How many liters of paint are needed for one door? Consider drawing a model to help you solve the problem. Graphx= -7yPlease help Miguel has six times Davids money, while Lisbeth has two dollars less than David. The sum of their money totals $77. To the n was rest penny, how much money does David have? Which of the following is not a valid conversion factor? find the measure of the anglePLEASE HELP!!!I-ready! HELP PLEASE!!!what is the outcome when a person defaults on a home loan?A. the person goes to jail.B. the bank will make the person work a second job.C.the bank will take the person's car.D.the bank will foreclose on the home. Complete each ratio table.2842563.514112.856.414.12,8201,410 1. What are 5 sources of natural gas used today. Two examples of energy transformations are shown. At left, a floor lamp plugged into a wall electrical outlet. At right, a wood fire. The energy transformations are similar because they both involve transformations that begin with chemical energy. begin with electrical energy. result in radiant energy. result in mechanical energy. Which of the following best explains the impact the necessary and proper clause has had on congressional power?A. It has broadened the power of Congress by allowing it to limit the executive branchs ability to commit the i United States to an armed conflict B. It had weakened the power of Congress by allowing the Supreme Court to declare any law unconstitutional. C. It has broadened the power of Congress to enact legislation addressing a wide range of economic, environmental, and social issues D. It has weakened the power of Congress by restricting it to only those powers listed in the Constitution.