Does the numeric value entered need any type of validation


Problem:

In the following exercises,you answer questions to determine the design of a Java program.Each exer- cise may have several correct answers.The answers you choose will determine your program design.

Required:

Part 1- Suppose a user wants to calculate the square of a number or the square root of a number,and dis- play the results.To design this problem,what do you need to know about the predefined methods that have this purpose?

Part 2- The user will also enter a character value to designate which process is wanted.Should you make any assumptions about the case of the character entered? Would that require using any other pre- defined method?

Part 3- What variables do you need for user input and for calculations? What types are these variables?

Part 4- The program should process at least one number,and the user should be allowed to continue pro- cessing numbers until a value is entered to quit.What kind of loop works best in this situation?

Part 5- Does the numeric value entered need any type of validation? Is that validation dependent on which math method is to be called?

Please describe what variables do you need for user input and for calculations.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Does the numeric value entered need any type of validation
Reference No:- TGS0892926

Expected delivery within 24 Hours