Write a java program that calculates and displays the result

Assignment Help JAVA Programming
Reference no: EM13773463

1. 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. 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

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)

Reference no: EM13773463

Questions Cloud

The use of a complementary and alternative medicine : How might the use of a Complementary and Alternative Medicine (CAM) model serve as a paradigm shift?
Write paper about mathmatics scientist who invinted algabra : Write one page about mathmatics scientist who invinted algabra. His name is Musa al-Khwarizmi.
State the null hypothesis h0 and the alternative hypothesis : Some of the following statements refer to the null hypothesis, some to the alternate hypothesis. State the null hypothesis, H0, and the alternative hypothesis. Ha, in terms of the appropriate parameter (μ or p). a. The mean number of years Americans ..
Hurricanes,some of the largest storms on earth : Hurricanes,some of the largest storms on earth, are low pressure area with diameters of over 500 miles. the barometic air pressure inches of mercury at a distance of x miles from the eye of a severe hurricane is modeled bu formula f(x) = 0.48 in (x +..
Write a java program that calculates and displays the result : 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.
Explain the commentary context revision and postscript : Explain the Commentary Context Revision and Postscript. You are likely somewhat familiar with this genre because it is a common inclusion in the opinion section of a newspaper.
Personal ethics development : Write a 1,050- to 1,200-word paper on personal ethics development that examines your personal ethical system and ground rules, including its origins and development.
Why health education specialists should act ethically : List and explain two reasons why health education specialists should act ethically. Identify one method professions use to help ensure ethical behavior.
What is gel electrophoresis : What is gel electrophoresis and what is the purpose of using an electrical current in this procedure?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a dim statement that declares a myfriend variable

Write a Dim statement that declares a MyFriend variable named school. Write an assignment statement that  assigns the value in the txtFirst control to the strFirst member

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Java program by array

Write a program that reads in a file that contains one integer per line. Each integer represents one location in the image. Assume that there are 64 rows and 64 columns in the image

  Design a java program that simulates a slot machine

Design a java program that simulates a slot machine. When the program runs, it should do the following: Ask the user to enter the amount of money he or she wants to insert into the slot machine. ? Instead of displaying images, the program will random..

  Cross the dark knight and the living flame of love

What challenges does spain get from the text john of the cross the dark knight and the living flame of love?

  What does the variable x contain

What does the variable x contain at the end of each of these computations? If the code is not legal in Java, say so.

  Java program that implements an algorithm known as a bubble

writing a simple Java program that implements an algorithm known as a Bubble Sort. A Bubble Sort is a simple sorting algorithm that takes an unsorted array of elements and sorts them into ascending order.

  Write a java program in a netbeans project that reads a

write a java program in a netbeans project that reads a text file containing the names and addresses of several people

  Your task for this project is to design a program to help a

your task for this project is to design a program to help a videorental store operatorrecord clients transactions.nbsp

  Prepare a java program to create a bank account

Write a client java program that will use a pre-implemented class BankAccount.java. BankAccount class provides template to create BankAccount objects that represent real world bank accounts

  Implement the employee class and its three child classes

Implement the Employee class and its three child classes (ManagementEmployee, EngineeringEmployee and AdministrationEmployee), with all the necessary attributes and methods.

  Write a java sorting application with two classes

Write a Java Sorting Application with two classes, JavaSort and JavaSortTest. Your JavaSort Class, as a minimum must contain sorting methods for BubbleSort, InsertionSort, ShellSort, MergeSort, and QuickSort.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd