hey, please help! So the program is suppose to calculates the amount of asphalt needed to pave a road.
The calculation must be in cubic yards. Prompt the user for the length of the road in miles, the width in feet and depth in inches. Convert all to yards and then calculate and display the cubic yards needed.
The parameters for length, width and depth are private variables along with the calculated cubic yards.This program must provide a loop so that you can enter
several different calculations. Start with 10 miles, 300 feet wide and 36 inches
deep then produce several more calculations and desk check your numbers to
ensure your calculations are correct. Do at least 2 more calculations aside from
the original and round all answers to 1 decimal place.
we're suppose to convert the length from miles to cubic yards, width from feet to cubic yards and depth from inches to cubic yards.
i converted them to feet instead and the volume V(cu yrds) = L*W*D/27. but i can't find the conversion of the rest.
SO i finally have the right calculations but it's not giving the result for the second time, the questions are repeated but it's not calculating. I'm really bad with loops, someone please helppppp
SO i finally have the right calculations but it's not giving the result for the second time, the questions are repeated but it's not calculating. I'm really bad with loops, someone please helppppp
Thank you, Thats also correct .but i guess i took the long way. i converted; Length in miles to feet then cubic yards which is ( Length*5280)/3, width is already in feet so width/3 and depth in inches, converted to feet then cubic yards (Depth/12)/3. Since they're all converted Volume V= L*W*D. I used a volume calculator to counter check.