Demonstrate use of user defined data structures

Assignment Help Other Subject
Reference no: EM133567824

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:

Name: Capacitors

Name: Inductors

Description: Store electrical charges.

 

Warning: Do not use electrolytic capacitors in tank circuits.

Description: Store electrical charges.

Manufacturers: Siemens

Manufacturers: Motorola

Cost: $0.50

Cost: $0.25

Obsolete: No

Obsolete: No

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: EM133567824

Questions Cloud

What did we do to sustain the world growing population : What is the current world population? How are some infections controlled in plants? what did we do to sustain the world's growing population?
What are some of tiffany possible interpretations : What are some of Tiffany's possible interpretations of the events unfolding around her? What elements of her situation might make it less stressful for her?
Create a schedule topical content to fill a single session : HCP 514- Create a schedule topical content to fill a single 2-hour session. How the compliance officer can affect the culture of the organization.
How has the invention of race historically impacted american : how has the invention of race historically impacted American society? Provide specific examples to support your answer. If additional information is needed
Demonstrate use of user defined data structures : Create a Component Class with variables such as Name, Description, Manufacturer, Cost, Obsolete and Create a Capacitor Class that inherent from the Component
Examining public and private healthcare facilities : We are examining public and private healthcare facilities. Locate two different facilities in the Kingdom of Saudi Arabia - one private and one public
Examine each of weinstein critical episodes individually : examine each of weinstein's critical episodes individually. look for and then discuss a modern-day example of each of them. what do Weinstein's critical episode
Major issues affecting the delivery of health care : Describe the major issues affecting the delivery of health care including access to health care, quality and safety, and affordability.
Explain how the multisystems practice model and the planned : Explain how the multisystems practice model and the planned change model fall under the Helping Process. Discuss the perspectives and theories that form

Reviews

Write a Review

Other Subject Questions & Answers

  What impact can communication barriers have on community

What barriers to communication exist within criminal justice organizations? What impact can communication barriers have on the community?

  Describe situations in which nursing advocacy can assist

Describe situations in which nursing advocacy can assist patients within the healthcare environment. Defend why nurses are, or are not, adequately prepared.

  Strong negative correlation-zero or weak correlation

If you have a perfect +1.00 correlation coefficient, what does this mean? What does the sign of the correlation coefficient signify? Provide examples in life of a strong positive correlation, a strong negative correlation, and a zero or weak correlat..

  What is your idea of a healthy community

What is your idea of a healthy community? Provide specific examples. What do healthy communities have in common? How would you provide care for a community.

  Critically examine problem structuring methods

Examine problem structuring methods and apply problem analysis methods and theory to specific business issues and comment on their relevance and usability

  What steps can you take to build

What steps can you take to build on what you know and prepare to use Excel for data analysis and visualization in the coming weeks

  Contrast the coleman report with the bell curve study

Compare and contrast the Coleman Report with the Bell Curve Study. What is a religious ritual and how do they work? Provide an example. What is secularization?

  How do the texts relate to each other

How do the texts relate to each other? Do they discuss common ideas? In what ways do the texts support or agree with one another?

  Reflection about communication consequences

Conflicts are an unavoidable part of life. Conflicts are so common that conflict resolution has become a full time occupation for millions across the world.

  Explain the experience of women in butte

Explain the experience of women in Butte, Montana during the prohibition. How were their actions a reflection of their social circumstances?

  Describing the application to an area of nursing practice

Select a nursing model or theory described in your textbook. What are the key concepts and components of the example you selected, and how are they defined?

  Find on internet pertaining to the government

You will have to turn in an analysis on a news article that you will find on the internet pertaining to the government.

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