Write a java program to prompts a user to enter information

Assignment Help JAVA Programming
Reference no: EM13762758

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 for the 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

I know how to declare a variable but I have no idea where to learn the rest. Help?!? I need to understand what each line of code does. The same goes for the next

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

Reference no: EM13762758

Questions Cloud

How did schlumberger do its comprehensive planning : How did Schlumberger do its comprehensive planning for a typical offshore well drilling project and how did Schlumberger coordinate product development, service delivery, and people in its global supply chain?
Technical concepts of nanotechnology : Analyze the advantages and disadvantages of each car's technology, price, manufacturing, and impact on environment.
What is the definition of religion : What is the definition of religion? What are common practices and experiences across various world religions? Include indigenous religions in your discussion.
Value the property using ellwood : An apartment is expected to produce $105,000 NOI the first year, increasing by 3 percent per year each year over a projected 7 year holding period. A 70 percent loan-to-value ratio is typical. Current terms are 7.5 percent interest for 25 years (annu..
Write a java program to prompts a user to enter information : Write a Java program prompts a user to enter demographic information
Finance-explicit model-what is the value of this property : An office property with 60,000 square feet of rentable space is expected to rent for $40 per square foot in the coming year. Rent is expected to decline 3 percent per year over a projected holding period of seven years. Vacancy will be at 7.5 percent..
How can the brain repair itself or restore lost function : How can the brain repair itself or restore lost function after TBI or other brain damage (focus on the concept of neuroplasticity)?
Determine fundamental business advantages of e-business : Determine the fundamental business advantages and disadvantages of e-business and e-commerce across the business organization.
What is the expected return of the portfolio : Consider the following information: Rate of Return If State Occurs State of Probability of Economy State of Economy Stock A Stock B Stock C Boom .17 .358 .458 .338 Good .43 .128 .108 .178 Poor .33 .018 .028 ?.062 Bust .07 ?.118 ?.258 ?.098 Requiremen..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Creates an object of type fahrenheit

Creates an object of type Fahrenheit and an object of type Celsius - Accepts a single argument from the command line

  Traditionally-nutrition programs were targeted to indigent

Traditionally, nutrition programs were targeted to the indigent and poor populations in developing countries. Many of today's Americans are malnourished also, but they are glutted with a wealth of unhealthy foods and require a multidisciplinary appro..

  Write an algorithm for fining the middle node

Write an algorithm for fining the middle node of a doubly linked list given both the head and the tail of the list.And Write a  recursive  java function that counts the number of nodes in a circularly linked list.

  Java catering program console based

For this assignment, you are required to design and develop a console (text-based) application for a small catering business. This application will simulate booking appointments, tracking catering jobs and processing payments.

  Write a friend function that can examine the elements

Write a friend function that can examine the elements directly, or pop the stacks and save the popped elements so that the stacks can be restored.

  Most of the companies use virtualization to make test

write a 200- to 300-word short-answer response to the following many companies use virtualization to create test

  Hasanodddigit that returns whether any digit

d named hasAnOddDigit that returns whether any digit of a positive integer is odd. Your method should return true if the number has at least one odd digit and false if none of its digits are odd. 0, 2, 4, 6, and 8 are even digits, and 1, 3, 5, 7, 9 a..

  How many bits are needed to represent the index size

How many bits are needed to represent the index size - what would be the index size if 8-way set associative cache were used with the same capacity and block size?

  Display the values that were typed in to the form

This assignment will focus on creating Java Server Pages (JSP) and deploying them onto a Java Servlet Container.

  Write a simple program that uses the class

Write a simple program that uses the class. It should prompt the user to input a string, display it, call one or the other of the class functions to convert it, then display the converted string.

  Morgellons disease is delusional

Why do some scientists say that Morgellons disease is delusional? When there have been fibers extracted from patients that cannot be identified? Isn't that physical proof that something is affecting these people physically?

  1 introductionin order to debug an application it is

1 introductionin order to debug an application it is sometimes useful to know where a given object comes from or where

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