Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

main. c header file .c file Don't know what's wrong. I have done the 'int' before and after the ( , and still have an

image text in transcribed

main. c

image text in transcribed

header file

image text in transcribed

image text in transcribed

.c file

Don't know what's wrong. I have done the 'int' before and after the ( , and still have an error message. I don't understand what the error is and I am really confused as to why this is happening. Please explain to me in vivid detail as to why this is happening. I've been stuck on this all day and I am losing my mind. BTW this is for C programing on Code:::Blocks, nothing else. Thanks

main.cxlrand-float.C XI rand-float.h para 6 #include 7 #include 8 #include 9 #include "rand float . h" 10 11 Bint main (void) 12 13 14 15 16 17 18 19 20 21 Declare variable unsigned int seed: int n, k double component reliability, a series, a parallel, series success o. parallel success 0 numl, num2, num3 double rand float (double a, double b) //iGet intormation forl the simu printf ("Enter individual component reliability: Nn") scanf ("81f", &component reliability) printf ("Enter number of trials: Nn") scanf ( n %i", &n) ; printf ("Enter unsigned integer seed: Nn") a scanf ("%u", &seed) ; srand (seed): printf (n") 23 24 25 26 27 28 29 30 31 32 a series pow (component reliability, 3) a-parallel = 3*component-reliability 3 pow (component reliability,2) + pow (component reliability.3) 34 35 36 37 38 39 40 41 42 43 /Print resullts printf ("Analytical Reliability printf ( "Series : 8. 3f Parallel : Nn") 3f ", a series, a parallel) : ",n); printf ("simulation Reliability, %1 trials printf ("Series: %.3f Parallel: .3t 'in", (double) series success, (double) parallel success): // Exit program return 0 45 46 47

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago