Question
in java with working code Submit source code and JavaDocs documentation Attached a word file with example and instruction for JavaDocs Documentation Create UML diagram
in java with working code
Submit source code and JavaDocs documentation
Attached a word file with example and instruction for JavaDocs Documentation
Create UML diagram and submit
Example program with JavaDoc Documentation:
/**
* The Calculator class represents a simple calculator with basic arithmetic operations.
*/
public class Calculator {
/**
* Adds two numbers.
*
* @param num1 The first number.
* @param num2 The second number.
* @return The sum of num1 and num2.
*/
public int add(int num1, int num2) {
return num1 + num2;
}
/**
* Subtracts the second number from the first number.
*
* @param num1 The first number.
* @param num2 The second number.
* @return The result of subtracting num2 from num1.
*/
public int subtract(int num1, int num2) {
return num1 - num2;
}
/**
* Multiplies two numbers.
*
* @param num1 The first number.
* @param num2 The second number.
* @return The product of num1 and num2.
*/
public int multiply(int num1, int num2) {
return num1 * num2;
}
/**
* Divides the first number by the second number.
*
* @param num1 The dividend.
* @param num2 The divisor.
* @return The result of dividing num1 by num2.
* @throws ArithmeticException If the divisor is zero.
*/
public double divide(int num1, int num2) {
if (num2 == 0) {
throw new ArithmeticException("Cannot divide by zero");
}
return (double) num1 / num2;
}
}
In Command prompt:
1. set the project path
2. type javadoc Calculator.java
3. to see documentation, open Caculator.html in the browser
In the coming year or so, you will be applying to several colleges for transfer. Your job for your final project is to create a College Transfer Application Tracker. You will create a GUI for this project so that you can enter the college name, address, date of application, cost, where you applied (common app, or other sites), recommender name(s), email address, date recommendation requested, date recommendation required (room for more than one recommendation (person recommending) if necessary), date of expected acceptance letter, whether you have written your essay, whether you have submitted your transcripts. Look at CommonApp, and the application sites for some colleges you are thinking of applying to make sure you have all the information you need on your College Transfer Application Tracker. All this information requires more than one class in addition to your GUI. The information should be written in a file (binary or text). You should be able to search for a particular transfer application from the file and print it out in a "nice" (understandable) way. Your code should be documented using JavaDocs. Outcomes Assessed: - Variables and assignment statements - Local variables - Data types and expressions - Simple flow control - Logical expressions - Multiway branches - Designing loops, for loops and while loops - Containers: Arrays, ArrayLists, etc. - Input and output: Streams and Files - Classes and abstract data types - Interfaces - Programmer defined functions - Program style - JavaFX GUI design principles - Object-Oriented design - Testing and debugging techniques - Code documentation (JavaDocs) C: \Users\Bhanu>javadoc Calculator.java Loading source file Calculator.java... Constructing Javadoc information... Standard Doclet version 1.8.0_202 Building tree for all the packages and classes... Generating . \calculator\Calculator.html... Generating . \calculator\package-frame.html... Generating . \calculator\package-summary.html... Generating . \calculator\package-tree.html... Generating . \constant-values.html... Building index for all the packages and classes... Generating . \overview-tree.html... Generating . \index-all.html... Generating . \deprecated-list.html... Building index for all classes... Generating . \allclasses-frame.html... Generating . \allclasses-noframe.html... Generating . \index.html... Generating . \help-doc.html... PACKAGE CLASS TREE DEPRECATED INDEX HELP PREV NEXT FRAMES NO FRAMES ALL CLASSES A CDMS A add(int, int) - Method in class calculator.Calculator Adds two numbers. C calculator - package calculator Calculator - Class in calculator The Calculator class provides basic arithmetic operations. Calculator() - Constructor for class calculator.Calculator D divide(int, int) - Method in class calculator.Calculator Divides the first number by the second number. M main(String[]) - Static method in class calculator.Calculator Main method to demonstrate the use of the Calculator class. multiply(int, int) - Method in class calculator.Calculator Multiplies two numbersStep 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