Question: please follow ALL instructions Programming Assignment 4 Using NetBeans, write a class called 10, in a package called util, containing the methods: getinput(String) getConsolelnput(String), showMessage(String)

please follow ALL instructions
please follow ALL instructions Programming Assignment 4 Using NetBeans, write a class

Programming Assignment 4 Using NetBeans, write a class called 10, in a package called util, containing the methods: getinput(String) getConsolelnput(String), showMessage(String) and showMessage(String, String). The method getInput will be as above; getConsolelnput will do the same but will ask for input from the console and will return a Scanner object. The first showMessage method will be as above; the second will do the same but will also accept a title for the output dialog. Then write a program using the 10 class but in a separate file and in the default package. Your program will first ask the user to enter 2 integers. If both are positive, print the sum. Then it asks for 2 real numbers (float or double); if only one is negative, print the product of the two numbers, if both are negative, print the quotient. Use nested it's where possible. Output must be formatted. All input and output must be done through the methods. All output is to the console and dialog. Good program structure, indentation, a heading and comments are required. Please follow the instructions exactly as given

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!