Write a program in FORTRAN90 that asks the user to select an interval [a b] and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program in FORTRAN90 that asks the user to select an interval [a b] and prints 1) the sum of even numbers belonging to the interval and their number 2) the sum of the odd numbers belonging to the interval and their number 3) the sum of the prime numbers belonging to the interval and their number 4) the average of the numbers belonging to the interval 5) the number of all the numbers belonging to that interval Write a program in FORTRAN90 that asks the user to select an interval [a b] and prints 1) the sum of even numbers belonging to the interval and their number 2) the sum of the odd numbers belonging to the interval and their number 3) the sum of the prime numbers belonging to the interval and their number 4) the average of the numbers belonging to the interval 5) the number of all the numbers belonging to that interval
Expert Answer:
Answer rating: 100% (QA)
Heres a FORTRAN90 program that prompts the user to enter an interval a b and then performs the reque... View the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
A project manager begins to prepare the project management plan after receiving the project charter. There is currently NO historical information in the project management office (PMO). What next...
-
Alpha Company used the periodic inventory system for purchase & sales of merchandise. Discount terms for both purchase & sales are, FOB Destination, 2/10, n30 and the gross method is used. > Alpha...
-
Stahelin Valves produces a single component, a valve. The valve sells for $43 per unit. Fixed costs are $1,605,000 annually. Production and sales of 407,000 units annually results in profit before...
-
You are looking to help a small municipality finance their drinking water treatment facility with the installation of UV (ultraviolet) disinfection. The total cost of the project is estimated to be...
-
Locate the center of mass xc of the hemisphere. The density of the material varies linearly from zero at the origin O to o at the surface. Hint: Choose a hemispherical shell element for integration
-
Write down the allocations for cash and for hedge funds in your group project and briefly comment on whether your group found it appropriate.
-
For each of the following, calculate the \(t\)-test for independent means. a. X 13.49,X 23.14, sX-1-X-2 = .31 b. X 113.27, X 2 = 16.45, sX 1-X 2 = 1.52 c. X 1.76, X 2.91, sX 1-X 2 = .09 d. X 11.52, X...
-
Heller Manufacturing has two production facilities that manufacture baseball gloves. Production costs at the two facilities differ because of varying labor rates, local property taxes, type of...
-
Consider the following systems of linear equations: X1+0.5x2+x3 = -1 3x1+0.2x2 + 2x3 = 0 2x1 +0.1X2+X3 = 1 (a) Put the equation in compact matrix form Ax = B. (b) Find the inverse of matrix A using...
-
Part A Read Dean v. Dickey in Appendix A. Identify the issue regarding the validity of the will. Part B Read United States v. Martinez-Jimenez in Appendix A. Identify the issue concerning whether the...
-
Let y = variance (y1, y2,93) be a 3-dimensional multivariate normal random vector with mean and -B. 4 (a) Find the eigenvalues and eigenvectors of V. (b) Find the distribution of 21 = 3y + 2y2 + y3....
-
Exercise 19 investigated Benfords law, a discrete distribution with pmf given by p(x) = log10((x + 1)/x) for x = 1, 2, , 9. Use the inverse cdf method to write a program that simulates the Benfords...
-
Exercise 40 describes the game Plinko from The Price is Right. Each contestant drop between one and 5 chips down the Plinko board, depending on how well s/he prices several small items. Suppose the...
-
A PV system is being considered for a building with a load of 8 kW. The PV system will be approximately 16% efficient. Approximate the PV array size (in ft 2 ) required to meet this load at the...
-
The figure shows a sketch of the curve with equation y = f(x). On separate axes sketch the curves with equations: a. y = f( x) b. y = f(x) Mark on each sketch the x-coordinate of any point, or...
-
Which of the following graphs would be best for visually illustrating the data in the table: histogram; dotplot; scatterplot; Pareto chart; stemplot? Refer to the table in the margin, which...
-
C++ program to simulate a game of Blackjack between two to four players. Your program must incorporate a two-dimensional array to represent the suit and the value of each card dealt to a player, keep...
-
Explain how two samples can have the same mean but different standard deviations. Draw a bar graph that shows the two samples, their means an standard deviations as error bars. T S
-
Write an if-else statement that displays the String objects title1 and title2 in alphabetical order.
-
A byte is made up of eight a. CPUs b. Addresses c. Variables d. Bits
-
What happens when you serialize an object? What happens when you deserialize an object?
-
If investors are holding optimal portfolios, how will the portfolios of a more risk averse and a more risk-tolerant investor differ?
-
Using the data from Table 11.3, what is the covariance between the stocks of Alaska Air and Southwest Airlines? Alaska Southwest Ford General Microsoft HP Air Airlines Motor Kellogg Mills Volatility...
-
According to the managerial entrenchment theory, managers choose capital structures so as to preserve their control of the firm. On the one hand, debt is costly for managers because they risk losing...
Study smarter with the SolutionInn App