Question
1-Add a set of comments to the top of your program and include the following information: ---Full name ---Date of submission ---A brief description of
1-Add a set of comments to the top of your program and include the following information:
---Full name
---Date of submission
---A brief description of what the program is about
2-Add comments to your program to full document it by describing the most important processes.
3-Your variables names should be very friendly. This means that the names should have meaning related to what they are storing. Example: Instead of naming the variable that stores the hours worked for an employee in a variable called x you should name it HoursWorked.
4-Your logic is more important than syntax. This course is about problems solving and not Java. It is possible to get a higher score with a sound logic and possible that you get minimum score with a running program but with a logic that is far from correct. Coding in Java is the last step you need to undertake after:
a---Fully read the specifications of the problem.
b---Create a flowchart. (not applicable to hoe work past #2)
c---Translate your flowchart to a pseudocode (no need to submit this part..your Java program will be used as the pseudocode) (not applicable to hoe work past #2)
d---Outline your solution using UML (will be required when covered)
e-Code your solution in Java
5-Submit your Raptor flowchart and .java program (note that I only need your source code and not all files that are normally part of your project folder) (not applicable to hoe work past #2)
6-Your program MUST be very modular: use of different sections for different processes (i.e. declarations, input, calculations, output) and when functions are covered, all your program afterward MUST make good use of functions (functions required for this assignment).
7-Your output MUST friendly (using labels for all info accordingly) and do display all input and calculated fields.
Problems specification:
The FEPA (Fictious Environmental Protection Agency), is tasking you for coding an application that monitors the ph of a series of lakes in Florida.
Your input consists of the following:
-the name of the lake.
-the ph of the lake (acidity value) (value between 0 and 14..must be validated)
-the temperature of the lake for this time of the year.
What to do?
Code a function for each of the following processes:
-each input must be coded in a separate function.
-code a single function that determines if a lake is acidic, neutral, or basic.
This function should not print anything but should inform main() of the acidity of the lake.
A lake is deemed acidic if its ph is between 0 and 7, neutral if it is 7, and basic if it is between
-code a function that print a report showing:
Lake name, lake ph, lake temperature, and the status of the lake (acidic, neutral, or basic)
-Code a function/routine that after the user complete the input of all available lakes, displays the lake info. That is the most acidic. Also, display how many lakes the user input for this study.
-Required: your program must prompt the user to input a new lake or quit and must validate the user answer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started