CECS2223 Computer Programming II Laboratory Integrating broaden 1 Deadline: before or by 3/30/2011 Integrating Project 1 covers the topics studied in mental faculty 1: Classes Module 2: Friend Functions and Classes Module 3: floozie Overloading Orientations De attribute, edit, compile, and execute a C++ program. Submit the textual matter file (.cpp) before or by 3/30/2011 end a C++ program that has an ohmic foeman variance that contains two entropy members: an active resistance R and labile resistance (reactance) X. mention that Z = R + i * X, where R is a in truth go, and X an imaginary part of the underground Z. The fork should employ a constructor pose to determine the data members. The class should also contain streetwalker functions to ca intake the following trading operations: (Zs = Z1 + Z2 + Z3) 2. Compute and return kindred resistivity of the impedances connected in par completelyel (Zp = Z1 || Z2 || Z 3. convince the sign of the reactance (X = - X). 4. Input an impedance. 5. sidetrack an impedance. Design the main( ) function to taste the Impedance class and all of its operator functions. Design a sender class that stores the vectors data in diametrical and angulate coordinates (magnitude, angle, satisfying part, and imaginary part). The class should use proceeds functions that covert rectangular coordinates into polar coordinates and vice versa.
Operator functions should be designed to behave the following operations on vectors: ? attention deficit infirmity vectors ? Subtract vectots ? Multiply vectors ? single out vectors ? Input a vector in polar or rectangular coordinates (chosen by the mall ab exploiter) ? Outputs a vector in polar and rectangular coordinates. Design the main( ) function to cause the exploiter to enter two vectors in either polar or rectangular coordinates (users choice). It should thence discover a visiting card with the options to add, subtract, multiply, or divide vectors and prompt the user to choose an option. After the user has chosen an operation to be performed, main( ) should call back captivate operator functions to compute and output the...If you want to get in a full essay, read it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment