Question: Create two FLOWGORITHM flowcharts, one using a While AND one For Loop to do a Budget Analysis. Outside the loop, Ask the user to enter
Create two FLOWGORITHM flowcharts, one using a While AND one For Loop to do a Budget Analysis. Outside the loop, Ask the user to enter the amount that they budgeted for a month. 3. Display a column header as illustrated on the next page. 4. Inside the loop the following input statements should be done: a. The program should first ask the user to enter the name of the expense (string data type). 5. Then ask for the amount (type real) of the expense (relating to the name of this expense) 6. After entering the expense name and amount of expense, use an appropriate assignment statement to keep a running total of the expenses. AFTER THE LOOP IS COMPLETE: 7. An IF statement should be used to determine of the total expenses were over or under the monthly budget 8. Next, (outside the if statement or following the if statement) display the monthly budget on one line 9. Display the total expenses on another line 10. Display if the monthly budget is over, under budget, or broke even. 11. Be creative with your OUPUT LAYOUT. Convert both flowgorithim charts to python. 2. Change the following print functions to write functions {methods} so that they are sent to the output file: a. Dont forget the separating lines between the write statements i.e. ================================= a. The monthly budget amount b. The column headings which includes the Expense Name and Expense Amount c. Each expense names d. Each expense amounts e. The total expense f. (From the IF statement), the amount that the user is over or under budget.. 2. You will periodically RESAVE the PROGRAM FILE as: yourlastname_firstname_A5_Budget_Analysis_External_File 3. Make sure the values are aligned vertically by decimal and the format function or f-string is used to display 2 places to the right of the decimal 4. Create a similar design with at least the values and labels as shown below: yourlastname_firstname_A5_Budget_Analysis_output_file.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
