Java Programming

profileSagat
HelpfulTipsforProgrammingProjectOne.pdf

Helpful Tips for Programming Project One Creating the solution to a programming problem is not an exercise in finding an answer on the Internet and submitting it as your own work. Submitting someone else’s work as your own is plagiarism. Plagiarism is an example of Scholastic Dishonesty. Copying all or part of a solution from a web site is plagiarism.

Worse, you have not learned anything about how to use a computer program to solve a problem. You are always far better off submitting your own original work. You will always be given credit for attempting to solve the problem. On the other hand, if plagiarism is detected, you will receive a grade of zero (0).

Start early. Read the book. Ask for help if you get stuck. Do your own work. Do not share your work with any other students. Do not ask any other students to share their work. There are no group projects in this course.

In Programming Project One you are asked to prompt your user for several values. Be clear and specific in your wording of these prompts. If you are asking for weight in kilograms, ask for weight in kilograms.

Consider using a floating-point data type like double to store numeric values. This will allow for the broadest range of possible input values.

To guard against using bad values, you must validate user input. The best way to do this is with an input validation loop. The subject of Input Validation Loops is covered in section 4.3 of our textbook.

Remember, upper-case “R” and lower-case “r” are considered equivalent.

Be sure to allow your user to run the program repeatedly.

Do not forget to give your user a convenient way to terminate the program.

Do a Top-Down analysis and divide your program into components. The classic Input-Process-Output analysis is not a bad place to start. You might even consider isolating the calculation using the revised Smithfield formula as a function. Use your knowledge of the hierarchy of operations to evaluate the Smithfield formula correctly. Be careful.

Test your program before submitting it. There are several examples in the instructions. Use these input values to confirm that your program is working correctly.