The principal of a local school wants a program that displays the average number of students per teacher at the school. The principal will enter the number of students enrolled and the number of teachers employed. Complete an IPO chart for thisÂ
problem. Plan the algorithm using a flowchart. Also complete a desk-check table for your algorithm. For the first desk-check, use 1200 and 60 as the number of students and number of teachers, respectively. Then use 2500 and 100. Â
1. Enter the number of students and teacher. 2. Calculate the average number of students per teacher by dividing the number of Â students by the number of teachers. 3. Display the average number of students per teacherÂ
Â 5. Norbert Catering is famous for its roast beef sandwiches. The storeâ€™s owner wants a Â program that he can use to estimate the number of pounds of roast beef a customer Â should purchase, given the desired number of sandwiches and the amount of meat Â per sandwich. Typically, one sandwich requires two to three ounces of meat, but Â some customers prefer four or five ounces per sandwich. Complete an IPO chart for Â this problem. Desk-check the algorithm using 50 as the number of sandwiches and 4 Â ounces as the amount of meat per sandwich. Then desk-check it using 224 and 2 Â ounces.
1. Enter the number of sandwiches and amounts of meat per sandwich in ounces. 2. Calculate the number of ounces of roast beef by multiplying the number of Â sandwiches and amounts of meat per sandwich in ounces. 3. Calculate the number of pounds of roast beef a customer should purchase by Â dividing by 16 the number of ounces of roast beef. 4. Display the number of pounds of roast beef a customer should purchase.Â
8. Each time Tania visits the dentist, her dental insurance requires her to pay a $20 copay and 15% of the remaining charge. She wants a program that displays the total Â amount she needs to pay, as well as the total amount the insurance should pay. Â Complete an IPO chart for this problem. You can assume that the dental charge will Â always be at least $20. Desk-check the algorithm using $110 as the dental charge. Â Then desk-check it using your own data.Â
1. Enter the dental charge. 2. Subtract $20 from the dental charge. 3. Multiplicate the rest of the dental charge by 0.15 4. Calculate the amount of money we need to pay by adding $20 to the rest of the Â dental charge 5. Display the amount of money we need to payÂ