[Solved] COP290 Major Exam

$25

File Name: COP290_Major_Exam.zip
File Size: 160.14 KB

SKU: [Solved] COP290 Major Exam Category: Tag:
5/5 - (1 vote)

Your program should take as input the names of 2 text documents. Write a program which lists the information for each of those documents-

  1. The number of single-letter words in each document (e.g. I, a) (#a1,#a2)
    • marks)
  2. The number of 3 letter words (e.g. put, let) (#b1,#b2)
    • marks) c. The number of words that contain say upto 3 letters from your first name (any permutation is valid). For example- If your name is Daniel Radcliffe, then find the number of words having any 3 letters from the set [d, a, n, i, e, l] in them in any permutation. (#c1,#c2)

(6 marks) d. The number of punctuation symbols that are present in sentences that are greater than 10 words. (#d1,#d2)

(2 marks) e. List of common occurrences of words in both the documents from part (a), (b), and (c) mentioned above. Example- list of common single-letter words in both documents, list of common 3-letter words in both documents and so on.

(3marks) f. Draw a bar chart (shown below) to visually present this data. The data to be plotted is the set {(a,#a1,#a2),(b,#b1,#b2),(c,#c1,#c2),(d,#d1,#d2)}

  • marks)

Reviews

There are no reviews yet.

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

Shopping Cart
[Solved] COP290 Major Exam
$25