Question: 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

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 Radius : 20 Area : 1256.64 Circumference : 125.66 The area can be calculated using the formula pr2 . The formula for circumference is 2pr where ris the circle's radius. Question 3: Dice Class [Dice.java] 10 points Write a Java class that represents a six-sided dice. The class will have a no-arg (without arguments) constructor. The dice will have a method public void cast(){}. The cast method, when invoked, will set the internal state of the dice with a random number between 1 and 6. When printed the dice will display its random value. Dice d=new Dice(); d.cast(); System.out.println(d); The output will be: The value is: 6 The number will remain the same until the cast method is called again. This article shows how to generate random numbers in Java. https://www.geeksforgeeks.org/generating-random-numbers-in-java/ Question 4: User Manager (UserManager.java) 35 points When executed, your program should display a menu of options: 1 Register User 2 List Users 3 Exit Please enter your choice: The user of the program should be able to enter a choice between 1-3. Any number entered other than 1-3 should be ignored and menu options repeated. 1 - Register User If option 1 is selected, your program will ask for the following information: Enter the first name: Jane Enter last name: Doe Enter email address: jane.doe@csudh.edu Once the user has entered information the following confirmation will be displayed, and the main menu will be displayed again: Thank you, user Jane Doe (jane.doe@csudh.edu) has been registered 1 Register User 2 List Users 3 Exit Please enter your choice: HINT: There is no upper limit on the number of users that can be registered. Therefore, please use an appropriate data structure to store user information. 2 List Users If option 2 is selected, your program will list all the users registered so far and shows the main menu again, like below: 1 Doe, Jane (jane.doe@csudh.edu) 2 Blog, Joe (joe.blog@csudh.edu) Total users: 2 1 Register User 2 List Users 3 Exit Please enter your choice: 3 Exit If option 3 is selected, your program will exit with a nice message: Thank you for using User Manager, Goodbye

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!