Builders Inc. wants a program that allows its salesclerks to enter the diameter
ID: 3251069 • Letter: B
Question
Builders Inc. wants a program that allows its salesclerks to enter the diameter of a cir- cle and the price of railing material per foot. The program should calculate and dis- play the total price of the railing material. Use 3.1416 as the value of pi. First, create an IPO chart for this problem, and then desk-check the algorithm twice. For the first desk-check, use 35 feet as the diameter and $2 as the price per foot. For the second desk-check, use 15.5 and $3.50. After desk-checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and then enter the appropriate C++ declaration statements.
Explanation / Answer
Input dia,price
peri = 2*3.1416*dia
totprice=peri*price
Input Process Output Diameter of circle Calculate perimeter of the circle Display price of railing material Price of railing material per footRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.