System.out.println statement

Assignment Help JAVA Programming
Reference no: EM13700727

Question: Please make sure to follow the instructions carefully and in the subsequent order.  Remember that all variables are to be declared -- and initialized if so at the top of the main method.  int variables always come before double variables. 

Please use the precisely same character strings provided to you below in your System.out.println statements.

Declare two double constants named CONST1 and CONST2.  Initialize const1 to 7.15% and const2 to 134.55. 

Declare three integer variables named num1, num2 and num3.  Initialize num1 and num2 each to a value between 1 and 100 but make num1 larger than num2.  Do not initialize num3.

Declare one double variable named num4.  Do not initialize num4.

Divide num1 by num2 and store the result in num3.

Show the value stored in num3 with the label "The result of integer num1 divided by integer num2 and stored in an integer is ".

Divide num1 by num2 and store the result in num4.

Display the value stored in num4 with the label "The result of integer num1 divided by integer num2 and stored in a double is ".

  Divide num1 by num2 again but this time cast num1 as a double.  Store the result in num4.

Display the value stored in num4 with the label "The result of integer num1 (cast as a double) divided by integer num2 and stored in a double is ". 

Multiply CONST1 by CONST2 and store the value in num4.

Display the value stored in num4 with the label "The result of the constant const1 multiplied by the constant const2 is ". 

Use System.out.println exclusively.  Use the escape sequence \n wherever essential to put a blank line in between each of the above lines of output.

Make this program using java programming. Make this application in simple way.

Reference no: EM13700727

Questions Cloud

Display the complete fibonacci sequence : Display the complete Fibonacci sequence until u reach a value less than or equal one million - display the count of how many numbers are in that sequence between 1 and 1000000
How many minutes are required to deposit spoon : Question- A spoon is to be electroplated with gold using 1.0 m AU(NO3)3 and 2.57 A of current. How many minutes are required to deposit 5.50 grams of gold on the spoon
Prepare a method that will guess the root of a number : Using binary search/interval halving, prepare a method that will guess the root of a number (JAVA)
Determine how long is the bar : A uniform steel bar swings from a pivot at one end with a period of 1.8s. How long is the bar
System.out.println statement : Display the value stored in num4 with the label "The result of the constant const1 multiplied by the constant const2 is " - Please use the precisely same character strings provided to you below in your System.out.println statements.
The activation energy for the ignition of the paper : Question- A paper cup is filled with water (enthalpy of vaporization for water is 40.65 kJ/mol). The activation energy for the ignition of the paper is 470 kJ. The cup holds 200.0 mL of water. Assume that the specific heat capacity of the paper is..
Estimate how far did it travel in that time : A car slows down uniformly from a speed of 20.0 m/s to rest in 4.00 s. How far did it travel in that time
What will be the cars oscillation frequency : A compact car has a mass of 1310kg . Assume that the car has one spring on each wheel, What will be the car's oscillation frequency while carrying four 87.0kg passengers
Calculate the reduction potential of the cu2+ : Question- Calculate the reduction potential of the cu2+/Cu electrode when [cu2+] = 1.0 * 10 to the power -8 M.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What are the main differences between java programming

question 1 what are the major differences between java programming language and any other language? list and discuss

  Need the build function.use recursion

Implement remaining function. Everything else is provided. Use given material to receive points. Implement remaining function. Everything else is provided. Use given material to receive points. Implement remaining function. Everything else is provide..

  One acre of land is equivalent to

One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of square feet in a tract of land with 3.5acres.

  What are some debugging techniques for javascript

What are some common programming errors? How can they be prevented? What is the try catch structure, how is it useful? What are some debugging techniques for JavaScript?

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Question 1a give explanation why it is significant to

question 1a give explanation why it is significant to follow web engineering principles taking into account how the web

  The williamsburg women''s club

The Williamsburg Women's Club offers scholarships to local high school students who meet any of several criteria. Write an application that prompts the user for a student's numeric high school grade point average (for example, 3.2), the student's num..

  Create an application for an animal-fur trimming service

create an application for an animal-fur trimming service. the business is open 15 weeks of the year from april through

  Write a test application name employeetest

Create two Employee objects and display each objects yearly salary. Then give each employee a 10% raise and display each employee's yearly salary again.

  Write java program to utilizes gui with five text fields

Write down the program called MaxMinAvgGUI.java which utilizes GUI with five(5)text fields which asks user to enter 5(five) decimal numbers. 1(one)number in each text field.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Write the flow of execution of application

Write the flow of execution of application step by step and briefly explain the functionality of each function being called (like the first step would be to instantiate Frame and then instantiate Panel and place it into the Frame).

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