Objectives: Practice creating classes with method stubs based on a given class diagram. Preparation: ...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Objectives: • Practice creating classes with method stubs based on a given class diagram. Preparation: • Install the latest version of Eclipse on your computer. Instructions: 1. Read and understand the following design on page 2. 2. Implement the design with method stubs ONLY. Hints: a. What packages are there? Do you need to implement all of them? b. For each class, is it a regular class, a super class, or an interface? c. For an entity (attribute or method), what is its visibility? d. Abstract methods are italicized (This is something we have not discussed yet. But the good news is methods in interfaces are made abstract by default.) e. For an entity, is it a static or non-static method? f. For an attribute, is it a final variable? g. For a method, what argument(s) does it take? What is its return type? Grading Rubrics: a. Your code shall compile and run. (10 points) b. The overall structure of your code is correct, in the package view. (10 points) c. The implementation of each class is correct. (10 * 9 = 90 points) java lang dde o:grading Grade! cInterface Comparable +compareTofother : grading Grade) : int IlegalArgumentException Gradient main(args: String ) grading Grade key : java lang Saring value : javalang Double Grade(key : javalang String) (exceptions=legalArgumentException) Grade(key : java lang String, value : double) (excepsions- legalArgumentException) Grade(key : java lang String, value : java lang Double) (exceptions-llegalArgumentException) getKay) : java.lang Sting getvalue(): java lang. Double -to String): javalang String throws SizeException serialVersionUID:final long = 1L throws throws einterface GradingStrategy cakulate(key : String, grades : java.udi Listsgrading Grade) : grading. Grade (exceptions-SizoException) einterface> Filter applygrades: java utl Listegrading Grade>) : java util Listsgrade> (exceptions-SizeException) WeightedTotalStrategy DropFilter weights : java.utiMapjava lang String, java lang Double WeightedTotalStrategy() WeightedTotaStrategy(weights : java.uti. Mapsjava lang String. java.lang.Double>) shouldDropLowest: boolean shouldDropHighest : boolean DropFiter DropFiterishouldDroplowest : boolean, shouldDropHighest : boolean) uses TotalStrategy TotalStrategy() <cutity Missing -DEFAULT MISSING VALUE: double 0 doubleValueinumber: Double):double edoubieValuejnumber : Double, missingValue : double) : double Objectives: • Practice creating classes with method stubs based on a given class diagram. Preparation: • Install the latest version of Eclipse on your computer. Instructions: 1. Read and understand the following design on page 2. 2. Implement the design with method stubs ONLY. Hints: a. What packages are there? Do you need to implement all of them? b. For each class, is it a regular class, a super class, or an interface? c. For an entity (attribute or method), what is its visibility? d. Abstract methods are italicized (This is something we have not discussed yet. But the good news is methods in interfaces are made abstract by default.) e. For an entity, is it a static or non-static method? f. For an attribute, is it a final variable? g. For a method, what argument(s) does it take? What is its return type? Grading Rubrics: a. Your code shall compile and run. (10 points) b. The overall structure of your code is correct, in the package view. (10 points) c. The implementation of each class is correct. (10 * 9 = 90 points) java lang dde o:grading Grade! cInterface Comparable +compareTofother : grading Grade) : int IlegalArgumentException Gradient main(args: String ) grading Grade key : java lang Saring value : javalang Double Grade(key : javalang String) (exceptions=legalArgumentException) Grade(key : java lang String, value : double) (excepsions- legalArgumentException) Grade(key : java lang String, value : java lang Double) (exceptions-llegalArgumentException) getKay) : java.lang Sting getvalue(): java lang. Double -to String): javalang String throws SizeException serialVersionUID:final long = 1L throws throws einterface GradingStrategy cakulate(key : String, grades : java.udi Listsgrading Grade) : grading. Grade (exceptions-SizoException) einterface> Filter applygrades: java utl Listegrading Grade>) : java util Listsgrade> (exceptions-SizeException) WeightedTotalStrategy DropFilter weights : java.utiMapjava lang String, java lang Double WeightedTotalStrategy() WeightedTotaStrategy(weights : java.uti. Mapsjava lang String. java.lang.Double>) shouldDropLowest: boolean shouldDropHighest : boolean DropFiter DropFiterishouldDroplowest : boolean, shouldDropHighest : boolean) uses TotalStrategy TotalStrategy() <cutity Missing -DEFAULT MISSING VALUE: double 0 doubleValueinumber: Double):double edoubieValuejnumber : Double, missingValue : double) : double
Expert Answer:
Related Book For
Business Analytics Data Analysis and Decision Making
ISBN: 978-1305947542
6th edition
Authors: S. Christian Albright, Wayne L. Winston
Posted Date:
Students also viewed these chemical engineering questions
-
Design and implement a Java program using the latest version of the Java Cryptography Architecture (JCA) to encrypt a file of arbitrary length with its digest appended. You may assume that your input...
-
What information do you need to calculate an accurate income statement? What are likely to be the four largest expenses?
-
What personal skills do you need to keep your financial backers feeling confident in your new business? Which skills are most useful when you're dealing with more informal sources, such as family and...
-
A company is considering purchasing either Machine I or Machine II. The following data apply: O $21,500 O $26,575 $27,080 Parameter The annual interest rate is 10%, and all cash flows may be treated...
-
Give a real- world example of an expansion option and an abandonment option.
-
Mei-ling Lee spent much of her childhood learning the art of cookie-making from her grandmother. They passed many happy hours mastering every type of cookie imaginable and later creating new recipes...
-
Each message in a digital communication system is classified as to whether it is received within the time specified by the system design. If three messages are classified, use a tree diagram to...
-
Refer to question 10. Suppose that the consultants fee is $5,000 and the utility function for the owner of Morley Properties can be approximated by the exponential utility function: U(x) = 1 e-x/R...
-
The City of Callaghan had the following partial list of pre-closing account balances in its General Fund as of June 30, 2023. Debits Appropriations Control Credits $ 2,975,000 Budgetary Fund Balance...
-
The Gorman Group is a financial planning services firm owned and operated by Nicole Gorman. As of October 31, 2014, the end of the current fiscal year, the accountant for The Gorman Group prepared an...
-
What benefits does Malone anticipate for organizations of all sizes? economies of scale with the ability to be adaptable and creative a stronger and more qualified workforce democratic operating...
-
A firm sells a 30 year maturity bond with 5% cuopon interest at a par calue of $1,000. The firm's tax rate is 40%. What is the after tax cost of this debt? Answer in percent.
-
When mounted on low-density ceiling fibreboard, surface-mounted fluorescent luminaires must be installed to keep the temperature of the fibreboard below a certain level. What is that limit?
-
In an inertial frame of reference, a series of experiments is conducted. In each experiment, two or three forces are applied to an object. The magnitudes of these forces are given below. No other...
-
Shaddam wants to save up some money for a boat. He can afford to invest $235 every month into an account that earns 8.3%, compounded monthly. -2 How long will it take for Shaddam's investment to...
-
Calculate the total deformation in a 25ft long, 4 in. diameter steel bar hanger that supports a 390 kip load. This bar is also subjected to a change in temperature from 140oF before loading to -10oF...
-
Wein's Formula p. 6 1. The brightest color produced by an object at temperature of 6000 K is at a wavelength of 483 nm. What is the wavelength of the brightest color produced by a 3000 K object? (do...
-
A non-charmed baryon has strangeness S = 2 and electric charge Q = 0. What are the possible values of its isospin I and of its third component I z ? What is it usually called if I = 1/2?
-
The file P18_06.xlsx contains monthly data from 1920 to 2004 on average temperatures in the 48 contiguous states and several regions of the U.S. (The codes for locations are listed on the Locations...
-
The file P20_11.xlsx contains data on the amount of liquid detergent (in ounces) placed in plastic containers by a particular filling process. Ideally, the filling process should place 100 ounces of...
-
Consider a situation where there is a cost that is either incurred or not. It is incurred only if the value of some random input is less than a specified cutoff value. Why might a simulation of this...
-
A diver leaps from a high platform, speeds up as she falls, and then slows to a stop in the water. How do you define the system so that the energy changes are all transformations internal to an...
-
When your hands are cold, you can rub them together to warm them. Explain the energy transformations that make this possible.
-
Figure Q10.24 shows a potential-energy diagram for a particle. The particle is at rest at point A and is then given a slight nudge to the right. Describe the subsequent motion. FIGURE Q10.24 Energy...
Study smarter with the SolutionInn App