Question

note which line the user inputs and presses enter
• area = radius * radius * pi
• volume = area * length
Sample Run:
Enter the radius and length of a cylinder: 5.5 12
The area is 95.0331
The volume is 1140.4

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: how can I create comments in python?

A: In python, # character is used to start the single line comments. Place a hash symbol in front of a ...

Q: Imagine you’d like a contractor to build a software application for you that operates like Windows C...

A: Statement of objectives (SOO):It provides an overall objective which serves as the basis for the sta...

Q: rewrite the function F = (A ⊕ B) ⊕ C without the XOR operator, ⊕.

A: The XOR operator is defined as 1 ⊕ 1 = 0, 1 ⊕ 0 = 1, 0 ⊕ 1 = 1, and 0 ⊕ 0 = 0. As the output is true...

Q: A sequential circuit has an input (X) and two outputs (S and V). X represents a 4-bit binary number ...

A: Solution:The following code is described about the behavioral Verilog description for given state gr...

Q: Based on Program.Py below, develop a list of requirements that could have been used to create the or...

A: Requirements are statements or items that shall be used or that a system needs while writing a progr...

Q: 1. What is the output of the following code? (A)for (int i = 1; i < 4; i++) {System.out.println("...

A: Since multiple questions have been asked and it is not clear which one question you want to be answe...

Q: Consider different risk mitigation strategies for system development programs. What type of strategy...

A: Risk mitigation: Let’s start to discuss about the risk . Risk is a possibility of loss which occurre...

Q: Write a program called StudentTable that prints the below table. Use only print() orprintf(). DO NOT...

A: The program in Java would be using print and printf statements with formatting for left alignment of...

Q: how do you known when you need to use int and float? I know that int refers to intergers and float r...

A: “input” keyword in Python:In Python, the function which is used to read the input from the keyboard ...

Q: Which of the following is true? I. The 80/20 rule states that 80% of the instruction is executed and...

A: 80/20 rule was first introduced by Vilfredo Pareto and therefore in also commonly known as Pareto pr...

Q: Reliability and safety are related but distinct dependability attributes. Describe two important dis...

A: Reliability: It refers to “quality changing over time “ means reliability always varies over time, i...

Q: Consider the UDP header 12 03 00 OF 00 1E A3 10. What is the total length of the UDP? a) 32 bytes b)...

A: Consider the given:The given User Datagram Protocol header is “12 03 00 0F 00 1E A3 10”.

Q: prove algebraically(w'+x+y')(w+x'+y)(w+y'+z)(w+y'+z)=x'y'+wx+xyz+w'yzthe question is from fundamenta...

A: LHS = (w'+x+y')(w+x'+y)(w+y'+z)(w+y'+z)Applying idempotent law (A+A) = AWe get by dropping the last ...

Q: Write a program called ListEvenNumbers wich prints the even numbers from 20 to 30 (including 30). an...

A: As there is no programming language mentioned, we are doing this program in java to print even numbe...

Q: Write a program called StudentTable that prints the below table. Use only print() orprintf(). DO NOT...

A: The "print()" and "printf()" function are available in C language and "println()" function is only a...

Q: a. Assuming that x is 1, show the result of the following Boolean expressions.(true) && (3 &...

A: a. The result for the following Boolean expressions:Assuming x = 1(true) && (3 > 4)3 is n...

Q: I need help with this problem I attatched the sample output Exempt You will be writing a program to ...

A: Program plan:Display the welcome statementGet the average value from the user and check the average ...

Q: Don't really know how to start solving this problem.

A: Using 4 bit counter we can implement a modulo 12 synchronous counter by ensuring that all the flip f...

Q: Consider the sender A transmits 12 data packets to B using stop wait protocol. If every 3rd packet i...

A: Analysis:In stop and wait protocol, the data packets will be transmitted as follows:1, 2, 3, 3, 4, 5...

Q: Consider a 4-way set associative cache made up of 64-bit words. The number of words per line is 8 an...

A: Cache size:The cache size can be calculated using the following formula:

Q: public class TestAverage {public static void main(String[] args) {int test1, test2, test3, sum;Scann...

A: The objective of the program is to calculate the average, now since the variable which holds the ave...

Q: I need help figuring out how to summarize the content and format of a written technical report.

A: While we are writing a technical report we need to figure out the following points.The title page of...

Q: What is the complement of the function F X7+ (X+TZ)+7? a) (XF( Z)).Y b) (X+F Z).Y c) (+ Z))Y d) .T+Z...

A: Complement of the function:The computation of complement of the given function is provided below:

