Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My programs compile but I don't think I'm doing the questions right, need help asap. Appreciated and will thumbs up! Thank you. Question 1: Inverted

My programs compile but I don't think I'm doing the questions right, need help asap. Appreciated and will thumbs up! Thank you.

image text in transcribed

Question 1: Inverted String Class [Invstring.java] - 20 points Write a Java class that appears like the String class however, when printed it reverses the sequence of characters. An example of how your class will behave is given below: InvString s= new InvString ("This is a test"); System.out.println(s); The output will be: Tset a si siht Question 2: Circle Class [Cicrle.java] - 10 points Write a Java class that represents a circle. Objects of the class will be circles of a given radius. The constructor will take two arguments, a label for the circle and its radius. When printed, the circles will display information about their Radius, Area, and Circumference. An example of how your class will behave is given below: Circle c=new Circle("My Circle", 20); //Radius is 20 System.out.println (c) ; The output will be: My Circle RadiusAreaCircumference:20:1256.64:125.66 The area can be calculated using the formula r2. The formula for circumference is 2r where r is the circle's radius

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

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago