Lukket

write python software program

Write a program that shall show the most frequently used words in a text file.

The program must have the comment at the top of the program file: "I certify this submission as my own original work completed in accordance with the Suffolk University Academic Integrity Policy. ZZZ", where ZZZ is the full name of the student.

The program shall have a GUI consisting of a menu bar with a single menu button "File," opening a pull-down menu with two items, "Open" and "Exit"; a Text box widget in the "readonly" state; and a Spinbox with the integer values of 1, 10, 50, and 100. The initial value of the Spinbox shall be 1. The current value of the Spinbox is referred to in this document as N. The main window of the program and the Textbox shall be resizeable.

The "Open" item shall display an appropriate file selection dialog. If the user selects a file that does not exist or is not readable, the program shall display a warning dialog and ignore the operation, but shall not terminate.

If the selected file is readable, the program shall read and process its content one line at a time. For each line, the program shall split it into words using split(). The program shall normalize each word, that is, convert it to the upper case and strip() all of the following characters: !@#$%^&*()_+~`-="';:<>,.?/\|[]{}

The program shall count each normalized word using a Python dictionary. The words shall be the dictionary keys, and their respective counts shall be the values. Thus, if a word is not in the dictionary, it shall be inserted with the value of 0; otherwise, its count shall be incremented. The program shall not use a Counter object.

The dictionary shall be converted into a list of two-element tuples. The second value of each tuple is a word, and the first value is its count. The list shall be sorted in situ in the decreasing order. The words from the first N tuples shall be displayed in the Text box, separated by commas.ÂÂ

If the user changes the value of the Springbox, the content of the Text box shall be updated accordingly.

If the user successfully opens another file, the content of the Text box shall be overwritten.

The "Exit" item shall quit() the program. Remember that calling quit() in Spyder terminates the Python kernel!

Suggested Implementation Sequence

Implement the GUI without functionality (the "wireframe").

Implement "Exit".

Implement "Open", including the warning diaplog (test for non-existent files!)

Read the file and print the normalized words using print(). Do not forget to remove the print() from the final version.

Count the normalized words using a dictionary.

Convert the dictionary into a sorted list of tuples and print() the first ten tuples.

Insert the comma-separated words into the Text box.

Activate the Springbox.

Implement the Text box overwriting.

Færdigheder: C programmering, Ingeniørarbejde, Java, Python, SQL

Se mere: suffolk university, python button, c# read and write text file, academic keys, test case software, python to java, هل تحتاج إلى المساعدة, فرى لانسر فى مصر, տելե մարկետ, эксперт, фріленсер, фрілансерів, фрілансера, фрілансер сайт, фрілансер ровно, фрілансер ком, фрілансер вакансії, фріланс ком, фрелансер, фреланс, фреелансер, телемаркет в ереване, телемаркет, танк олаен кодер, сео эксперт

Om arbejdsgiveren:
( 121 bedømmelser ) Calcutta, India

Projekt-ID: #7427312

12 freelancers are bidding on average ₹246/hour for this job

srinichal

I can deliver the project as per your specifications .

₹263 INR / hour
(87 bedømmelser)
6.4
mz1

Hello, Previously, I have exactly written similar to your mentioned software. It will be easy for me to implement and provide this software. Regards

₹277 INR / hour
(4 bedømmelser)
3.8
eitan1195

A proposal has not yet been provided

₹555 INR / hour
(4 bedømmelser)
2.9
fastdev93

I am an expert python developer and can provide you this work in 50$ in 2 days. Regards Mujtaba Aslam

₹100 INR / hour
(4 bedømmelser)
1.0
prasannakumar20

A proposal has not yet been provided

₹277 INR / hour
(0 bedømmelser)
0.0
awantech

Hello Dear, I have professional skills in python desktop applications.I have read details and would like to work with you.

₹277 INR / hour
(0 bedømmelser)
0.0
billeeng

A proposal has not yet been provided

₹222 INR / hour
(0 bedømmelser)
0.0
dannysood

Hello Sir, First of all kudos for such a detailed job description. This helps in better estimation of the work required. After carefully reviewing the description I believe I am apt for this job. With under 4+ yea Mere

₹222 INR / hour
(0 bedømmelser)
0.0
chinmayhosmane

I have experience in GUI framework such as tkinter, simplegui. Very good experince in file and text processing familiar with xml ,excel and docx file parsing. Created a simple text editor using Tkinter module.

₹266 INR / hour
(0 bedømmelser)
0.0
rajendrakadam249

A proposal has not yet been provided

₹111 INR / hour
(0 bedømmelser)
0.0
Fosterr

Hi, I can deploy this program in 2 days. Have an experience in developing on Python with Qt . Interface of an application will written using PyQt or PySide, and main logic will use Python for get data you want. Think n Mere

₹277 INR / hour
(0 bedømmelser)
0.0
Tondron

The project is pretty simple, are there any other constraints such as using a specific GUI took kit such as Qt, Wx, Tkinter etc? Do you require styling of the gui elements or only functionality? I think you should be a Mere

₹100 INR / hour
(0 bedømmelser)
0.0