Develop methods using parameters and return values

Assignment Help Other Subject
Reference no: EM133565064

Object-Oriented Software Development

Learning outcome 1: Demonstrate understanding of classes, constructors, objects, data types and instantiation; Convert data types using wrapper methods and objects.

Learning outcome 2: Independently analyse customer requirements and design object-oriented programs using scope, inheritance, and other design techniques; Create classes and objects that access variables and modifier keywords. Develop methods using parameters and return values.

Learning outcome 3: Demonstrate adaptability in building control and loop structures in an object-oriented environment; Demonstrate use of user defined data structures and array manipulation.

Tank Circuit Program

Adapt your program in Part A to do the following:

Create a Component Class with variables such as Name, Description, Manufacturer, Cost, Obsolete (Y/N)

Create a Capacitor Class that inherent from the Component Class with Constructors, Accessors/Mutators (getters/setters) as appropriate. e.g. variables E, A, D, C.
Create an Inductor Class that inherent from the Component Class with Constructors, Accessors/Mutators (getters/setters) as appropriate. e.g. variables L.

The types in this program the types of components are as follows:

In a Main driver function:

Loop Creating Capacitors instants (until the user Enters "N") Loop Creating Inductors instants (until the user Enters "N")
Populate an arrayList of Components (e.g. tankCircuit[]) while looping //acts like a bill of materials, all the components in the circuit.
If there are two Capacitors (assume they are connected in parallel) add them together before calculating the resonant frequency.
If there are two Inductors (assume they are connected in series) add them together before calculating.

Calculate the Tank Circuit Resonant Frequency, costs of the overall circuit and output to the screen with the description as shown in the sample run.

Here is a sample run:

Sample 1:
John Smith JS00001

Are you adding a capacitors? Y Enter Capacitor Area (mm^2): 5
Enter Capacitor separated distance (mm): 0.5 Are you adding a capacitors? Y
Enter Capacitor Area (mm^2): 5

Enter Capacitor separated distance (mm): 0.5 Are you adding a capacitors? N
Are you adding an inductor? Y

Enter Inductance of the inductor (uH): 1 Are you adding an inductor? N
John Smith's LC Tank Circuit Resonate Frequency: 11.96 MHz Using:
Capacitors, 8.85 pF, Store electrical charges. Warning: Do not use electrolytic capacitors in tank circuits.

Capacitors, 8.85 pF, Store electrical charges. Warning: Do not use electrolytic capacitors in tank circuits.

Inductors, 1uH, Store electrical charges.

Total Cost: $1.25

Submit the following items:

1. Submit this Word document with the following:
a. Explain your Design, Control, Flexibility, Error Control of your code
b. Copy of your code as Appendix (screenshot - includes comments in your code)
c. Screenshot of the output of your code as Appendix (3 times with expected values, 2 times with non-expected values - such as a zero as an input)

Reference no: EM133565064

Questions Cloud

Transfer features on the telephone : Identify at least two circumstances when it would be necessary to use the hold and transfer features on the telephone.
Discuss your thoughts on the source of abnormality : Discuss your thoughts on the source of abnormality. Up to this point in your life, what have you thought to be the source of (reason for) abnormal behavior?
Position at local business was eliminated : Lou is a 45-year-old married father of two. He decided to go back to school 10 years ago when his position at a local business was eliminated.
What is another disorder description of other culture : What is another disorder description of at least one other culture that has similar/related conditions as Latinos in the United States and Latin America
Develop methods using parameters and return values : Building control and loop structures in an object-oriented environment; Demonstrate use of user defined data structures and array manipulation
What is the use of diuretic agents across the lifespan : What is the use of diuretic agents across the lifespan? What are the key therapeutic actions and indications for the five types of diuretics?
What characteristics might robert exhibit in your classroom : What characteristics might Robert exhibit in your classroom, based on what you know about ADHD ? *These characteristics would need to be specific when listed on
What are the benefits of this type of progression : Describe the "I/We/You" progression of activities. What are the benefits of this type of progression? How does this progression of activities impact classroom
List three obstacles to full education for all children : List three obstacles to full education for all children, thoroughly discuss why they are obstacles, and propose specific strategies you would advocate

Reviews

Write a Review

Other Subject Questions & Answers

  Describe methods which organizations can implement to help

an acceptable use policy aup is a very important policy within organizations to define acceptable employee behavior

  Social media-friendly content and features

In what ways did the writer excel? What aspects of the release could be improved? Does the release provide social media-friendly content and features?

  Saw the physician had performed one standard

saw the physician had performed one standard that is listed. Because of this I have a new respect for The Joint Commission. Do you agree? why or why not

  How often do you engage with or witness death in your work

How often do you engage with or witness death in your work? How has this experience or the lack of it shaped your view of death? Has it gotten easier or harder.

  How social constructivism theoretical framework

How social constructivism theoretical framework applies to parent involvement and academic achievement?

  Why should every nation have a cybersecurity strategy

Develop five or more points which are common across the two documents. (Similarities) Identify and review at least three unique items in each document.

  What are important considerations of management

A 38-year-old woman presents to the office with complaints of weight loss, fatigue, and insomnia of 3-month duration. She reports that she has been feeling.

  What are the pros and cons of the sampling technique

You have to Choose one sampling technique from ( probability sampling ) and one from ( non-probability sampling) (of your choice) and explain.

  Do you think this skepticism and fear are warranted

Do you think there is an ideal family structure for children to grow up within? If so, what does it entail? If not, why not? Do you think this skepticism and fear are warranted? Why or why not?

  Carla wahburn case

Refer to the Carla Wahburn case in the textbook's website (www.routledgesw.com/cases). Think about and discuss with your peers what fields of social practice may come into play in services to Ms. Washburn. Gerentology is obvious, but there are oth..

  Evaluate the argument of mannsilla and gardner

Evaluate the argument of Mannsilla and Gardner related to these two approaches, and discuss the advantages and disadvantages.

  Explain the attributes of exemplary intelligence analysts

Explain the attributes of exemplary intelligence analysts. Describe the "golden opportunity" and how the White House responded.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd