In this lab, you should develop basic Java programming skills.
In groups of three, develop an algorithm (pseudocode) that will solve the following problem:
Suppose Superman travels at 1.3 times the speed of light (300,000,000 meters/sec). Suppose further that his destination is only illuminated by a spotlight located at Superman's point of origin. Write a program that will ask the user to enter the amount of time it takes Superman to get to his final destination. The program should then display the amount of time that Superman will need to wait in the dark if he turned the spotlight on immediately before beginning his travel.
Individually create a project, write a console mode Java program, and test it.
Each student should submit a lab report. The report should be self-contained and in your own words. That is, it should be possible for someone to understand what you did and why without seeing anything other than your report. Your report should include:
As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.
Your grade will depend on quality of design, clarity of code and documentation, as well as whether your program produces the correct results. If you have any questions, consult your instructor.
| © 2001-2006 Dr. Christopher C. Taylor | Office: CC-36C | Phone: 277-7339 |