Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Section IlI Programming (30 POINTS) 1. Write an application that inputs three integers from the user and displays the sum, average, product, smallest and largest

image text in transcribed
Section IlI Programming (30 POINTS) 1. Write an application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers. [Note: The calculation of the average in this exercise should result in an integer representation of the average. So if the sum of the values is 7, the average should be 2, not 2.3333. Sample Output Program Template Enter first integer: 10 Enter second integer: 20 Enter third integer: 30 For the numbers 10, 20 and 30 Largest is 30 Smallest is 10 Sum is 60 Product is 6000 Average is 20 2. Write an application that inputs from the user the radius of a circle as an integer and prints the circle's diameter, circumference and area using the floating-point value 3.14159 for . Use the techniques shown in Fig. 2.7. [Note: You may also use the predefined constant Math.Pl for the value of . This constant is more precise than the value 3.14159. Class Math is defined in package java.lang. Classes in that package are imported automatically, so you do not need to import class Math to use it.] Use the following formulas (r is the radius): diameter=2r circumference. 2nr Sample Output Enter radius: 3 Diameter is 6 Area is 28.274334 Circumference is 18.849556 area Using JAVA Please give me the code for both 1 &2 and give me the code and the screenshots of program running. Please do answer both and I need it as soon as possible. Thank you so much. Please

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions