SlideShare a Scribd company logo
1 of 3
Download to read offline
someone help Python programming After the loop ends, return the expense items list.
INTRODUCTION The goal of this programming project is to enable students practice solving a
problem that uses the 3. InputExpenseAmounts Python features of functions and lists. Create an
empty list for expense amounts. Enter a loop that uses the size (you may use the len function) of
the expense items list to determine number of iterations. For each iteration, display a PROBLEM
message that says: How much was spent on xxoxcxxoxox expense item? Write a program that
inputs names of personal expenses and a corresponding amount for each expense. where
soxoxoxoxx is replaced by the name from the expense_items_list corresponding to the current
The program should store all input data in lists. The program should present the user with a main
menu iteration. The amount should then be input and appended to the expense amounts list. Input
to select options to: validation should be done including using try ... except ... to ensure a number
was entered. 1. Input personal expense names 2. Input personal expense amounts After the loop
ends, return the expense amounts list. 3. Display the expenses (names and amounts) 4. Exit the
program 4. DisplayExpenseReport Parameters to this function will be the expense items and
expense amounts lists. The program should then allow the user to select how the information will
be displayed from the list Your program should offer the user the menu of (a) table display (b)
pie chart (c) bar chart. When of: the user selects option (a), the program should output column
headings and then enters a loop that (a) pie chart iterates as many times as the size of the expense
items list and outputs the contents of the lists. (b) bar chart The program should output some type
of delineation that expenses are done and output the total of (c) table. the amounts in the expense
amounts list. After exiting the loop, the program should display the totals line of the report. Use
the format function and format strings. Here is an example of what the The program should
achieve this in functions described below. To ensure good programming and output may look
like. modularity, none of the functions should call itself and the only function calls should be in
the main function. Functions should not be defined inside other functions. At the bottom, there
should be a statement that calls the main function. No function call to main should happen inside
the main function. Here are the descriptions of what should be in the functions: 1. main This
function will have statements to call the other functions and display the main menu. The first
function called will input names of the expenses into a list and assign the list to a list object. The
second call will pass the expense items list to a function that inputs expense amounts into a
second list that is then assigned to a list object. The third call passes the two lists to a function
that will display the contents on the two lists. Here are the Python statements: expenseItems -
InputExpenseNames () expenseAmounts = InputExpenseAmounts (expenseItems) 2.
InputExpenseNames First create an empty list for expense items. Next, enter a loop that iterates
for as long as the user responds that there are more item names to enter. In the loop, display a
message asking the user to input the name of an expense item, then input the name and append it
to the list. Then input a response to the question whether there are more item names. Page | 1 of 6
explodes =[1] # create an explodes array for the chart for expense in expenseAmounts:
explodes. append (0.05) plt.pie (expenseAmounts, explodes, expenseNames More information
can be found at the matplotlib home site: -
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.pie.html
USER STORY - Read me 6. The user enters expense name-1 Your program will need to work
for both User Stories below. 7. Program stores the expense name- 1 in a list 8. The user enters
expense name-2. No data Flow 9. Program stores the expense name- 2 in a list 1. The User runs
the program. 10. The user indicates they wish to go back to the main menu. 2. The program
displays a menu asking the user if they want to: Input Expense Nomes, Input 11. The program
returns the list to the main program. expense amounts, Display an expense report or quit. 12. The
program displays a menu asking the user if they want to: Input Expense Names, Input 3. The
User selects: Display an expense report. expense amounts, Display an expense report or quit. 4.
The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main
13. The User selects, input expense amounts menu. 14. The program calls the function
InputExpenseAmounts and begins asking for amounts for each expense, The user enters a dollar
amount (22.45) for each expense name. 5. The User selects: Table 6. The program displays the
table headings and nothing else as there is no expense data. The 15. When all the expense names
have an associated amount the function returns a list of the amounts program tell the user how to
get back to the reports menu. in the same order as the names. 7. The User goes back to the
reports menu. 16. The program displays a menu asking the user if they want to: Input Expense
Names, Input 8. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or
return to main expense amounts, Display an expense report or quit. menu. 17. The User selects:
Display an expense report. 9. The User selects: Bar Chart 18. The program displays a menu of
expense reports: Bar Chart, Pie Chart, Table, or return to main 10. The program displays the bar
chart without any data. menu. 11. User closes the bar chart window. 19. The User selects: Table
12. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to
main 20. The program displays the expense report. The program tell the user how to get back to
the menu. reports menu. 13. The User selects: Pie Chart 21. The User goes back to the reports
menu. 14. The program displays the pie chart without any data. 22. The program displays a menu
of expense reports: Bar Chart, Pie Chart, Table, or return to main 15. User closes the pie chart
window. menu. 16. The program displays a menu of expense reports: Bar Chart, Pie Chart,
Table, or return to main 23. The User selects: Bar Chart menu. 24. The program displays the bar
chart. 17. The User selects: or return to main menu. 25. User closes the bar chart window. 18.
The program displays a menu asking the user if they want to: Input Expense Names, Input 26.
The program displays a menu of expense reports: Bor Chart, Pie Chart, Toble, or return to main
expense amounts, Display an expense report or quit. 19. The User selects, Input expense amounts
27. The User selects: Pie Chart 20. The program calls the function InputExpenseAmounts and
returns to the main menu as there are 28. The program displays the pie chart. no expense names
to get expense amounts for. 29. User closes the pie chart window. 21. The program displays a
menu asking the user if they want to: Input Expense Names, Input 30. The program displays a
menu of expense reports: Bar Chart, Pie Chart, Table, or return to main expense amounts,
Display an expense report or quit. menu. 22. The User selects quit. 31. The User selects: or
return to main menu. 32. The program displays a menu asking the user if they want to: Input
Expense Names, input expense amounts, Display an expense report, or quit. Normal Flow 33.
The User selects quit. 1. The User runs the program. 2. The program displays a menu asking the
user if they want to: Input Expense Names, Input expense amounts, Display an expense report or
quit. 3. The User selects: Input Expense Names 4. The program calls the function
InputExpenseNames. 5. The program prompts the user for an expense name and indicates how
the user ends entering expense names. Page | 4 of 6 Page | 5 of 6 PROGRAM STYLE
REQUIREMENTS Your program should start with several comment lines that state your name
and the purpose of the program as well as the date the program was written. There should be a
comment just before each function to state the purpose of the function and what parameters it
takes as well as what it returns. Other programmers should be able to read this comment and
know how to use the function with-out reading the code inside the function. There should be a
comment before every loop and every if statement to state what the loop/if is doing.

More Related Content

Similar to someone help Python programming After the loop ends, return the expe.pdf

Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshopdhi her
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxssuser562afc1
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docxwilcockiris
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 
These are the outputs which should match they are 4 of them -outp.pdf
These are the outputs which should match they are 4 of them -outp.pdfThese are the outputs which should match they are 4 of them -outp.pdf
These are the outputs which should match they are 4 of them -outp.pdfudit652068
 
Develop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfDevelop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfleventhalbrad49439
 
Year 2 dsa c++ exercises on user defined functions
Year 2 dsa  c++ exercises on user defined functionsYear 2 dsa  c++ exercises on user defined functions
Year 2 dsa c++ exercises on user defined functionsErnesteNtezirizaza
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Here is the assignment5.java file -You are required, but not limi.pdf
Here is the assignment5.java file -You are required, but not limi.pdfHere is the assignment5.java file -You are required, but not limi.pdf
Here is the assignment5.java file -You are required, but not limi.pdfmallik3000
 
Report painter in SAP
Report painter in SAPReport painter in SAP
Report painter in SAPRajeev Kumar
 

Similar to someone help Python programming After the loop ends, return the expe.pdf (15)

Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Tutorials2
Tutorials2Tutorials2
Tutorials2
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
 
Android menus in android-chapter15
Android menus in android-chapter15Android menus in android-chapter15
Android menus in android-chapter15
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
These are the outputs which should match they are 4 of them -outp.pdf
These are the outputs which should match they are 4 of them -outp.pdfThese are the outputs which should match they are 4 of them -outp.pdf
These are the outputs which should match they are 4 of them -outp.pdf
 
Ch03
Ch03Ch03
Ch03
 
Develop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfDevelop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdf
 
Cp module 2
Cp module 2Cp module 2
Cp module 2
 
Year 2 dsa c++ exercises on user defined functions
Year 2 dsa  c++ exercises on user defined functionsYear 2 dsa  c++ exercises on user defined functions
Year 2 dsa c++ exercises on user defined functions
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Programming Fundamental handouts
Programming Fundamental handoutsProgramming Fundamental handouts
Programming Fundamental handouts
 
Here is the assignment5.java file -You are required, but not limi.pdf
Here is the assignment5.java file -You are required, but not limi.pdfHere is the assignment5.java file -You are required, but not limi.pdf
Here is the assignment5.java file -You are required, but not limi.pdf
 
Report painter in SAP
Report painter in SAPReport painter in SAP
Report painter in SAP
 

More from ishratmanzar1986

Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdf
Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdfSoru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdf
Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdfishratmanzar1986
 
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdf
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdfSe induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdf
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdfishratmanzar1986
 
Se descubre un agente infeccioso que provoca una determinada enferme.pdf
Se descubre un agente infeccioso que provoca una determinada enferme.pdfSe descubre un agente infeccioso que provoca una determinada enferme.pdf
Se descubre un agente infeccioso que provoca una determinada enferme.pdfishratmanzar1986
 
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdf
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdfScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdf
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdfishratmanzar1986
 
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdf
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdfSandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdf
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdfishratmanzar1986
 
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdf
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdfSatlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdf
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdfishratmanzar1986
 
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdf
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdfSalespeople are often stereotyped as pushy, shifty, and untrustworth.pdf
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdfishratmanzar1986
 
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdf
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdfS1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdf
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdfishratmanzar1986
 
SoftwareApplication architects works with multiple other architects.pdf
SoftwareApplication architects works with multiple other architects.pdfSoftwareApplication architects works with multiple other architects.pdf
SoftwareApplication architects works with multiple other architects.pdfishratmanzar1986
 
Social network services are emerging as a promising IT-based busines.pdf
Social network services are emerging as a promising IT-based busines.pdfSocial network services are emerging as a promising IT-based busines.pdf
Social network services are emerging as a promising IT-based busines.pdfishratmanzar1986
 
SNPs are choose all that applyGroup of answer choicesa. Single-.pdf
SNPs are choose all that applyGroup of answer choicesa. Single-.pdfSNPs are choose all that applyGroup of answer choicesa. Single-.pdf
SNPs are choose all that applyGroup of answer choicesa. Single-.pdfishratmanzar1986
 
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdf
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdfSnell Co. realiza y completa servicios para un cliente en mayo y fac.pdf
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdfishratmanzar1986
 
Skye and Chase Partnership agree to admit Rubble. Capital balances .pdf
Skye and Chase Partnership agree to admit Rubble.  Capital balances .pdfSkye and Chase Partnership agree to admit Rubble.  Capital balances .pdf
Skye and Chase Partnership agree to admit Rubble. Capital balances .pdfishratmanzar1986
 
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdf
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdfSLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdf
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdfishratmanzar1986
 
Since the Health Insurance Portability and Accountability Act (HIPAA.pdf
Since the Health Insurance Portability and Accountability Act (HIPAA.pdfSince the Health Insurance Portability and Accountability Act (HIPAA.pdf
Since the Health Insurance Portability and Accountability Act (HIPAA.pdfishratmanzar1986
 
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdf
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdfSinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdf
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdfishratmanzar1986
 
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdf
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdfSimon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdf
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdfishratmanzar1986
 
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdf
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdfSi una corporaci�n declara un dividendo en acciones del 10 sobre su.pdf
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdfishratmanzar1986
 
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdf
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdfSi la capacidad de un paciente para crear la bicapa que rodea las c�.pdf
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdfishratmanzar1986
 
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdf
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdfRouting concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdf
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdfishratmanzar1986
 

More from ishratmanzar1986 (20)

Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdf
Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdfSoru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdf
Soru 1 Bir n�kleosit ve bir n�kleotit arasndaki fark udur A. n�.pdf
 
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdf
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdfSe induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdf
Se induce un modelo de rat�n para la esclerosis m�ltiple mediante la.pdf
 
Se descubre un agente infeccioso que provoca una determinada enferme.pdf
Se descubre un agente infeccioso que provoca una determinada enferme.pdfSe descubre un agente infeccioso que provoca una determinada enferme.pdf
Se descubre un agente infeccioso que provoca una determinada enferme.pdf
 
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdf
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdfScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdf
ScenarioSamuel Fox worked as a seaman on an Exxon Shipping Co. oil.pdf
 
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdf
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdfSandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdf
Sandrine, irketine son derece sadktr ve bu nedenle ayrlmay d��nmez. .pdf
 
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdf
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdfSatlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdf
Satlardaki belirli bir y�zde deiikliinden kaynaklanan hisse bana kaz.pdf
 
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdf
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdfSalespeople are often stereotyped as pushy, shifty, and untrustworth.pdf
Salespeople are often stereotyped as pushy, shifty, and untrustworth.pdf
 
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdf
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdfS1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdf
S1 Aadakilerin t�m�, bir irketin ________ HAR� satn alarak yeni �.pdf
 
SoftwareApplication architects works with multiple other architects.pdf
SoftwareApplication architects works with multiple other architects.pdfSoftwareApplication architects works with multiple other architects.pdf
SoftwareApplication architects works with multiple other architects.pdf
 
Social network services are emerging as a promising IT-based busines.pdf
Social network services are emerging as a promising IT-based busines.pdfSocial network services are emerging as a promising IT-based busines.pdf
Social network services are emerging as a promising IT-based busines.pdf
 
SNPs are choose all that applyGroup of answer choicesa. Single-.pdf
SNPs are choose all that applyGroup of answer choicesa. Single-.pdfSNPs are choose all that applyGroup of answer choicesa. Single-.pdf
SNPs are choose all that applyGroup of answer choicesa. Single-.pdf
 
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdf
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdfSnell Co. realiza y completa servicios para un cliente en mayo y fac.pdf
Snell Co. realiza y completa servicios para un cliente en mayo y fac.pdf
 
Skye and Chase Partnership agree to admit Rubble. Capital balances .pdf
Skye and Chase Partnership agree to admit Rubble.  Capital balances .pdfSkye and Chase Partnership agree to admit Rubble.  Capital balances .pdf
Skye and Chase Partnership agree to admit Rubble. Capital balances .pdf
 
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdf
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdfSLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdf
SLICE NAMERegression and CorrelationTOPIC NAMESLICE NAMERegr.pdf
 
Since the Health Insurance Portability and Accountability Act (HIPAA.pdf
Since the Health Insurance Portability and Accountability Act (HIPAA.pdfSince the Health Insurance Portability and Accountability Act (HIPAA.pdf
Since the Health Insurance Portability and Accountability Act (HIPAA.pdf
 
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdf
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdfSinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdf
Sinaptik plastisite neden davransal ekolojide �nemli bir kavramdr.pdf
 
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdf
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdfSimon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdf
Simon, bal rasyonellik veya temelde bir bireyin rasyonel karar ver.pdf
 
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdf
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdfSi una corporaci�n declara un dividendo en acciones del 10 sobre su.pdf
Si una corporaci�n declara un dividendo en acciones del 10 sobre su.pdf
 
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdf
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdfSi la capacidad de un paciente para crear la bicapa que rodea las c�.pdf
Si la capacidad de un paciente para crear la bicapa que rodea las c�.pdf
 
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdf
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdfRouting concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdf
Routing concepts Study httpsen.wikipedia.orgwikiNetwork_addre.pdf
 

Recently uploaded

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

someone help Python programming After the loop ends, return the expe.pdf

  • 1. someone help Python programming After the loop ends, return the expense items list. INTRODUCTION The goal of this programming project is to enable students practice solving a problem that uses the 3. InputExpenseAmounts Python features of functions and lists. Create an empty list for expense amounts. Enter a loop that uses the size (you may use the len function) of the expense items list to determine number of iterations. For each iteration, display a PROBLEM message that says: How much was spent on xxoxcxxoxox expense item? Write a program that inputs names of personal expenses and a corresponding amount for each expense. where soxoxoxoxx is replaced by the name from the expense_items_list corresponding to the current The program should store all input data in lists. The program should present the user with a main menu iteration. The amount should then be input and appended to the expense amounts list. Input to select options to: validation should be done including using try ... except ... to ensure a number was entered. 1. Input personal expense names 2. Input personal expense amounts After the loop ends, return the expense amounts list. 3. Display the expenses (names and amounts) 4. Exit the program 4. DisplayExpenseReport Parameters to this function will be the expense items and expense amounts lists. The program should then allow the user to select how the information will be displayed from the list Your program should offer the user the menu of (a) table display (b) pie chart (c) bar chart. When of: the user selects option (a), the program should output column headings and then enters a loop that (a) pie chart iterates as many times as the size of the expense items list and outputs the contents of the lists. (b) bar chart The program should output some type of delineation that expenses are done and output the total of (c) table. the amounts in the expense amounts list. After exiting the loop, the program should display the totals line of the report. Use the format function and format strings. Here is an example of what the The program should achieve this in functions described below. To ensure good programming and output may look like. modularity, none of the functions should call itself and the only function calls should be in the main function. Functions should not be defined inside other functions. At the bottom, there should be a statement that calls the main function. No function call to main should happen inside the main function. Here are the descriptions of what should be in the functions: 1. main This function will have statements to call the other functions and display the main menu. The first function called will input names of the expenses into a list and assign the list to a list object. The second call will pass the expense items list to a function that inputs expense amounts into a second list that is then assigned to a list object. The third call passes the two lists to a function that will display the contents on the two lists. Here are the Python statements: expenseItems - InputExpenseNames () expenseAmounts = InputExpenseAmounts (expenseItems) 2. InputExpenseNames First create an empty list for expense items. Next, enter a loop that iterates for as long as the user responds that there are more item names to enter. In the loop, display a
  • 2. message asking the user to input the name of an expense item, then input the name and append it to the list. Then input a response to the question whether there are more item names. Page | 1 of 6 explodes =[1] # create an explodes array for the chart for expense in expenseAmounts: explodes. append (0.05) plt.pie (expenseAmounts, explodes, expenseNames More information can be found at the matplotlib home site: - https://matplotlib.org/api/_as_gen/matplotlib.pyplot.pie.html USER STORY - Read me 6. The user enters expense name-1 Your program will need to work for both User Stories below. 7. Program stores the expense name- 1 in a list 8. The user enters expense name-2. No data Flow 9. Program stores the expense name- 2 in a list 1. The User runs the program. 10. The user indicates they wish to go back to the main menu. 2. The program displays a menu asking the user if they want to: Input Expense Nomes, Input 11. The program returns the list to the main program. expense amounts, Display an expense report or quit. 12. The program displays a menu asking the user if they want to: Input Expense Names, Input 3. The User selects: Display an expense report. expense amounts, Display an expense report or quit. 4. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main 13. The User selects, input expense amounts menu. 14. The program calls the function InputExpenseAmounts and begins asking for amounts for each expense, The user enters a dollar amount (22.45) for each expense name. 5. The User selects: Table 6. The program displays the table headings and nothing else as there is no expense data. The 15. When all the expense names have an associated amount the function returns a list of the amounts program tell the user how to get back to the reports menu. in the same order as the names. 7. The User goes back to the reports menu. 16. The program displays a menu asking the user if they want to: Input Expense Names, Input 8. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main expense amounts, Display an expense report or quit. menu. 17. The User selects: Display an expense report. 9. The User selects: Bar Chart 18. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main 10. The program displays the bar chart without any data. menu. 11. User closes the bar chart window. 19. The User selects: Table 12. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main 20. The program displays the expense report. The program tell the user how to get back to the menu. reports menu. 13. The User selects: Pie Chart 21. The User goes back to the reports menu. 14. The program displays the pie chart without any data. 22. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main 15. User closes the pie chart window. menu. 16. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main 23. The User selects: Bar Chart menu. 24. The program displays the bar chart. 17. The User selects: or return to main menu. 25. User closes the bar chart window. 18.
  • 3. The program displays a menu asking the user if they want to: Input Expense Names, Input 26. The program displays a menu of expense reports: Bor Chart, Pie Chart, Toble, or return to main expense amounts, Display an expense report or quit. 19. The User selects, Input expense amounts 27. The User selects: Pie Chart 20. The program calls the function InputExpenseAmounts and returns to the main menu as there are 28. The program displays the pie chart. no expense names to get expense amounts for. 29. User closes the pie chart window. 21. The program displays a menu asking the user if they want to: Input Expense Names, Input 30. The program displays a menu of expense reports: Bar Chart, Pie Chart, Table, or return to main expense amounts, Display an expense report or quit. menu. 22. The User selects quit. 31. The User selects: or return to main menu. 32. The program displays a menu asking the user if they want to: Input Expense Names, input expense amounts, Display an expense report, or quit. Normal Flow 33. The User selects quit. 1. The User runs the program. 2. The program displays a menu asking the user if they want to: Input Expense Names, Input expense amounts, Display an expense report or quit. 3. The User selects: Input Expense Names 4. The program calls the function InputExpenseNames. 5. The program prompts the user for an expense name and indicates how the user ends entering expense names. Page | 4 of 6 Page | 5 of 6 PROGRAM STYLE REQUIREMENTS Your program should start with several comment lines that state your name and the purpose of the program as well as the date the program was written. There should be a comment just before each function to state the purpose of the function and what parameters it takes as well as what it returns. Other programmers should be able to read this comment and know how to use the function with-out reading the code inside the function. There should be a comment before every loop and every if statement to state what the loop/if is doing.