Create the hierarchy chart and pseudocode for these problems.
1. Many financial experts advice that property owners should insure their homes or buildings for at least 80 percent of the amount it would cost no replace the structure. Design a modular program that ask the user to enter the replacement cost of a building and then displays the minimum amount of he or she should buy for the property.
2. Calories from chart and Carbohydrates
A nutritionist who works doe a fitness club help members by evaluation their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrates grams that they consumed in a day, then she calculated the number of calories that result from the fat, using the following formula:
Calories from Fat = Fat Grams * 9
Next, she calculates the number of calories that result from the carbohydrates, using the following formula:
Calories from Carbs = Carb * 4
The nutritionist asks you to design a modular program that will make these calculations.