Working with numeric variables

Assignment Help JAVA Programming
Reference no: EM13744123

Create a Java program for the following application. 
(it is in the second chapter of my Intro to "Java Programming" book (Murach 4th Edition)
It involves
1. working with numeric variables
2.using the System.out object to print output to console
-------------------------------------------------------------------------------------

PizzaCost Application

The cost of making a pizza at a local shop is as follows:

Labor cost is $0.75 per pizza, regardless of size.
Rent cost is $1.00 per pizza, regardless of size.
Materials is $0.05 * diameter * diameter, where diameter is measured in inches.
You will store the labor, rent, and size of the pizza as constants.

Formulas:

materials = .05 * diameter * diameter
pizzaCost = labor + rent + materials

Create a PizzaCost application that displays the cost of making the pizza based on a size stored in a variable. The application output should look similar to:

Enter the diameter of the pizza in inches: 16
The cost of making the pizza is: $14.55 

Reference no: EM13744123

Questions Cloud

The on-boarding process for new hires is very important : The on-boarding process for new hires is very important. In some organizations it requires a one or two day, face-to-face experience, while in others it takes place mentoring programs. There are probably as many variations of on-boarding as there are..
What are three current trends in business and technology : What are three current trends in business and technology that could drive a new venture. Considering the three trends identified, how might they affect the organization. What potential impact might the trends have on customers.
Determine whether any change in the nz : Determine whether any change in the NZ$/US$ exchange rate over the quarter was matched by an equivalent change in prices (the US consumer price index declined by 0.1%)
How much energy is passed from one trophic level : Approximately how much energy is passed from one trophic level to be stored as growth in the bodies of organisms at the next level
Working with numeric variables : Create a Java program for the following application. (it is in the second chapter of my Intro to "Java Programming" book (Murach 4th Edition)It involves1. working with numeric variables2.using the System.out object to print output to console
What types of biosensors exist : What types of biosensors exist and What health problems are biosensors aiming to resolve
Why is an audit of financial records important : Why is an audit of financial records important? What are the key components of the audit?
Assignment on assessing organizational issues : Assignment On Assessing Organizational Issues. In this assignment, you will discover the large variety of issues that are encompassed under the umbrella of OB. Additionally, you will have the opportunity to attempt using OB theories to correct or m..
Consider the aspects of internal control : 1. Internal controls are a set of procedures adopted by an organization primarily to check frauds and errors and increase operational efficiency.Consider the aspects of internal control and respond to the following:List ten internal controls that an ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Build an android application to execute some of the queries

Build an android application to execute some of the queries -

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  Program mimics a rudimentary spreadsheet

Change the averages so that they are rounded to the nearest one hundredth. The example above shows averages in format - Change the program so that before the spreadsheet window is displayed, the user sees the window

  Reading in strings from a text file into an array

If I am reading in strings from a text file into an array, where do I place this file at so that CodeBlocks will find it?

  Test plan for both unit testing and integration testing

Do a test plan for both unit testing and integration testing, justification why you need this test creating the test case for each individual test must use java language in netbeans IDE to perform each test, screen capture one example to run the ..

  Java program ask user to enter 10-character telephone number

Write a Java program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The program should display the telephone number with any alphabetic characters

  Draw a uml diagram of each of the shapes

Draw a UML diagram of each of the Shapes, Rectangle and Square classes using the code that has been provided. Complete this using the examples that have been provide in the lecture slides - Sample program is provided that creates a list of shapes ..

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  Implement a simple paddle ball game

Implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls.

  Digital image processing using java

Digital image processing using java ..create plugin using Jedit and run it in imageJ

  Write a program that reads in a text file and then computes

Write a program that reads in a text file and then computes and prints a table of letter frequencies. For example, if the file is the text of "A Tale of Two Cities", found in the file at data/tales.txt , the program will print

  Write a program that takes 10 values representin

Using a loop, write a program that takes 10 values representin exam grades (between 0 and 100) from the keyboard and outputs the minimum value, maximum value, and average value of all the values entered. Your program should not accept less than 0 ..

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