Calculate the tank circuit resonant frequency

Assignment Help Programming Languages
Reference no: EM133567769

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.

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

Questions Cloud

Who is your target customer or client : Who is your target customer or client? BE SPECIFIC - What is the size of the market? How many people might need what you're selling or doing
Describe why Kinesiology is considered holistic discipline : Define Kinesiology. Provide other examples of words using the root term kine and Describe why Kinesiology is considered a 'holistic' discipline.
What other perceptual errors are apparent in the case study : What other perceptual errors are apparent in this case study? What can organizations do to minimize misperceptions in these types of situations?
Medical staff coordinator is holding seminar on licensure : The Medical Staff Coordinator is holding a seminar on licensure, registration, certification, and accreditation.
Calculate the tank circuit resonant frequency : 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
What are three competing approache of organizational culture : What are the three competing approaches of organizational culture and how are they defined? According to Schein, describe the formal definition of culture.
Decision-making and drive improved business outcomes : Appraise an organization's competitive position by applying standards approaches and analyse activities/issues in recruitment, employment relations
What the correlation coefficient measures : What correlation coefficient measures. How correlation coefficient values used in portfolio theory, i.e. role of the correlation coefficient in portfolio theory
Write a create table statement for all tables : Write a Create Table statement for all tables including integrity constraints, Data may need to be inserted in a particular order to comply with the integrity

Reviews

Write a Review

Programming Languages Questions & Answers

  Can explain procedural language in clearly and simply?

Can explain procedural language in clearly and simply? And compare other object-oriented programming, functional programming, logic programming and imperative programming.

  Write function to calculate and print fractional powers

Write down a function which calculates and prints fractional powers of its first argument as shown below for first argument of 2(1/2,1/4,1/8 and so on).

  Write a program that receive the values of three boolean

Write a program that receive the values of three boolean varibles,a,b,and c,from standard input and determines if the value of the condition !(xx || xx) &&xx

  Write a main method to test your max method

Write a main() method to test your max method. It should input three values, call your max method, and then print the three values and returned max value as output, eg:

  Picbasic program

Comment the function associated with every line of the following PICBASIC program

  Write a program to model a simple calculator

Write a program to model a simple calculator. Each data line should consist of the next operation to be performed from the list below and the right operand.

  Write down a program that will loop continuously to get

write a program that will loop continuously to get user input of positive numbers and total them out. the loop will

  Write pseudocode for finding grade of a student

Write pseudocode for finding grade of a student given his/her total score. The program must display a grade of A if the score is above 85, a B if it is between 85 and 75, a C.

  Write procedure list-records whihc returns list of records

Write a procedure called list-records which returns a list of all records by artist from a list of records containing several artists.

  Write program prompts to enter three sides of triangle

Write a program which prompts the user to enter three sides of a triangle and your program will display the three sides and its category of either equilateral, isosceles or all unequal.

  Draw the class diagram for your modi ed system

Explain what is wrong. Modify the system so that it conforms to the pattern. Explain each of the changes you made to the system. Draw the class diagram for your modi ed system.

  Write the given fucntions and test

Write the following fucntions and test then in the main without using library or pointer. using only namespace std, and include find_first_of, and find_first_not_of.

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