pyclassgrade steve lang 03-08-2011 freelancer...

12
PyClassGrade Steve Lang 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator: blackamail Steve Lang - PyClassGrade - 03/08/2011

Upload: others

Post on 18-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

PyClassGradeSteve Lang03-08-2011

Freelancer Project

Created: 03/02/2011 at 1:32 CETProject Creator: blackamail

Steve Lang - PyClassGrade - 03/08/2011

Page 2: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

DescriptionHi!

I have written a program in python that can extract data from a file. Using the extracted data I want it to be placed in a wxPython or tkinter window. Basically I need a nice simple GUI.

Also, my program needs to be converted so there are functions and comments.

PaymentI want a .exe file and source code. So upon requesting to take the job, I will send you what I have done and full details. You will finish it and send me the .exe If it works you will receive Payment via this website's escrow service. If it is not up to standards I will tell you what needs to be changed. If you can't change it I may still buy it.

File you added :You will write a class grade book program that accepts the following from a .dat file:1. an integer from 1-25óthis integer will represent the number of students in a class.2. an integer from 4-10óthis integer will represent the number of grades to be submitted for each student inthe class. This number will be input only once. The user must input the same number of grades for eachstudent.3. Depending on the number entered in step 2 (can range from 4-10), you will ask what the percentage is foreach grade to be entered. The total must equal 100.Ask the user for the location of the .dat file and do the necessary processing to return the following:ï averages for each studentï averages, maximums, minimum for each set of grades (assignment)The .dat file will have the following information:ï a record for the number of students.ï a record for the number of grades.ï a record for the percentage for each of the grades.ï a record for each student and that studentís grades. The format for this record will be 20 characters fora name followed by 10 set of 3 numbers for the max number of grades.Below is an example of the .txt file4415252535student name 1 100090080000000000000000000000student name 2 099090080100000000000000000000student name 3 000090081100000000000000000000student name 4 1000950850750000000000000000002010-11 FBLA Competitive Events Topics 2The program must validate the following:1. the number of students accepted from record 1 is the same number of student records processed.2. the number of grades accepted from record 2 is the number of grades used. Any grades outside of the value

Steve Lang - PyClassGrade - 03/08/2011

Page 3: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

submitted in record 2 should be 000 in the student/grade record. For example: In the example file, it isstated that there would be 4 grades for each student. If a grade other than 000 were found in the fifththrough tenth grades for a student, an error should be generated.3. the percentage of grades adds up to 100.The program will process the file and produce the following reports/files:1. a report or file formatted for printing that contains the average for each student; the average, maximum andminimum for each set of grades submitted. These values should be to two decimal positions.2. a report or file formatted for printing that contains a listing of any errors that occurred while processing thefile.The values that should be returned for the example file are:ï average for studentï student name 1 - 57.50ï student name 2 - 92.35ï student name 3 - 77.75ï student name 4 - 86.25ï for grade 1 - average is 74.75, maximum is 100, minimum is 0ï for grade 2 - average is 91.25, maximum is 95, minimum is 90ï for grade 3 - average is 81.50, maximum is 85, minimum is 80ï for grade 4 - average is 68.75, maximum is 100, minimum is 0

Steve Lang - PyClassGrade - 03/08/2011

Page 4: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Work is done :

Validation of the first code:

test_orig.dat :4415252535student name 1 100090080000000000000000000000student name 2 099090080100000000000000000000student name 3 000090081100000000000000000000student name 4 1000950850750000000000000000002010-11 FBLA Competitive Events Topics 2

python console mode :

Steve Lang - PyClassGrade - 03/08/2011

Page 5: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

for the next examples the DAT file is

test.dat:1051525251520student name 1 100090080070042000000000000000student name 2 099090080100080000000000000000student name 3 010090081100040000000000000000student name 4 100095085075070000000000000000stuname4 059042086012066000000000000000sn5 058042036078091000000000000000s t u den t name6 069082032062054000000000000000Nobody 002003001005004000000000000000Steve 098097095099098000000000000000s tud e t name7 0960580470650320000000000000002010-11 FBLA Competitive Events Topics 2

python console mode for the main code

Steve Lang - PyClassGrade - 03/08/2011

Page 6: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

GUI mode :Program srtarts :

Import DAT File : test.dat

Steve Lang - PyClassGrade - 03/08/2011

Page 7: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Process:

Both files can be saved.DAT File can be modified in-app (with ERRORs):

ERRORs : 10 students (only 4 are listed), 5 grades (only 4 percentages), percentages added up equals 80 (should be 100), last grade of student 2 is 004 (should be 000), fisrt grade of student 4 is 101 (should be between 000 and 100)

Steve Lang - PyClassGrade - 03/08/2011

Page 8: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Letʼs process:

Correction : 4 grades

Process:

Steve Lang - PyClassGrade - 03/08/2011

Page 9: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Correction Grade 4 = 35:

Process:

Correction : Number of students = 4:

Steve Lang - PyClassGrade - 03/08/2011

Page 10: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Process:

Correction Grade 10 for student name 2 is 000:

Process:

Steve Lang - PyClassGrade - 03/08/2011

Page 11: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Correction Grade 1 for student name 4 is 100:

Process (No ERRORs anymore):

Steve Lang - PyClassGrade - 03/08/2011

Page 12: PyClassGrade Steve Lang 03-08-2011 Freelancer Projectjob.steve-lang.com/download/PyClassGrade.pdf · 03-08-2011 Freelancer Project Created: 03/02/2011 at 1:32 CET Project Creator:

Save Both Files :First the DAT File:

then the Processed File:

Quit

... not really cause I love this Application ! :)Steve Lang - PyClassGrade - 03/08/2011