Java Question
How to Submit Your Assignments (with Zip File) In regards to ALL PROGRAMMING ASSIGNMENTS in ITP120, please see the guidelines below: 1. 2. 3. 4. 5. Each submit must include your java file (in .txt or .java file format) and a screen capture of the output from your program run. Proper heading on all assignments. All turned in pages/files must include on top your name, assignment/unit number and a quick description of what you’ve done. Example: /** * @author: Your name and last name * Unit 1 * Quick summary of the program **/ Comments within your code. Please look up how to do JavaDoc style comments. Using Eclipse IDE, you can have Eclipse create the comments sections for you automatically. This is critical in going forth in your future classes. You should have method documentations as well as inline documentations. Example: /** * Adds two number and returns the sum * @ param int num1: First number * @ param int num2: Second number * @return int: The sum in an integer format **/ public int sum(int num1, int num2) { // Adding the two number int sum = num1 + num2; return sum; } DO NOT COPY THE ASSIGNMENTS OFF THE WEB! Not only will you get a 0 on the assignment but you will also reported to the school for plagiarism. There have always been one or two students each semester thinking they are sly and I will not notice but I have graded so many that I do know when it is copied! So don’t! I also place heavy points on comments so be sure to comment and write pseudo-code for your program to help assist with your coding. Submit properly! I need your Java files to be zipped up inside of a single folder with the the following name template: ‘LastName_FirstName_Unit#’. The zip file should also be of the same name ‘LastName_FirstName_Unit#.zip’. Since there are many of you currently signed up for class, it would be hard to grade and spend proper amount of time on comments if the assignments are not turned in properly and on time. I will not grade incorrect submissions as there will be many files submitted by all of you and confusion can occur easily. Programming Assignments Grading Rubric: Required for each programming assignment Points Java Program 50 Comment lines in the Java Program 20 Screenshot of output from program run 30 Total 100 Extra credit: Program Pseudocode 10 ○ ○ ○ Java program must be error free when I run it on my computer comment lines must be in detail and easy for the reader to follow Screenshot can be in in an image file format or paste into a docx file How to Submit Your Assignments (No Zip File) In regards to ALL PROGRAMMING ASSIGNMENTS in ITP 120, please see the guidelines below: 1. Each submission must include your java file (.java file format). 2. Proper heading on all assignments. All Java classes must include on top as JavaDoc comments your name, assignment/unit number and a quick description of what you’ve done. Example: /** * @author: Your name and last name * Unit 1 * Quick summary of the program **/ 3. Comments within your code. Please look up how to do JavaDoc style comments. This is critical in going forth in your future classes / programming work. You should have method documentations as well as inline documentations for more complex lines. Example: /** * Adds two number and returns the sum * @param int num1: First number * @param int num2: Second number * @return int: The sum in an integer format **/ public int sum(int num1, int num2) { // Adding the two number int sum = num1 + num2; return sum; } 4. DO NOT COPY THE ASSIGNMENTS OFF THE WEB! Not only will you get a 0 on the assignment but you will also reported to the school for plagiarism. There have always been one or two students each semester thinking they are sly and I will not notice but I have graded so many that I do know when it is copied! So don’t! I also place heavy points on comments so be sure to comment and write pseudo-code for your program to help assist with your coding. 5. Submit properly! I need your Java files attached separately (no zip file, please). Do not change the name of your class files – due to how Java executes code, the file name must match the class name EXACTLY, proper case included. 6. Java programs that you submit MUST be able to be run, or they will receive no more than half the points for the program (each programming assignment is worth 100 points – where one UNIT contains more than one programming assignment, 200 points will be possible for that UNIT so that each program is still worth 100 points each). Module 10: Chapter 7, Part I, Assignment Problem 1 In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that dive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the diver’s score. Write a computer program that inputs a degree of difficulty and seven judges’ scores and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges. Problem 2 Please see how you can simplify the program that is attached at the bottomcafeRanking.java Try to eliminate the switch altogether – you will still have to use an array to compute the total for each ranking (if a rank of “2” was selected 3 times, display 3 for ranking “2”, if 5 had selected ranking “1”, display 5 for “1”, etc…). Module 11: Chapter 7, Part II, Assignment Problem 1 Given an array as follows long [] [] nums = {{1,2,3,4,5}, {6,7,8,9}, {10,11,12,13,14,15}, {16,17,18,19,20}, {21,22,23,24,25}}; Build the following methods: 1) calcTotal: The method should accept a two-dimensional array as an argument and return the total of all the values in the array. 2) calcAverage: The method should accept a two-dimensional array as an argument and return the average of all the values in the array. 3) calcRowAverage: The method should accept two parameters: 1) a two-dimensional array as an argument and 2) an integer that represents a row number for calculations. Return the average of all the values in that row in the array. Problem 2 Two arrays are given: String cars[]={“Honda Accord”, “Chevrolet Suburban”, “Dodge Charger”, “Kia Optima”, “Acura TLX”}; integer prices[]={17000, 48000, 24000, 22500, 17999}; Write a method that finds the cheapest car name, and returns back a String stating what the car name is and how much it costs. The method should take two arrays as two parameters (you do not need to make a two dimensional array out of these arrays). Call this method from main(), receive the result, and show the result Module 12: Review, Assignment Certification Assessment Simulator Assignment ===================== For this assignment you will create a set of classes from scratch (no provided class files for this assignment) that work together to simulate an organization providing technology certifications. You should design the following classes / functionality within them: ===================== Assessor.java: ===================== This class should simulate an assessor whose job it is to review an individual’s certification test and generate a certificate if they passed the certification test. The class’s responsibilities are as follows: ● To know: ○ the assessor’s full name ○ the assessor’s employee id. ● To examine a certification test against certification criteria and award a certificate if the certification test has a passing score (above the certification criteria required minimum passing score). ===================== CertificationTest.java: ===================== This class should simulate a certification test that has been taken. The class’s only responsibility is as follows: ● To know: ○ the full name of individual taking the exam ○ the email address of the individual taking the exam ○ their test score ===================== CertificationCriteria.java: ===================== This class should simulate the specific criteria that is needed to achieve the certification. The class’s responsibilities are as follows: ● To know ○ the name of the certification exam. ○ the minimum passing score needed to achieve the certificate. ===================== Certificate.java: ===================== This class should simulate a certificate – this class will contain a main() method that will set up a scenario to show an assessor verifying and generating a certificate for individual certification test that was taken. The class’s responsibilities are as follows: ● To report: ○ the assessor’s full name ○ the assessor’s employee id ○ the full name of individual ○ the email address of individual ○ the name of the certification achieve Module 13: Chapter 10, Assignment Define a class named Payment that contains an instance variable “paymentAmount” (non-static member variable) of type double that stores the amount of the payment and appropriate accessor (getPaymentAmount() ) and mutator methods. Also create a method named paymentDetails that returns a String sentence that describes the payment and shows the amount. Override toString() method to call the paymentDetails() method to return the contents of payment amount and any other details not included in paymentDetails(). Define a class named CashPayment that is derived from Payment. This class will have an additional instance variable of type String (a non-static member variable) that specifies a type of currency, such as “dollar”, “euro”, “peso”, “yen”, etc. This class should override the paymentDetails method to indicate that the payment is in cash, and the type of currency used. Include appropriate constructor(s) and accessor/mutator methods for all instance variablesand. Override toString() with contents of cash payment details (should still call paymentDetails()). Define a class named CreditCardPayment that is derived from Payment. This class should contain instance variables (member variables) for the name on the card, expiration date, and credit card number. Include appropriate constructor(s) and accessor/mutator methods for all instance variables. Finally, redefine thepaymentDetails method to include all credit card information in the printout. Override toString() method with contents of credit payment details (should still call paymentDetails()). Create a main method within Payment that creates at least two CashPayment and two CreditCardPayment objects with different values and payment amounts. Call toString() methods from each object to print the details of each payment. For an additional challenge: Use an array of Payment type references to represent your objects. Use a “for” loop to show the contents of each Payment. Module 14: Chapter 11, Assignment Write a program that will search a text file of strings representing numbers of type int and will write the following to the screen: ● a count of integers in the file ● largest integer in the file ● smallest integer in the file ● average of the integers in the file ● sum of all integers in the file Include appropriate error handling in case a line contains more than one int or it contains a String. Wrap all the work you are doing with the file in a try/catch/finally block with appropriate “catch” sections; the finally block will be where you close your file object (if desired, look this up online for more information regarding “finally” and when it is executed, specifically that it is executed in case of success or failure of the entire try block).
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.