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
LUCKY_DIMON [66]
4 years ago
10

Write a MATLAB or C (your choice) program that prompts the user to enter the number of series components in a system and the MTB

Fs for each component and then calculates the overall MTBF for the system using a FOR or a WHILE structure (loop). To test your program, determine the MTBF for a radar system consisting of an antenna subsystem with an MTBF of 2000 hours, a transmitter with an MTBF of 800 hours, a receiver with an MTBF of 3000 hours, and a computer with an MTBF of 5000 hours. Make sure that you send the .m or .cpp file to the drop box and include units.
Computers and Technology
1 answer:
Marina86 [1]4 years ago
5 0

Answer:

C++ programming language (code) was used or applied in prompting a user to enter he number of series components in a system and the MTBFs for each component and then calculates the overall MTBF for the system using a FOR or a WHILE structure (loop).

Explanation:

Solution

THE CODE

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

  int key;

      // do while loop to run the program up to user wants to quit "to quit enter any number except 1 "

      do

      {

              int n,i=0,mtbf[100]; //declaring array to store the mtbf values of the n components

              float result=0,result1;

      cout<<"\n Enter number of components";

          cin>>n;

          while(i<n) // reading mtbf values into the array

          {

              cout<<"\n Enter MTBF(Mean time between failure)==>";

              cin>>mtbf[i];

              i++;

          }

          i=0;

          while(i<n) //in this while loop first i calculate the denominator part i.e (1/mtbf[i])+(1/mtbf[i])...

          {

              result+=(1.0/mtbf[i]);

              i++;

          }

          result1=1/result; //this value calculate the total MTBF of the system

          cout<<"\n The MTBF of SYSTEM is\t"<<result1;

          cout<<"\n Another system to check? enter 1 for yes";

          cin>>key;

      }while(key==1);      

}

You might be interested in
What are three consequences of a negative digital Trail​
Vladimir79 [104]

Answer:

The digital footprint that is had behind can have repercussions in every aspect of your adolescent's life, conceivably bringing about botched occupation chances, public sharing of individual data, destroyed connections

Explanation:

Digital trail what's left behind as you calmly peruse the web, post via web-based media or even sort into a visit administration. Regardless of whether you're mindful, you add to your advanced impression or profile every day when you sign onto the Internet. The sites you visit, the news posts you remark on, the remarks you leave via web-based media stages—every one of these things meet up to make a representation of your online life.  

The digital footprint that is had behind can have repercussions in every aspect of your adolescent's life, conceivably bringing about botched occupation chances, public sharing of individual data, destroyed connections — or, in what is likely more pertinent to them at this moment: Their folks discovering what they've been up to and along these lines being rebuffed.

8 0
3 years ago
Which character formatting effect makes text appear in a small font size below the midpoint of a line of text
pav-90 [236]

Answer:

Superscript or Subscript

Explanation:

The superscript or the subscript is a type of character which is set a little lower or more than the normal line of type. And it is generally small as compared to the other texts. The subscript does appear at or less than the baseline, and the superscript is above. And for the superscript, you need to press the Ctrl + Shift + + ( press and at the same time also hold the Ctrl and the Shift, and finally press the +). And for the subscript, you need to press the Ctrl + Shift ++(Press and at the same time also hold the Ctrl. and finally press the =). And pressing the corresponding shortcut once again, you will be back to the normal text.

4 0
3 years ago
Which function in Spell Checker should Patrick use if he makes the same mistake frequently when typing emails?
Olin [163]

Answer:

Explanation:

Click Spelling and Grammar and choose AutoCorrect,

4 0
4 years ago
Mark for review (Will be highlighted on the review page) 3. Which one of the following word processing features saves you the mo
Maksim231197 [3]
B- find and replace can replace any word in the document with another.

7 0
4 years ago
Give a recursive version of the algorithm Insertion-Sort (refer to page 18 in the textbook) that works as follows: To sort A[1..
Inga [223]

Answer:

see explaination

Explanation:

void insertion( int e,int *x, int start, int end)

{

if (e >= x[end])

x[end+1] = e;

else if (start < end)

{

x[end+1] = x[end];

insertion(e, x, start, end-1);

}

else

{

x[end+1] = x[end];

x[end] = e;

}

}

void insertion_recurssion(int *b, int start, int end)

{

if(start < end)

{

insertion_sort_recur(b, start, end-1);

insertion(b[end], b, start, end-1);

}

}

void main()

{

insertion_recurssion(x,0,5);

}

3 0
3 years ago
Other questions:
  • What type of file can most software applications read?
    5·2 answers
  • Short Essay on the history of Computer​
    6·2 answers
  • Match the installation type to its description.
    9·1 answer
  • Determine which Software Type on the right best corresponds to each Definition on the left. Then, click the Definition, and then
    8·1 answer
  • Recently, Walmart offered a wireless data contract based on bandwidth used, with a minimum monthly charge of $42 for up to 5 gig
    15·1 answer
  • Whats yall favv scary movie
    11·1 answer
  • when working with smart which tab would provide the ability to change the shape or size of the smart art shapes
    15·2 answers
  • How do i code........​
    6·2 answers
  • Imagine that a team of scientists test a certain hypothesis, and the experimental results show that it is false.
    6·1 answer
  • Prokaryotes are __________________ and include ________________________.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!