Write a program to determine the cost of painting a room

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

You need to implement the program to find the cost of painting a room

Question: Can anybody figure out how to calculate number of gallons of paint needed and the total cost?

Program: Write a program to determine the cost of painting a room. 

The program should allow the user to enter the height in feet of a room, the width in feet of one side of a room, the width in feet of the other side of a room, the number of square feet that a gallon of paint covers, and the price per gallon of paint. 

The program should calculate the number of gallons of paint needed and display the total cost of painting the room.  (NOTE:  You can only buy the paint in gallon size cans.)

Here are some sample test data & results:

HEIGHT WIDTH A WIDTH B SQ. FT. COST/GAL GALLONS   TOTAL COST

    10             12               14                350         $32.98         2                  $65.96

    12             15               20                400         $26.97         3                   $80.91

Be sure to include comments. Comments should be included in the program to explain your calculations and program.

Reference no: EM13699360

Questions Cloud

Store user input - write c++ program : Write C++ program to provide the following functionality - Ask users to enter 10 integer numbers.
What are the balanced net ionic equations : Problem- What is the chemical equation for the above. Is there a reaction? If so, what are the balanced 1) molecular, 2) ionic, 3) net ionic equations? What are the states in the net ionic equation
Implement a program to find the position of a cannonball : Write a C++ program that calculates the position of a cannonball that is fired straight up in the air - Implement a program to find the position of a cannonball
How many grams of iron oxide will be produced : Problem- If 6.50 L of water vapor at 50.2 c and 0.121 atm reacts with excess iron, how many grams of iron (lll) oxide will be produced
Write a program to determine the cost of painting a room : implement the program to find the cost of painting a room - Write a program to determine the cost of painting a room.
Find a popular childrens story and write it into an array : Prompt a user to search for a string within the array, returning the position of the search item within the array - Can you give the answer ASAP?
The value of j for the lower electronic-vibrational : Problem- Consider an electronic transition of a diatomic molecule in which the up- per electronic state has a larger equilibrium bond distance than the lower state. Determine the value of J for the lower electronic-vibrational state at which the t..
Lists of integers and displays whether the two are identical : Write a test program that prompts the user to enter two lists of integers and displays whether the two are identical. Here are the sample runs.
Prepare an acetate buffer of ph : Problem- You have 775 mL of an 0.11 M acetic acid solution. What volume (V) of 1.30 M NaOH solution must you add in order to prepare an acetate buffer of pH = 5.44? The pKa of acetic acid is 4.76.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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