
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Class: CS I PROG/PROBLEM SOLVING; Subject: Computer Science; University: Kent State University; Term: Spring 2008;
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

You will write two programs for this project. The first program “removedups” eliminates double entries in an array of integers. The second program “checker” corrects simple syntax errors in English text.
1. Removedups. Write a program that accepts a sequence of integers (some of which may repeat) as input into an array. Write a function that processes the array so that any duplicate values are eliminated. Write an output function that prints out the values of the array and the sum of the values. You can assume that there are no more than 20 integers in the input. But there may be less. Zero signifies the end of input. The zero should NOT be printed. For example, when the following input is provided to your program: 5 6 22 5 22 7 6 0 your program should print: The sum of 5 6 22 7 is 40
2. Checker. Write a program that reads in English text. The program should output the text with spacing corrected and with letters corrected for capitalization. In particular, in the output text all strings of two or more blank spaces should be compressed to a single blank. Each sentence (a letter starting the text and following a dperiod) should start with an uppercase letter. There should be a space after a comma or a period. No other formatting is required. For example, the input: the Answer to life,the Universe, and everything is 42. that is all. Do , or do not. there IS No 'try'. Should produce the following output: The answer to life, the universe, and everything is 42. That is all. Do, or do not. There is no 'try'.