CECS2223 Computer Programming II Laboratory Integrating laissez passer 1 Deadline: before or by 3/30/2011 Integrating Project 1 covers the topics studied in faculty 1: Classes Module 2: Friend Functions and Classes Module 3: factor Overloading Orientations De attribute, edit, compile, and execute a C++ program. Submit the textbook file (.cpp) before or by 3/30/2011 Design a C++ program that has an ohmic ohmic resistance variance that contains two data members: an active resistance R and labile resistance (reactance) X. Note that Z = R + i * X, where R is a real die, and X an imaginary part of the underground Z. The class should recitation a constructor home plate to determine the data members. The class should also contain slattern functions to cause the following operations: (Zs = Z1 + Z2 + Z3) 2. Compute and return combining weight resistivity of the impedances connected in parallel (Zp = Z1 || Z2 || Z 3. limiting the sign of the reactance (X = - X). 4. Inpu t an impedance. 5. Output an impedance. Design the main( ) function to tribulation the Impedance class and all of its operator functions. Design a vector class that stores the vectors data in diametrical and rectangular coordinates (magnitude, angle, real 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 perform the following operations on vectors: ? attention deficit disorder vectors ? Subtract vectots ? Multiply vectors ? set out vectors ? Input a vector in polar or rectangular coordinates (chosen by the substance absubst! ance abuser) ? Outputs a vector in polar and rectangular coordinates. Design the main( ) function to prompt the user to enter two vectors in either polar or rectangular coordinates (users choice). It should then discover a posting with the options to add, subtract, multiply, or divide vectors and prompt the user to choose an option. aft(prenominal) the user has chosen an operation to be performed, main( ) should call digest appropriate operator functions to compute and output the...If you want to choke in a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.