Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Basic math functions in C++ program A rectangular patio is attached to a house. We want to find the length of strings of party lights

Basic math functions in C++ program
image text in transcribed
A rectangular patio is attached to a house. We want to find the length of strings of party lights needed to hang on the three sides of the patio not attached to the house plus from corner to comer in a X pattern. Write a Ct+ program that gets the length of side of the patio opposite the house and the length of one of the sides of the patio perpendicular to the house from the user and calculates the length of the runs to be strung. You will need to add a 7% sag to each of the (5) runs so that the lights are not taut. Display: the total length of the runs before the sag is added, the length of the side opposite run including sag, the length of the two perpendicular runs including sag, the length of the two diagonal runs including sag, and finally the total length of the party lights needed including sag. Be sure you ask the user to enter each of the lengths in feet. All variables and constants used should be of type double. Sample results when length of side opposite house is 16.75 and length of side perpendicular to house is 12: Total length calculated =82.9598 feet. The length of the run opposite the houre including sag =17.9225 feet. The length of the two perpendicular runs including a ag =12,84 feet each. The length of the two diagonal runs including sag =22.0473 feet each. The total length of the atrands needed including sag =87.697 feet. Your output must closely match this output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago