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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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