Homework - JavaDoc Intro

docx

School

Cincinnati State Technical and Community College *

*We aren’t endorsed by this school

Course

101

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by ChiefKangarooPerson772

Report
8aba21eef24dbb5f5c75153ae4c7dff8435b8c6e.docx March 25, 2024 Page 1 of 2 IT-162 Java 2 Homework: JavaDoc Due Date: See BlackBoard What is the JavaDoc? JavaDoc is a documentation generator created by Sun Microsystems for the Java language (now owned by Oracle Corporation) for generating API documentation in HTML format from Java source code. The HTML format is used for adding the convenience of being able to hyperlink related documents together. The "doc comments" format used by Javadoc is the de facto industry standard for documenting Java classes. Some IDEs, like IntelliJ IDEA, NetBeans and Eclipse, automatically generate Javadoc HTML. Many file editors assist the user in producing Javadoc source and use the Javadoc info as internal references for the programmer. Javadoc also provides an API for creating doclets and taglets, which allows users to analyze the structure of a Java application. Javadoc does not affect performance in Java as all comments are removed at compilation time. Writing comments and Javadoc is for better understanding the code and thus better maintaining it. Assignment – Annotations & JavaDoc Comments Problem 1 – Create PizzaSales##.java (where## is your initials) that allows the user to get pizza sales totals. Create an application to allow Northside Pizza to total up pizza sales for the day. This program needs to accept a total number of pizza sales based on the number of sales entered by the user. (10 points) Use an array to store each pizza sales amount. Print out the total sales for the day. (10 points) You must use the ReadFloatFromUserMethod and ReadIntegerFromUser methods. (20 points) Print out the highest sale for the day. Print out the lowest sale for the day. Print the average price for an order for the day. (10 points) Northside Pizza gives 2% commission of total sales to all the employees working that day. Allow the user to enter the number of employees working for the day. Print the total each employee will receive as commission. (10 points) You must include at least 3 methods in your program. (10 points) Be sure to include the JavaDoc comments above the class name and all method names. (10 points) For example: Enter the total number of sales for the day: Enter ticket # amount: <<<this needs to loop for x# of times based on user input Total sales for the day: Highest sale for the day: Lowest sale for the day: Average sale amount for the day: Total employee commission is: Per employee commission amount: Problem 2 – Create a JavaDoc over the project your created in Step 1. Be sure to include include JavaDoc comments, author, and version. Provide a print screen of your JavaDoc. (10 points) Problem 3 – Provide a print-screen of your test results in your homework submission. (10 points)
8aba21eef24dbb5f5c75153ae4c7dff8435b8c6e.docx March 25, 2024 Page 2 of 2 Example: Donna from Northside Pizza sold 5 orders today. She has 2 people working today. She wants a program to allow her to enter each ticket sale and output the total sales, highest ticket sale, lowest ticket sale, average ticket sale, and commission to pay to each employee working that day. She can have anywhere from 1 to 20 employees working each day. Here is an example of the input and output for this problem. Sales Ticket 11:30AM = $40.00 total Sales Ticket 11:32AM = $10.00 total Sales Ticket 12:30PM = $100.00 total Sales Ticket 2:30PM = $200.00 total Sales Ticket 3:30PM = $80.00 total She manually calculates this today but needs a program to add this up and give her the numbers so she can operate her business more efficiently. Total sales = $430.00 Average sales = $86.00 Highest sale = $200.00 Lowest sale = $10.00 Commission for each employee = $4.30
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help