QuestionQuestion

Transcribed TextTranscribed Text

Programming Task 3 • Develop a Python program to solve a problem • Follow good program development and coding style practices • Develop a Graphical User Interface Write a Python program to solve the following problem. Your solution should include a readme.md file (which includes details of how to run your assignment) and your Python program in a file named figui.py , and be submitted as a single .tgz file named a4.tgz . You should ensure your solution works using the Python 3 interpreter on turing. Bob is drowning in data. He has run multiple analyses with your financial independence Monte Carlo simulation, saving the output.txt from each. However, he's finding it too difficult to search through all the data, and wants you to develop a simple user interface for him to easily view the parts of the data he considers most important. What he wants is the ability to select a file to open, and then have your program analyse it to display the maximum, minimum, and average balance (each to two decimal places) for the final year in all the simulations in that file. He then wants to be able to open a new file without having to restart your program. Note that Python's string's split method may be useful for analysing data read from each line of an input file. Note that program specifications are not always clear. If you are uncertain about any aspect, you are typically better off asking than making assumptions. Please use the appropriate discussion forum to ask for clarification, if required. Aims Instructions Problem Consider the following output from the financial independence Monte Carlo simulation: 996450.00 997127.57 991738.31 991570.19 998556.25 1000484.89 997192.45 990387.97 9756 23.83 958100.54 942007.60 929704.62 918233.23 900004.58 887633.66 870515.07 847598.11 818308.90 789771.25 758229.52 successful 996450.00 990742.82 990672.72 985749.77 975074.53 968791.87 957437.07 939607.47 91316 8.46 879636.30 848867.03 821970.21 788351.47 747336.70 697057.29 645413.23 584250.92 516481.62 443916.83 366322.98 successful 996450.00 984864.56 966349.06 946290.65 930039.13 906929.30 889398.10 869435.43 84683 9.11 825558.81 801240.47 772569.28 744955.97 719052.12 684296.49 648650.32 608710.95 563139.21 514628.47 459006.28 successful 996450.00 991021.06 987994.35 990566.15 999510.05 1001476.72 999795.91 989668.45 9784 68.37 974108.38 964150.93 951465.49 930572.62 900426.75 874582.85 850496.38 822418.99 793876.87 761754.89 722025.21 successful 996450.00 988315.40 971097.67 953592.83 928254.94 897432.03 858915.51 819282.51 77448 0.58 733599.88 690442.87 649415.01 608173.95 560050.88 507090.65 449033.86 391749.60 330482.33 267064.66 200467.62 successful 996450.00 995583.14 990118.07 986506.97 976976.67 959630.10 941217.41 920010.23 88948 2.94 863641.31 828430.79 792768.97 758749.57 716961.68 669008.56 618751.16 567777.90 514683.54 460895.87 404014.99 successful 996450.00 1001025.26 1004000.64 1006275.12 1005355.03 1001912.09 994816.68 990644.97 978347.15 964815.09 956917.20 938870.90 922686.48 898394.32 877677.78 860909.80 84250 7.64 822149.32 805462.05 789396.32 successful 996450.00 983440.51 974691.77 959623.50 942173.09 915875.19 885931.86 853122.84 81330 0.26 772777.32 731838.06 682693.23 635092.66 580649.62 520025.10 452890.62 378359.38 302885.26 221603.17 135806.35 successful 996450.00 982870.36 962530.78 938946.45 918506.32 895509.32 868759.74 835849.95 79906 6.21 763733.44 726344.68 686079.46 638342.18 594013.99 546518.85 497866.11 448964.84 398676.51 344741.56 288125.35 successful 996450.00 989554.74 986020.89 987178.50 991353.62 999140.09 1003679.71 1015112.14 102 1784.56 1024498.81 1028085.23 1031613.11 1034157.27 1041985.32 1057072.05 1068082.57 1076359.21 1093909.70 1115623.15 1130307.06 successful A potential interface presenting the required information from that file may look like the following:

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

#Importing tkinter

from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tkinter import messagebox
from tkinter import StringVar

# Construct Tk GUI
window = Tk()

# Configure spacing of GUI
window.columnconfigure(0, weight=1)
window.rowconfigure(0, weight=1)

# Set frame of GUI
frame = ttk.Frame(window, padding='5')
frame.grid(column=0, row=0, sticky=(...

By purchasing this solution you'll be able to access the following files:
financial_independence.py, bobsimulation.txt, output.dat, output.data and OUTPUT.png.

$40.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats