1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Marysya12 [62]
3 years ago
11

Suppose that for an experimental device setup we have to choose settings for three parameters. There are 4, 3 and 5 settings for

parameters 1, 2 and 3 respectively. The order in which the settings will be chosen is not does not matter. How may configurations does the device allow
Computers and Technology
1 answer:
Tpy6a [65]3 years ago
8 0

Answer:

Number of configurations does the device allow = 1

Explanation:

Given:

Number of parameters = 3

setting to choose for parameters = 3

Order does not matter

To find:

Number of configurations the device allows

Solution:

We will use Combinations here. This cannot be achieved through permutations because we have to choose settings 1,2,3 (3 settings) for three parameters 4,3,5 and the order does not matter but in permutation order does matter. So here we use Combinations. The formula for combination is:

C(n,r) = n! / r! (n-r)!

Here the number of parameters is 3 i.e. 1,2,3 and settings are also 3 i.e. 4,3,5 So,

n = 3

r = 3  

Putting these values in the above formula we get:

nCr  = n! / r! (n-r)! = 3! / 3! (3-3)!

                            =  3*2*1 /3*2*1 (0)!              

                            =   3*2*1 /3*2*1 (1)               Since 0! = 1

                            = 6 / 6

                nCr      = 1

So when order of settings 4,3,5 does not matter the number of configurations that device can allow is 1.

If the repetition is allowed and order does not matter then we can use the following formula:

(r + n - 1)! / r!(n-1)! = (3 + 3 - 1)! / 3! (3-1)!

                           = 5! / 3! 2!

                           = 5*4*3*2*1 / (3*2*1)(2*1)

                           = 120 / 12

(r + n - 1)! / r!(n-1)! = 10

For example if we have same setting for more than 1 parameters the combinations can be:

333, 444, 555, 445, 443, 554, 553, 334, 335, 345

But it is unlikely that a setting can be repeated for more than 1 parameter a a time.

You might be interested in
Describe the difference between fuses and circuit breakers. where might each type of device find its best use? g
ycow [4]
Here i found this link that might help!
https://study.com/academy/lesson/the-differences-between-fuses-circuit-breakers.html

Have a nice day!
3 0
4 years ago
Write a program to implement problem statement below; provide the menu for input N and number of experiment M to calculate avera
zalisa [80]

Answer:

Explanation:

#include<iostream>

#include<ctime>

#include<bits/stdc++.h>

using namespace std;

double calculate(double arr[], int l)

{

double avg=0.0;

int x;

for(x=0;x<l;x++)

{

avg+=arr[x];

}

avg/=l;

return avg;

}

int biggest(int arr[], int n)

{

int x,idx,big=-1;

for(x=0;x<n;x++)

{

if(arr[x]>big)

{

big=arr[x];

idx=x;

}

}

return idx;

}

int main()

{

vector<pair<int,double> >result;

cout<<"Enter 1 for iteration\nEnter 2 for exit\n";

int choice;

cin>>choice;

while(choice!=2)

{

int n,m;

cout<<"Enter N"<<endl;

cin>>n;

cout<<"Enter M"<<endl;

cin>>m;

int c=m;

double running_time[c];

while(c>0)

{

int arr[n];

int x;

for(x=0;x<n;x++)

{

arr[x] = rand();

}

clock_t start = clock();

int pos = biggest(arr,n);

clock_t t_end = clock();

c--;

running_time[c] = 1000.0*(t_end-start)/CLOCKS_PER_SEC;

}

double avg_running_time = calculate(running_time,m);

result.push_back(make_pair(n,avg_running_time));

cout<<"Enter 1 for iteration\nEnter 2 for exit\n";

cin>>choice;

}

for(int x=0;x<result.size();x++)

{

cout<<result[x].first<<" "<<result[x].second<<endl;

}

}

8 0
3 years ago
Ava calls tech support because she is unable to send information that a customer has requested. The tech support person tells he
Blizzard [7]

Answer:

Outlook as it is a common email aplication which may experience some issues

Explanation:

7 0
3 years ago
Which of the following tasks are suitable for creating an algorithm? Choose all that apply.
Nookie1986 [14]

Answer:

All except saving time writing a computer program.

3 0
3 years ago
Convert the following C program to C++.
ki77a [65]

Answer:

The program equivalent in C++ is:

<em>#include <cstdio></em>

<em>#include <cstdlib></em>

#define SIZE 5

using namespace std;

<em>int main(int argc, char *argv[]) {</em>

<em>int numerator = 25;</em>

<em>int denominator = 10;</em>

<em>FILE * inPut = fopen(argv[1], "r");</em>

<em>FILE * outPut = fopen(argv[2], "w");</em>

<em>float result = (float)numerator/denominator;</em>

<em>fprintf(outPut,"Result is %.2f\n", result);</em>

<em>float arr[SIZE];</em>

<em>for(int i = 0; i < SIZE; i++) {</em>

<em>fscanf(inPut, "%f", &arr[i]);</em>

<em>fprintf(outPut, "%7.4f\n", arr[i]);</em>

<em>}</em>

<em>return 0;</em>

<em>}</em>

Explanation:

See attachment for explanation.

Each line were numbered with equivalent line number in the C program

Download cpp
8 0
3 years ago
Other questions:
  • ‘The increased availability of mobile digital devices has had a positive impact on how young people use their free time’. Make a
    14·2 answers
  • What is the difference between First Person Shooters and Construction Simulations?
    12·2 answers
  • A built-in tool that enables you to use text to type in commands for the operating system is called the _____ prompt.
    10·2 answers
  • Sizing handles are used in Microsoft® Word® to _____.
    13·1 answer
  • A ____ operating system should be capable of supporting the applications and tools necessary to support Internet operations.
    10·1 answer
  • 9. Government and corporate officials concerned about security threats do not bring their own cell phones or laptops when travel
    9·1 answer
  • 11.The shortcut keys used to center a paragraph are&lt;br /&gt;a. CTRL+T&lt;br /&gt;b. CTRL+M&lt;br /&gt;c. CTRL+SHIFT+T d. CTRL
    7·1 answer
  • Which DHCPv4 message will a client send to accept an IPv4 address that is offered by a DHCP server? (Points : 5) Unicast DHCPACK
    8·1 answer
  • What are general purpose computer and special purpose computer?​
    10·2 answers
  • A router is connected to a network 192.169.1.0/24 and network 192.168.2.0/24. The router is configured to use RIP and has learne
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!