Design object-oriented programs using scope

Assignment Help Software Engineering
Reference no: EM133565094

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

Questions Cloud

What dimension of wellness were you trying to change : What was your reasoning for choosing it? Did you follow through with it? Did you meet your goal? Why or why not? Consider all that you are learning this week
Nurses burnout and ultimately compromise patient care : Identify sources of job stress that could lead to nurses' burnout and ultimately compromise patient care.
Describe the application of ai and machine learning : Describe the application of AI and Machine Learning in the two contexts. What do they have in common, how were they used, what worked and what didn't?
Discuss how you can change a specific behavior : discuss how you can apply this information to learning a specific new behavior or changing a specific current behavior. Perhaps there is a new behavior you want
Design object-oriented programs using scope : Demonstrate understanding of classes, constructors, objects, data types and instantiation; Convert data types using wrapper methods and objects
Discusses planning and goal setting : Discusses Planning-Goal Setting. Assume that you are a supervisor (if you are or have been a supervisor, please feel free to share from personal experience).
Name the categories and give an example for each : The approaches for managing and resolving conflict in organization can be classified into three categories. Name these categories and give an example for each.
What key words are you using to search for articles : what myth did you select and why? what key words are you using to search for articles?
Consider the 14 ways self-actualized people display coping : Consider the 14 ways self-actualized people display coping mechanisms or characteristics. Do you use any of these mechanisms? Why or Why not?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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