1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shalnov [3]
4 years ago
12

Rearrange the statements in the following order so that the program prompts the user to input: a. The height of the base of a cy

linder b. The radius of the base of a cylinder The program then outputs (in order): a. The volume of the cylinder. b. The surface area of the cylinder c. Format the output to two decimal places.
Computers and Technology
1 answer:
NeTakaya4 years ago
5 0

Answer:

import java.util.Scanner;

public class num5 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter base heigth of the cylinder");

       double heigth = in.nextDouble();

       System.out.println("Enter radius of the cylinder");

       double radius = in.nextDouble();

       // vol = pi*r2*h area = 2π r h + 2π r².

       double volCylinder = Math.PI*(radius*radius)*heigth;

       double surfaceAreaCylinder = (2*Math.PI*radius*heigth)+

               (2*Math.PI*(radius*radius));

       // Outputs

       System.out.printf("The Vol of the cylinder %.2f \n",volCylinder);

       System.out.printf("The surface Area %.2f \n", surfaceAreaCylinder);

   }

}

Explanation:

The program is written in Java.

Prompt user for height and radius of the cylinder. Store in the repective variables

Calculate Volume of the cylinder

Calculate Surface Area

Using Java's printf function to output result to 2 decimal places

You might be interested in
In the past, data was transferred from OTLP databases to data warehouses periodically, say once a month or even once a week. Now
Vinvika [58]

Answer:

Active is the correct answer of this question.

Explanation:

In active database is a database that contains a tournament-driven infrastructure that can adjust to circumstances within the database and beyond. Alternate  include safety tracking, contacting, collecting and approving information.A move is towards active or real-time data storage so that applications can evaluate and help decision making use of current data.

3 0
4 years ago
Can any software run on any processor
jekas [21]

Answer:

Yes.

Explanation:

Your software requires CPU instruction if CPU doesn't provide that instructions the software won't work/run.

hope this helps you

have a great day:)

6 0
3 years ago
8. Suppose you've created a bulleted list, but the bullets are too close to the text. What is the best way to fix this?
Juliette [100K]

To fix a bulleted list that are too close to the text, you need to add space using the space key on your keyboard or adjust the indentation bullets on the ruler.

<h3 /><h3>How to add spacing in MS Word?</h3>

To format a bulleted list in this software, it is necessary to use the context menu by clicking with the right mouse button and displaying the List Paragraph dialog box, located in the styles panel, which makes it possible to adjust and apply the ideal spacing.

Therefore, you can use additional formatting on List Paragraph and adjust your work to your preferences.

Find out more information about MS Word here:

brainly.com/question/1538272

5 0
3 years ago
​When converting plain text to hexadecimal for use with ProDiscover, you need to place ____________ between each character's hex
mina [271]

Answer:

Null(00) is the correct answer to the following blank.

Explanation:

Because when we changing the plain text into the hexadecimal then, we have to place null(00) to use with pro-discover in the middle of each and every hexadecimal value. We use null(00) because the null value contains 0(zero) or having no value.

So, that's why the following answer i.e., null(00) is true.

3 0
4 years ago
A 'deny any-any' rule in a firewall ruleset is normally placed: a. Nowhere in the ruleset if it has a default allow policyb. Bel
tia_tia [17]

Answer:

D. . At the bottom of the ruleset

Explanation:

The main purpose of firewalls is to drop all traffic that is not explicitly permitted. As a safeguard to stop uninvited traffic from passing through the firewall, place an any-any-any drop rule (Cleanup Rule) at the bottom of each security zone context

6 0
4 years ago
Other questions:
  • A knowledge and skills test is a tool support managers use when selecting new employees; it measures an applicant's understandin
    13·1 answer
  • Reflexes are basically "hard-wired" into the CNS. Anatomically, the basis of a reflex is an afferent neuron that synapses direct
    10·1 answer
  • This is important I need help please
    14·1 answer
  • Which of the following is a component of slides
    10·1 answer
  • How many four-digit personal identification numbers (PIN) are possible if the PIN cannot begin or end with a 0 and the PIN must
    6·1 answer
  • Which route of entry could chemicals use to enter through the body’s airways?
    8·1 answer
  • The derivative of <br><img src="https://tex.z-dn.net/?f=ln%20%5C%3A%20%20%7Cx%7C%20" id="TexFormula1" title="ln \: |x| " alt="l
    7·2 answers
  • Which of the following statements about version control are true? Select 3 options.
    7·2 answers
  • if you put a drone on the charger at 8:12 and take a break at 10:03 how long is it on the charger. for
    7·1 answer
  • UCLA Extension's marketing department wants
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!