Page 26 - Introduction to Programming with Java: A Problem Solving Approach
P. 26
Project Summary xxv
Project Summary
Ch./Sec
Proj.
Academic Area
Sol. Pages
Difficulty
Title
Brief Description
4.14
10
CS
1.7
moderate
Text Parsing
Write a program that converts words to Pig Latin.
5.3
1
Math & Phys
1.2
easy
Trigonometric Functions
Write a demonstration program that asks the user to select one of three possible inverse functions, arcsin, arccos, or arctan, and input a trigonometric ratio. It should generate appropriate output, with diagnostics.
5.3
2
Math & Phys
0.7
easy
Combining Decibels
Determine the acoustical power level produced by the combination of two sound sources.
5.5
3
CS
1.5
moderate
Variable Name Checker
Write a program that checks the correctness of a user-entered variable name, i.e., whether it is: (1) illegal,
(2) legal, but poor style, or (3) good style. Assume that “good style” variable names use letters and digits only,
and use a lowercase letter for the first character.
5.6
4
CS
1.0 moderate Phone Number Implement a program that reads phone
Apago PDF Enhancer
Dissector numbers, and for each phone number, it displays the phone number’s three
components—country code, area code, and local number.
5.6
5
CS
1.1
difficult
Phone Number Dissector—robust version
Implement a more robust version of the above phone number program. Allow
for shortened phone numbers—phone numbers that have just a local digit group and nothing else, and phone numbers that have just a local digit group and an area code and nothing else.
5.8
6
Business
1.0
moderate
Net Present Value Calculation
Write a program that computes the net present value of a proposed investment, given a discount rate and an arbitrary set of future cash flows.
6.4
1
Biol & Ecol
1.5
moderate
Plant Germination Observation
Write a program that: (1) creates
an object called tree from the MapleTree class; (2) calls a plant method to record the planting of the seed; (3) calls a germinate method to record the first observation of a seedling and record its height; (4) calls a dumpData method to display the current values of all instance variables.
(continued)