Write a Java program that calculates and displays the results of addition, subtraction, multiplication, division, modulus, bitwise &, or bitwise | operation on two integer values input by the user. The program should prompt the user two integers and the operation to be performed. Here is a sample run:
Enter the first integer: 24 Enter the second integer: 4 Enter the operation: + The results of 24 + 4 is 28
2. (25 points) Write a Java program prompts a user to enter demographic information including year of birth (values 1900-2014), month of birth (values 1-12), day (value of 1-31) of birth, latitude and longitude of home address current grade point average (GPA). Here is a sample run:
Enter your birth year (1900-2014): 1989 Enter your birth month (1-12): 10 Enter the day of the month of your birth (1-31): 15 Enter the latitude of your home address: 38.3658 Enter the longitude of your home address: 75.5933 Enter your current GPA (0.0-4.0): 3.8
******* Thank you our survey ********************************** You have entered the following data: Birthday: October 15, 1989 Address: Latitude 38.3658°, Longitude 75.5933° Current GPA: 3.9
Note the following output application:
1. Integer months have been converted to the correct text values (e.g. 1= January, 2= February 2. The latitude and longitude data included the degrees symbol (°). (Hint: Use Unicode characters)
Language : Javascript
Browser: IE
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more