Program that prompts the user to input the dimensions

Assignment Help Programming Languages
Reference no: EM13693798

Question: Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container. (For simplicity, you may assume that the container is filled to the top.) They also provide the option to paint the outside of the container for a reasonable amount. Write a program that does the following:

Part 1: Prompts the user to input the dimensions (in feet) of the container (radius of the base and the height).

Part 2: Prompts the user to input the shipping cost per liter.

Part 3: Prompts the user to input the paint cost per square foot. (Assume that the entire container including the top and bottom needs to be painted).

Part 4: Separately outputs the shipping cost and the cost of painting.

Your program must use class cylinderType to store the radius of the base and the height of the container. (Note that 1 cubic feet = 28.32 liters or 1 liter = 0.353146667 cubic feet).

Solve these questions in details and provide examples to support your rationale.

Reference no: EM13693798

Questions Cloud

Calculate the hypotenuse of a triangle : Pythagorean Theorem.  Use the Pythagorean Theorem to calculate the hypotenuse of a triangle given two sides.  Suppose the input sides can make a triangle.
Digit decimal seconds counter using two 7-segment displays : Write a program that implements a two digit decimal seconds counter using two 7-segment displays.  Make this program using java programming. Make this program in simple way.
Your program should ask the user to input a grade : Your program should ask the user to input a grade (integer from 1-100) and then output the letter grade.
Returns the number of days in a month : Using only "If" statements.  Returns the number of days in a month.  Each month will be shown by a corresponding integer. This is not the most correct calculation, but Leap Year will be calculated using (Year/4) to determine if the input year is a..
Program that prompts the user to input the dimensions : Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container.
Figure out the missing data : We are to figure out the missing data. To my understanding, there is going to be some kind of proportion here, or what? How would you go about figuring these out?
Write a program that reads the coordinates : Write a program that reads the (x,y) coordinates of a point in the Cartesian plane and prints a message telling in which quadrant, or on which axis (or axes) the point lies. The quadrants are labeled as follows:
Describe the chemical symbol of one of the elements : Write a program that reads a single character describing the chemical symbol of one of the elements H, C, N, O, F and prints the full name of the element.
Compute and return the celsius temperature : Write a program that takes as input a depth (in kilometers) inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is

Reviews

Write a Review

Programming Languages Questions & Answers

  Describe graphical user interfaces during operation

Describe some of graphical user interfaces (GUIs) and communications messages which happen during operation of a microwave.

  Compute tax percentage using nested if

On Home Sales Data worksheet, in column E, compute Tax Percentage. Using nested IF calculate the following (Hint: do not use the function AND because if the house does not have 1 bedroom

  Program to assign new value to first element of array

Suppose that the ArrayList of integers named has been declared and initialized. Write single statement which assigns a new value to first element of the ArrayList.

  Write program to enter name-number of planet from sun

Write down the program which permits the user to enter name of planet, and then prints message stating that planet's number when counted outward from sun.

  Create link invisible to begin-display after submit button

Create link invisible to begin but display it after Submit button has been clicked. Confirmation page should say "Thank you for your order".

  Write a javascript function to validate a text-field

Write a JavaScript function to validate a text-field on a form that is to hold an email address. Now when writing this JavaScript function bear in mind that you won't be able to fully validate it unless you manage to interrogate the server in whic..

  Effective design features for site navigation

Screen shot of this example and explanation of effective design features will be included. Callouts are recommended. Ideally, students will locate examples of how they would like their site navigation to work and function.

  Write program to find smallest-largest value from n numbers

Write down program which will determine the smallest, largest and average values in collection of N numbers. Get value of N before scanning each value in collection of N numbers.

  Writing a class

Build a class for a type called Fraction

  Write program to list all english-math and science teachers

Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Program for vehicle registration department

Consulting firm has narrowed the choice of programming language to Java and C#. Which language do you believe would be more suitable for this application and why?

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