Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Application: Telephone Switching Networks In a directly connected telephone network, all telephones are connected and don't require a central ritching station to establish calls
3. Application: Telephone Switching Networks In a directly connected telephone network, all telephones are connected and don't require a central ritching station to establish calls between two telephones. For example, financial institutions on Wall Street use this type of betwork to maintain continuously open phone lines between firms. The number of lines needed to maintain a directly connected network for telephones is given by this formula Iines -12 For example, connecting four telephones requires sis separate lines, as shown in Figure CS2B. 1. Adding a fifth telephone to this work requires an additional lines for a total of 10 lies Telephone 4 Telephone 13 Line 3 Line 1 Telephone 01 Telephone #2 Figure CS2B.1 Directly connecting four telephones Using the given formula, you're to write a C++ program that determines the number of direct lines required for connecting 100 telephones and the additional lines required if 10 telephones are added to the network. Use the software development procedure, as described in the following sections Step 1: Analyze the Problem For this program, tivo outputs are required the number of direct lines for 100 telephones and the additional number of lines Dided when 10 telephones are added to the existing network The input item required for this problem is the mumber of telephones, which is denoted as in the formula Alpha International Academy Assignment-1 (10%) Due: Week-6 2 Page Step 2: Develop a Solution The first output is obtained easily by using the formula given previouslynesi-1) 2. Although no formula is hen for additional lines, you can use this formula to determine the total number of liteded for 110 Subscribers. Subtracting the number of linn for 100 subscribers from the number of lines needed for 110 subscribers yields the number of additional lines required. Therefore, the algorithm for this program in pseudocode is as follows Calculate the number of direct lines for 100 subscribers Calculate the number of dire lines for 110 subscribers 3. Application: Telephone Switching Networks In a directly connected telephone network, all telephones are connected and don't require a central ritching station to establish calls between two telephones. For example, financial institutions on Wall Street use this type of betwork to maintain continuously open phone lines between firms. The number of lines needed to maintain a directly connected network for telephones is given by this formula Iines -12 For example, connecting four telephones requires sis separate lines, as shown in Figure CS2B. 1. Adding a fifth telephone to this work requires an additional lines for a total of 10 lies Telephone 4 Telephone 13 Line 3 Line 1 Telephone 01 Telephone #2 Figure CS2B.1 Directly connecting four telephones Using the given formula, you're to write a C++ program that determines the number of direct lines required for connecting 100 telephones and the additional lines required if 10 telephones are added to the network. Use the software development procedure, as described in the following sections Step 1: Analyze the Problem For this program, tivo outputs are required the number of direct lines for 100 telephones and the additional number of lines Dided when 10 telephones are added to the existing network The input item required for this problem is the mumber of telephones, which is denoted as in the formula Alpha International Academy Assignment-1 (10%) Due: Week-6 2 Page Step 2: Develop a Solution The first output is obtained easily by using the formula given previouslynesi-1) 2. Although no formula is hen for additional lines, you can use this formula to determine the total number of liteded for 110 Subscribers. Subtracting the number of linn for 100 subscribers from the number of lines needed for 110 subscribers yields the number of additional lines required. Therefore, the algorithm for this program in pseudocode is as follows Calculate the number of direct lines for 100 subscribers Calculate the number of dire lines for 110 subscribers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started