Q: What is the CPU time if the number of instructions executed by the program is 500 cycles per instruc...

A: CPU time:The formula for computing the CPU time is provided below:

Q: write a program to convert between KPHand MPH in either direction.If you are driving across the bord...

A: Hey..We have following important points to solve this problem using java programming:We are using  s...

Q: Assignment: Carefully read the instructions and write a program that reads the following information...

A: The following program is compiled in replit and also Eclipse.Pseudo code:Get the inputs from the use...

Q: Assume the following declarations and initializations (MIN, MAX, num) are made just before each sub-...

A: 1. Program plan:Define the class.Define the “main()” function.Initialize the necessary variables.The...

Q: Consider the client A sends the data of 12 bytes to the sender B using the UDP. What is the efficien...

A: Efficiency:In User Datagram Protocol (UDP), the formula for computing efficiency of the transmission...

Q: For this program you need to use Eclipse

A: The program has the following algorithm:Declare the necessary variables within the “main()” function...

Q: Show the output of the following code: Explain brieflyint a = 6;int b = a++;System.out.println(a);Sy...

A: The Output of the given code is shown below along with the code. To run the given code, it is import...

Q: For this program you need to use Eclipse. Carefully read the instructions and write a program that r...

A: The program has the following algorithm: In the main method do the following operations,Get the empl...

Q: Assume that a firm has already implemented a KMS system, as a manager, how do you ensure that learni...

A: The given case study describes the internal knowledge assets of the organization and details about t...

Q: how to implement a KMS system at any firm where employees can use it but not depend on it

A: Ans. Knowledge management system:Knowledge management system deals with storing and managing data or...

Q: What could be the value of the register Stl after executing the instruction SLL $t1, $t0, 1 if the v...

A: A Shift left logical (SLL) of one position moves each bit to the left by one.After executing the giv...

Q: The following print code is to find out the ASCII code, character for the decimal codes,and comparis...

A: Reasons for displaying given output for each line of code: For “System.out.println((int)'1');”: From...

Q: Write a class, AgeMessages , which does the following:a. Ask the user to enter age using a Scannerb....

A: The algorithm for the program would be as below:Declare one float variable for accepting user inputP...

Q: Why is binary search algorithm better than sequential search?

A: Sequential search algorithm involves visiting each and every element of the list of elements and see...

Q: Hello, I am trying to write a program: Write a .py file like MainFiles.py In that .py, create a func...

A: A python file is created named as MainFiles.py:Def main( ):Print(“ Welcome to python”)The above pyth...

Q: Do you think technologies like Big Data and Predictive Analytics in Marketing would have worked 10-1...

A: The technologies like Big Data would not have worked 10-15 years back as due to lack of large datase...

Q: Im using python and i need to 1)Fill the function definitions 2) Fill in the missing code in main() ...

A: Program Instructions:Use math.pi to calculate the area and circumference of the circle.Use ‘“{:,.2f}...

Q: Describe two concepts for an autonomous transportation and/or delivery that replaces manned systems....

A: Autonomous transportation is the evolution of transport where the vehicles are connected to create a...

Q: Use Eclipse for this program

A:  Step 1: Import required package.Step 2: Define “AnalyzeNumbers” class.Step 3: Define main function....

Q: Which of the following statements are true? In PC relative addressing mode, the PC and constant need...

A: In PC relative addressing mode, the effective or branch address is obtained by adding offset to PC t...

Q: What is the reduced form of the function F X(XY)+X(X+Y)? a) Y b) X c) 0 d) 1

A: Reduction:The reduced form of the function “F” is computed as follows:

Q: What is the output of the following code? def test_func (*a) print (a[0]) test_func1,2,3,4) test fun...

A: Consider the given code:#Function definition test_func()def test_func(*a):    #Print the output    p...

Q: Write a program called KiloToPoundTable that prints the below table. Useprintf()and while statement....

A: A constant is defined for holding the conversion factor. printf function is used to format the print...

Q: What is DPI

A:  DPI means Dots Per Inch which measures the number of dots placed within squared region of 1-inch di...

Q: Write a program in Eclipse called LoopMethod (main method) that contains a method called printNums (...

A:  Algorithm: Step 1: Import required package.Step 2: Define “LoopMethod” class.Step 3: Define main fu...

Q: this is a problem that I have how would I go about solving it? Stadium Seating There are three seati...

A: Algorithm: Include required header files.Define main function.Initializes the seat prices for class ...

Q: I need  crow ERD Model with PK, FK and Referential integrity Arrow Electronics is a consumer electro...

A: The 8 entities are indicated below with only their unqiue identifier (underlined) and one or more ot...