java code"User interface" create a main class called MainUI code a method called startRobots,which will decleare and initialise the following                        2 robots:kuratas 1350 and megabot 1700 print the toString to display the details of both robots to the user(use JOptionpanel) code a method called startBooks which will create the following two instances of books and display them to the user (using JOptionpane)           title:hello world,author:ada,copies:120          title:it ,author;study ,copies:1 in the main method write code to display a menu option prompting the user to choose which program to run as follows               press 1 to view:Robots              press 2 to view:Books              press 0 to:  Exit

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 8E: Create an application named TurningDemo that creates instances of four classes: Page, Corner,...
icon
Related questions
Question

java code"User interface"

  • create a main class called MainUI
  • code a method called startRobots,which will decleare and initialise the following

                       2 robots:kuratas 1350 and megabot 1700

  • print the toString to display the details of both robots to the user(use JOptionpanel)
  • code a method called startBooks which will create the following two instances of books and display them to the user (using JOptionpane)

          title:hello world,author:ada,copies:120

         title:it ,author;study ,copies:1

  • in the main method write code to display a menu option prompting the user to choose which program to run as follows

              press 1 to view:Robots

             press 2 to view:Books

             press 0 to:  Exit

Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT