Questions
Part 1 Understand the Problem and Class Design with UML The client needs a program to...

Part 1 Understand the Problem and Class Design with UML

  • The client needs a program to calculate the age of a tuna fish. The program must store the length of the fish in cm, and the weight of the fish in pounds. To calculate the estimated age of the fish in years multiply the length times the weight then divide by 10000. Design a class based on this word problem.
  • Testing values are 300 cm length, and 1111.12 pounds.

  • Using the word problem above, design a class with the needed fields, one default (no parameter) constructor, and needed methods. Document your design using a detailed UML Class diagram.
  • Note: The calculations used in this word problem are fictional.

Part 2 Write the Java code for the class

  • Follow your UML class diagram and code the class you designed.
  • Use Java coding conventions for identifiers: class, constructor, field, variable, and method names
  • Mark fields private, constructor and methods public.
  • Select and use appropriate data types for the fields as well as method parameters as needed.
  • Comment your code as requested and demonstrated in the course.

In: Computer Science

Problem 2.55. Consider the dihedral group D3 introduced in Problem 2.21. To give us a common...

Problem 2.55. Consider the dihedral group D3 introduced in Problem 2.21. To give us a common starting point, let’s assume the triangle and hole are positioned so that one of the tips of the triangle is pointed up. Let r be rotation by 120◦ in the clockwise direction and let s be the reflection in D3 that fixes the top of the triangle.

(a) Describe the action of r −1 on the triangle and express r −1 as a word using r only.

(b) Describe the action of s −1 on the triangle and express s −1 as a word using s only.
(c) Prove that D3 = hr, si by writing every element of D3 as a word in r or s.

(d) Is {r, s} a minimal generating set for D3 ?

(e) Explain why there is no single generating set for D3 consisting of a single element. This proves that D3 is not cyclic.

It is important to point out that the fact that {r, s} is a minimal generating set for D3 does not imply that D3 is not a cyclic group. There are examples of cyclic groups that have minimal generating sets consisting of more than one element (see Problem 2.70).

In: Advanced Math

Reflect on the section Planning and Executing Change Effectively, in Chapter 7 of the text. Summarize...

Reflect on the section Planning and Executing Change Effectively, in Chapter 7 of the text. Summarize the key steps in planning and executing change in a 500 word journal entry.

In: Economics

“Inflation is caused by tightness in labour markets, so policy should be oriented at inducing unemployment...

“Inflation is caused by tightness in labour markets, so policy should be oriented at
inducing unemployment to bring down wages.” Critically discuss.
Word Limit – 750

In: Economics

Define the word "dumping"as used by trade policy makers in the USA and how this definition...

Define the word "dumping"as used by trade policy makers in the USA and how this definition can be used to justify protectionism, and why this definition is harmful to international trade

In: Economics

Readmission rates are another buzz word in the industry….focus on one place in your hospital that...

Readmission rates are another buzz word in the industry….focus on one place in your hospital that would benefit in reducing these rates and describe why you think this.

In: Nursing

Explain the difference between permanent accounts and temporary accounts. Why does an accounting system include both...

Explain the difference between permanent accounts and temporary accounts. Why does an accounting system include both types? 175 word minimum and no plagerism please.

In: Accounting

Write a Cause and Effect Essay. Write a 500 word essay (not an email or letter)...

Write a Cause and Effect Essay.

Write a 500 word essay (not an email or letter) based on the writing prompt.

Topic: What are the effects of modern technology on children?

In: Economics

write a 500 word paper using APA formant What are some medical and psychosocial factors that...

write a 500 word paper using APA formant What are some medical and psychosocial factors that may influence intake, nutritional requirement and nutrition counseling.

In: Nursing

How would you educate a sexually active teenage patient to reduce their risk of sexually transmitted...

How would you educate a sexually active teenage patient to reduce their risk of sexually transmitted infections? 2 parageraph in your own word please.

In: Biology