Question: Q01: (a) Write a java program that perform arithmetic on two numbers such as 3124567890 and 3124567898, and displays the result. C:UsersjannaDesktopProgramming in JavaMid Term

 Q01: (a) Write a java program that perform arithmetic on two

Q01: (a) Write a java program that perform arithmetic on two numbers such as 3124567890 and 3124567898, and displays the result. C:\Users\janna\Desktop\Programming in Java\Mid Term Exam\Q3>java AddNumbers Calculations... Addition: 6249135788 Subtraction: -8 Division: 0 Remainder: 8 (b) Write a program that check the type of the value and determine the data type of the value. In this program, you will develop a Type checking program based on a class called Type. Create another class called Type Tester in which main method is defined that includes the following code: class Type Tester public static void main(String[] args) { Type theType = new Type(); theType.printType(true); If the argument of theType.printType(true) is true or false, it will invoke a method inside Type class and print a message true is a boolean. If it is string Hello World then it should display "Hello World is String". The sample output format is as follows: C:\Users\janna\Desktop\Programming in Java\Mid Term Exam\Q1>java Type Tester true is a boolean (c) Write a java program that ask user to input number of bits, apply formula of calculating range in order to display the range from -ve value to +ve value and print a message the range is for byte or short or int or long, etc. For example, the sample output format is as follows: C:\Users\janna\Desktop\Programming in Java\Mid Term Exam\Q2>java Range Please enter the number of bits: 8 - 128.0 to 127.0 The range is for Byte

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!