Question: o prctice visualization and basic algorithm development Task paint needed to cover one side of a house with a sloped roof name: paint_1astnane_ firstname epp)
o prctice visualization and basic algorithm development Task paint needed to cover one side of a house with a sloped roof name: paint_1astnane_ firstname epp) that will calculate the amount of Assume that this side wall of the house is generally shaped as in the diagram below (with rectangular lower section, and triangular section where the roof slopes to a point) and that t contains one rectangular window, which does not get painted (obviously). .As you can see in the sample execution (below), you should ask the user for the dimensions of the wall (width, height to the bottom of the slanted roof, height up to the tip of the slanted roof) and the dimensions of the window (width and height)- in this order. All of these dimensions should be of type double to integer variable, so that it's simple to change this value in the program- for example represent larger cans of paint in future versions). .After collecting all of the dimensions, your program should produce the output demonstrated in the sample execution. Also note that The user-entered dimensions should be displayed in default format (only usin decimal point and digits to the right when needed) The paintable area should be displayed to 1 decimal place The required number of cans should be displayed to 2 decimal places o o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
