By implementing the concepts of Classes and Objects, write a C++ program that converts the value of  Delta-connected resistances to their equivalent Wye- connected resistances. Use the following formulas:      R1 = R12(R31)/(R12+R23+R31)      R2 =  R12(R23)/(R12+R23+R31)         and     R3 = R31(R23)/(R12+R23+R31)      The values of the 3 Delta-connected resistances, R12, R23 and R31 are to be entered from the keyboard.       Sample Input:                  Enter the value of each Delta-connected resistances: Enter the value for R12: Enter the value for R23: Enter the value for R31: The equivalent Wye-connected resistances are: R1 = R2 = R3 =

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

By implementing the concepts of Classes and Objects, write a C++ program that converts the value of  Delta-connected resistances to their equivalent Wye- connected resistances. Use the following formulas:

     R1 = R12(R31)/(R12+R23+R31)      R2 =  R12(R23)/(R12+R23+R31)    

    and     R3 = R31(R23)/(R12+R23+R31)     

The values of the 3 Delta-connected resistances, R12, R23 and R31 are to be entered from the keyboard.

   

 

Sample Input:                 

Enter the value of each Delta-connected resistances:

Enter the value for R12:

Enter the value for R23:

Enter the value for R31:

The equivalent Wye-connected resistances are:

R1 =

R2 =

R3 =

 

Sample Input:
Enter the value of each Delta-connected resistances:
Enter the value for R12:
Enter the value for R23:
Enter the value for R31:
The equivalent Wye-connected resistances are:
R1 =
R2 =
R3 =
Transcribed Image Text:Sample Input: Enter the value of each Delta-connected resistances: Enter the value for R12: Enter the value for R23: Enter the value for R31: The equivalent Wye-connected resistances are: R1 = R2 = R3 =
By implementing the concepts of Classes and Objects, write a C++ program that converts the
value of Delta-connected resistances to their equivalent Wye- connected resistances. Use
the following formulas:
R1 = R12(R31)/(R12+R23+R31) R2 = R12(R23)/(R12+R23+R31)
and R3 = R31(R23)/(R12+R23+R31)
The values of the 3 Delta-connected resistances, R12, R23 and R31 are to be entered from
the keyboard.
Accomplish the following for the given class diagram:
Delta2Wye
1.) Create the class implementation using C++
R12 : double
2.) Using the constructor, create the object, D1 from
R23 : double
R31: double
class Delta2Wye and store it in the heap memory.
+ Delta2Wye( R12 : double, R23 :
3.) Implement the functions of the object.
Double, R31: double )
+ setR(): void
+ DR1( ): double
+ DR2(): double
+ DR3(): double
NOTE: The member function setR() is used to enter the values for R12, R23 and R31 from
the keyboard.
The member function DR1() is used to solve for R1.
The member function DR2() is used to solve for R2
The member function DR3() is used to solve for the R3
Transcribed Image Text:By implementing the concepts of Classes and Objects, write a C++ program that converts the value of Delta-connected resistances to their equivalent Wye- connected resistances. Use the following formulas: R1 = R12(R31)/(R12+R23+R31) R2 = R12(R23)/(R12+R23+R31) and R3 = R31(R23)/(R12+R23+R31) The values of the 3 Delta-connected resistances, R12, R23 and R31 are to be entered from the keyboard. Accomplish the following for the given class diagram: Delta2Wye 1.) Create the class implementation using C++ R12 : double 2.) Using the constructor, create the object, D1 from R23 : double R31: double class Delta2Wye and store it in the heap memory. + Delta2Wye( R12 : double, R23 : 3.) Implement the functions of the object. Double, R31: double ) + setR(): void + DR1( ): double + DR2(): double + DR3(): double NOTE: The member function setR() is used to enter the values for R12, R23 and R31 from the keyboard. The member function DR1() is used to solve for R1. The member function DR2() is used to solve for R2 The member function DR3() is used to solve for the R3
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY