CS 149 01 (Zelle) |
Fall 2014 |
Syllabus | Example Programs | C++ Reference | Another Reference | Another Reference | Linux Lab | Manhattan VC | Dr. Zelle |
---|
Vector Polynomial. Do an implementation of sparse polynomial using the vector class from the Standard Template Library.
Linked Polynomial. Use the linked list technique to implement Polynomial with integer coefficients and accommodate sparse polynomials by only storing terms having non-zero coeficients.
Chapter 10 programming exercise #3. Use my provided (static array) portfolio program as a starting point.
Write at least 4 different basic Input-Process-Output style programs. Here are are some examples to choose from:
Write a program to convert temperatures from Fahrenheit to Celsius.
Write a program to determine the distance in miles to a lightning strike. The user input is the number of seconds between the flash and the thunder. Assume sound travels at 1100 ft/sec. A mile is 5280 ft.
Write a program that computes the volume and surface area of a sphere given its radius as input. You can get pi from the math library as M_PI.
Write a program computes the area of a triangle give the lengths of its three sides a, b, and c.
Write a program that determines the distance between two points (x1,y1) and (x2,y2).
Do programming programming exercise #2 from Chapter 8. Hint: use integer math and the / and % operators.
Do programming exercise #4 from Chapter 8. You may ignore inputs that do not have real solutions.
Chapter 8 Programming Exercises: 3--6 and 8--10.
Chapter 9 Programming Exercises: 3 or 4, 6
Write a program that reads a text file, converts it to LF language and writes the output to another file. A word is translated to LF by inserting "lf" after the first vowel of the word then repeating the vowel and appending the rest of the word. For example "Elmer shot Bugs Bunny" becomes: "Elfelmer sholfot Bulfugs Bulfunny".