[SOLVED] C# python Homework #4

$25

File Name: C#_python_Homework_#4.zip
File Size: 197.82 KB

5/5 - (1 vote)

Homework #4

100 points

For this homework, you will work independently to solve one problem in two programming languages, Python 3 and C#. Your program files will be called hw4.py and hw4.cs, respectively.

Part of the grading for this assignment will be based on your usage of Python 3 and C# features that are appropriate to the problem. In particular you should utilize language features that make your program shorter, more readable, and/or more reliable.

In a PDF report file, titled hw4.pdf, provide a concise paragraph that indicates what aspects of your programs work correctly and what does not. Submit a zip archive that contains your three files: hw4.py, hw4.cs, and hw4.pdf.

Mail merge program.You will write two equivalent programs: one in Python 3 and one in C#. They will be invoked on ceclnx01 as shown here:

> python3 hw4.py a.tsv a.tmp

> mcs hw4.cs
> mono hw4.exe a.tsv a.tmp

where hw4.exe is your compiled C# code. The first command line argument is a tab separated file of records a.tsv and a.tmpis a form letter, with embedded codes. Sample .tsv and .tmp files are provided in the archive TestFiles.zip

Here are the contents of the a.tsvfile:

NAME ID COURSE DUE SUBMITTED MINUTESLATE

Steve Smith smiths 465 2/5/2016 23:59:00 2/6/2016 0:45:00 46
Mark Watson watsonm 465 2/5/2016 23:59:00 2/6/2016 3:47:00 228
Kenny Briddle briddlek 465 2/5/2016 23:59:00 ontime 0
Bill Haygood haygoodb 565 2/5/2016 23:59:00 ontime 0

(continuation)

LATEDEDUCTION P1 P1COMMENTS P2 P2COMMENTS SUBTOTAL TOTAL
1 35 Excellent work 65 Nice 100 99

5 30 Test case 10 provides 65 Well done 95 90

incorrect output;

otherwise, nicely done.

0 15 Many test cases missing. 55 Missing the report. 70 70

0 0 Not attempted 65 Nice 65 65

Here are the contents of the a.tmpfile:

Name: <<NAME>> (<<COURSE>>)

ID: <<ID>>

Total: <<TOTAL>>/100 Subtotal: <<SUBTOTAL>> Total deductions: <<LATEDEDUCTION>>

Time due: <<DUE>>

Submitted: <<SUBMITTED>>

Late minutes: <<MINUTESLATE>>

Late deduction: <<LATEDEDUCTION>>

Problem 1: <<P1>>/35

<<P1COMMENTS>>

Problem 2: <<P2>>/65

<<P2COMMENTS>>

When run, your program should produce one output file for each record in the file. The file should be named using the ID column. In this case, the four files should be smiths.txt, watsonm.txt, etc. Here is one of the output files:
Name: Steve Smith (465)

ID: smiths

Total: 99/100 Subtotal: 100 Total deductions: 1

Time due: 2/5/2016 23:59:00

Submitted: 2/6/2016 0:45:00

Late minutes: 46

Late deduction: 1

Problem 1: 35/35

Excellent work

Problem 2: 65/65

Nice

Notes:

  • All columns in the tsv file will have a unique name.
  • One of the tsv columns will have the name ID.
  • Any string inside the tmp file having the form << letters +>> is considered a tag.
  • The field values in the tsv file may contain << and >>. These values are to be treated literally and not to be substituted as a tag.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] C# python Homework #4
$25