Prompts the user to input the shipping cost per liter

Assignment Help C/C++ Programming
Reference no: EM13498633

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

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

b. Prompts the user to input the shipping cost per liter.

c. 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.)

d. Separately outputs the shipping cost and the cost of painting. Your program must use the class cylinderType (designed in Programming Exercise 3) 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.)

Reference no: EM13498633

Questions Cloud

Manipulate various types of accounts : Each of these accounts has various options. For example, you may have a savings account that requires no minimum balance but has a lower interest rate. Similarly, you may have a checking account that limits the number of checks you may write. Anot..
What is the magnitude of the force it will experience : A 10 microcoulomb charge is placed at the origin and a 20 microcoulomb charge is placed on the x-axis at x = 40 cm. what is the magnitude of the force it will experience
Explain the volume of pure hydrogen present in a sample : What's the volume of pure hydrogen present in a sample of 55.0 mL of gas saturated with water vapour at 27 °C, if the total pressure is 104.8 kPa?
Evaluate the density of concentrated sulfuric acid : A flask has a mass of 78.16g when empty and 593.56g when filled with water. When the same flask is filled with concentrated sulfuric acid, its mass is 1026.57g. Calculate the density of concentrated sulfuric acid.
Prompts the user to input the shipping cost per liter : Write a program that does the Prompts the user to input the dimensions (in feet) of the container (radius the container (radius of the base and the height)
What is the force acting between these two charges : Two equal charges of magnitude +1 C are separated by a distance of 1 km. What is the force acting between these two charges
Explain the empirical formula for hydrocarbon : A gaseous hydrocarbon sample is completely burned in air, producing 1.80 liters of carbon dioxide at standard temperature and pressure and 2.16 grams of water. What is the empirical formula for hydrocarbon
Determine the electric field in the wire : A wire of radius 1.5 mm carries a current of 2.8 A. The potential difference between points on the wire 20 m apart is 4.7V. determine the electric field in the wire
Explain the volume of a gas-filled balloon placed underwater : The volume of a gas-filled balloon placed underwater at a constant temperature will decrease as its depth below the surface of the water is increased.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Write a program that will represent an axis-aligned

Write a program that will represent an axis-aligned right triangle in the x-y plane as a Class. A right triangle has a right angle (90-degree angle) and two sides adjacent to the right angle, called legs. See http://en.wikipedia.org/wiki/Right_tri..

  Setup a class to store a book

Setup a class to store a book. The data is to include title, author, year of publication, dewey number and age.

  All the new strings generated

Explain why, if on some round, all the new strings generated for any syntactic category are longer than s, and s has not already been generated for L(), then s cannot ever be put in L(). Hint: Use Exercise 11.3.5.

  Dynamically allocates an array large enough

Write a program that dynamically allocates an array large enough to hold a number of test score. The size of the array should be input by the user

  Write program to declare the array of type float

Write down the c++ program which declares the array of 50 components of type float. Initialize array so that first 25 components are equal to square of the index variable.

  Write a c program that copies the contents of one file

write a c program that copiest the contents of one file to a destination file. This program works by first prompting the user for the name of the source file and destination file.

  Write a program that will read in number of 2 point basket

Write a program that will read in the number of 2 point baskets and the number of 3 point baskets a player makes.  Print the number of each baskets and the total number of points scored.

  Write a programme on credit card number check

Credit Card Number Check. The last digit of a credit card number is the check digit, which protects againsttranscription errors such as an error in a single digit or switching two digits

  The authors of the book do a very thorough job explaining

the authors of the book do a very thorough job explaining simpletons operation and encourage you to take a look at what

  Create an application that has two heaps place a linked

create an application that has two heaps. place a linked list into each heap. select one hundred random numbers.

  Write a program to open a file for reading

Write a program to open a file for reading that has twenty (20) rows and in each row there are three (3) columns.

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