Draw a flow chart Youve been asked to write a program that computes percentages
ID: 3645106 • Letter: D
Question
Draw a flow chartYouve been asked to write a program that computes percentages for specific categories in a personal budget. The program should ask the user to enter estimated monthly expenditures for the following categories:
Rent Payment, Food, Utilities, and All Other. Your program should add the amounts, display the total, and compute and display the percentage for each category. Dollar amounts should be displayed with two decimal places and percentages should be displayed with one decimal place.
Explanation / Answer
Pseudocode is a tool used to prototype and document computer algorithms. Rather than designing by writing programming statements in a specific language, the designer utilizes English language statements that emulate logical instructions. The resulting algorithm can be logically evaluated before being translated into code in a specific programming language. Pseudocode has become more popular than flowcharting for designing algorithms, because it is quicker to move to code. There is no formal definition of pseudocode in computer science. It is an informal combination of programming logic and regular language (from which the term pseudo-code comes from) that most often emulates the form of the syntax of the language most familiar to the designer. Programmers not familiar with a particular language, however, can still understand an algorithm that has been designed in pseudocode.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.