Of 5 (a)(b) Assume that income = 8 and expense = 6. What is the value of each of
ID: 3561511 • Letter: O
Question
Of 5 (a)(b) Assume that income = 8 and expense = 6. What is the value of each of the following expressions? Draw a typical hierarchy chart for a program that produces a monthly bill for a cell phone customer. Try to think of at least 10 separate modules that might be included. For example, one module might calculate the charge for daytime phone minutes used. Draw the hierarchy chart and then plan the logic for a program needed by the sales manager of The Henry Used Car Dealership. The program will determine the profit on any car sold. Input includes the sale price and actual purchase price for a car. The output is the profit, which is the sale price minus the purchase price. Use three modules. The main program declares global variables and calls housekeeping, detail, and end-of-job modules. The housekeeping module prompts for and accepts a sale price. The detail module prompts for and accepts the purchase price, computes the profit, and displays the result. The end-of-job module displays the message Thanks for using tins program. Revise the profit-determining program so that it runs continuously for any number of cars. The detail loop executes continuously while the sale price is not 0; in addition to calculating the profit, it prompts the user foi and gets the next sale price. The end-of-job module executes after 0 is entered for the sale price. Draw the hierarchy chart and then plan the logic for a program that calculates a person's body mass index (BMI). BMI is a statistical measure that compares a person's weight and height. The program uses three modules. The first prompts a user for and accepts the user's height m inches. The second module accepts the user's weight in pounds and converts the user's height to meters and weight to kilograms 1 hen, it calculates BMI as weight in kilograms divided by height in meters squared, and displays the results. There are 2.5-1 centimeters in an inch. 100 centimeters in a meter, 453.59 grams in a pound, and 1.000 grams in a kilogram. Use named constants whenever you think they are he Lm module displays the message End of job. Revise the determining program to execute continuously until the user enters 0 for the height in inches.Explanation / Answer
where is the answer ?
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.