Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are going to create an application that allows a user to budget their expenses. Create a python file named assignment2_DDDDDDDDD, where DDDDDDDDD represents your

image text in transcribedimage text in transcribedimage text in transcribed
You are going to create an application that allows a user to budget their expenses. Create a python file named assignment2_DDDDDDDDD, where DDDDDDDDD represents your student number (-1 mark complete) Add your full name as a comment. (-1 mark complete) Add your student number as a comment. (-1 mark complete) Ask the user how much income they |make per (Your choice of second, minute, hour, daily, weekly, bi-weekly, trimester, or semi-annual. Notice that monthly and annually are NOT part ofthe list of options). Allow whole or decimal numbers (2 marks) Convert the value above to an annual income. (1 mark) a) Store this value. b) Output this value to screen. 6) Convert the value above to a monthly income. (1 mark) a) Store this value but do not output it. Continually ask the user to input their expenses until they have surpassed their monthly income budget [3 marks) a) Each time you ask the user for an expense, store the name, quantity, total price, and category of the expense. (2 marks) b) Only accept 5 ofthe many categories listed on this page: htt s: mint.intuit.com mint-cate ories (2 marks) c) Stop asking the user to list their expenses if and only if either of these cases occur i) The user inputs an expense name shorter than 3 characters ii) The user inputs an expense quantity less than 1 iii) The user inputs an expense total price less than 1 cent. iv) The user inputs a category that is not one of your five accepted categories. d) Use a custom-made function to validate EACH of the conditions above. There should be 4 functions with unique names called to ensure the conditions above are met. (4 marks) Ifthe user adds a duplicate entry of expense name and expense category, ignore the entry. (2 marks) 8) Ifthe user adds a duplicate entry of expense name and expense category, ignore the entry. (2 marks) Marks for data structure(s) used to store expenses: 5 marks 9) Output to screen all the expenses from each category. Output the data in any way desired. (3 marks) 10) Output all unique expense names. (1 mark) 11) Output all expense names that share the same value of quantity for all five categories. (2 marks) 12) Output all expense names that have a total price of less than X dollars. You choose any value for X. (1 mark) 13) Output all expense names that have a total price of greater than Y dollars. You choose any value for Y. (1 mark)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

1 The role of the foreign exchange market and the exchange rate

Answered: 1 week ago