Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for the first picture i need help with question 3 java programing. and for the other distance, cirlce problem i need solution in C++class/OOP object-oriented

for the first picture i need help with question 3 java programing. and for the other distance, cirlce problem i need solution in C++class/OOP object-oriented program. thank you please answer both.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write a los program to do the following Ceased Cree with the lengte Acomputed to create the date of cicle Theme Apr computer to the scheine multiplied by the part of the ti. Dette math domestie A plette ferentemente care nu se deference of acide The circumference of a circle can be pregled by mice the theath . Apabila kumdhal but will nel de tandens based on a valathu pod obic This mal de to call me well methods and yet strand is These mods will return the values for radies, diameter, sro Acom at sets the sto alcaldes the incide Chatea class med Testimele in the This method will display the audience a circle These values need to be displayed in acele af dow . Write a method med inputs artesanesent af type this method uit prompt the it for a ratus vahetatud will set the radial heated how the value Declaratii electing the cathed Display the dancers and circumference of this . Precipe the serie de vacances of the little Display the new radius, diameter accumference the best You output stakey like the place the best pape Sample Kircle Chart Redingt Planet TIPS File Chat uns Ciele Clara IN You will smiths including the Creathe the link in lackhand Write solution for a problem following. Xy and ya are the x,y coordinates for one point x and y, are the x,y coordinates for the second point, d is the distance between the two points. d=/(x2 - x2)2 + (Y2 - Y, )2 (X2, 12) Create a function that will calculate the distance between to points on the Cartesian Plane. Create a function that will find the circumference of a circle that uses the distance function as the radius. Create a function that will find the area of a circle that uses the distance function as the radius The program should input the x and y values of the two points. The should then call distance function to return the radius of the circle. Then the area and circumference function to return the area and circumference of the circle. Write a Java program to do the following Create a class named Circle with the following Private flichtsumedad, neter and area A prin compute: Amater method to calculate the diameter of cincle. The interes cascle is twice the Aprivate computera) method to calculate the area of a circle. The area of a cicles multiplied by the square of the radias. Use the Math can I crestant for this calculate A public et circumference) method to calculated seturn the circumference The circumference of a circle can be calculatod as multiplied by twice the time that I content for this calculation A public stadium method that will set the radio based on a value that is the method. This method also need to call the competenter and computer methods Public methods and get togester and gette. These return the values fieradies, diameter and are A constructor that sets the radius tol and calculates the diameter and are Create a class med Test Circle using these instructions Write a method named print characteristics that starpment of type This method will display the radio, ameters and conference of a Circle These values need to be displayed to 3 decimal places se emple of output below) Write a method named inputRadlus that takes a single argument of Circle Thisted will prompt the user for a tadius value and will set the ratio of the Caretes that al Declare instantine Circle object using the method Display the medios, diameters and circumference of this object Prompt the user for andis value and set the radius of the object to the Display the new radius, diameter, area and circumference of the object Your output metoksactily like the pictures on the next page Sample Ele Garterialet He Circunference! 6.212 Entre as wel: 1.5 Cie Characteristics Planter Circunference: 1.405 Cine Characters Rall Circle Chapter til 12,1 Circular Rent 4.4 3. Write a lova program do the following: Create a choimod Circle with the following content . Prowe ficids named tradius. diameter.md area Attelameter) method to call them cace. The Circle is twice the A precomputere med at the face. The area of acades multiplied by the thedin. Use the other for the cake A public getcircunference method to calculate and returned The circumference of a circle can be calculated as a moltiplied by twice the main the heath class constant for this cal . A public stated that will the that is the ted. This method to call the competenter and compete methode Public methods and gets.getDiametezt und gute Testa retum the values Finder, diameter and are A constructent that the radius sodalestates the diameter andre Create a clismo Testing these inte Write a method imel pit Characteristics that of type ici This method will display the radi diameter and circumference These values need to be displayed to decimal place sample of cup below) . We a metod med inpatials that takes pemesteltype tested will prompt the foram valand will then the circle of the Declare instantiate Crecte objeding the committed Display the is, dancer, area and circumference of this otot Prept the user for a valus vahet, und deres of the totale Display the new radius, diameter and circunference of the object Your cutpat must look exactly like the pictures on the next page Sample Barcle Characters Lamp ATA 1.143 Circle 6.23 Cine Claralustest Reus 1. Dlater 3. 7.INY Circunference 205 Sree Characteristics ad Circuit 6.363 Earlie Characteristics 6.590 e Circene! 41

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions