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
Darya [45]
3 years ago
7

What are the functions of each computer program

Engineering
1 answer:
Ludmilka [50]3 years ago
4 0
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. ... Different programming languages name them differently, for example, functions, methods, sub-routines, procedures, etc.
You might be interested in
A fluid of density 900 kg/m3 passes through a converging section of an upstream diameter of 50 mm and a downstream diameter of 2
NISA [10]

Answer:

Q= 4.6 × 10⁻³ m³/s

actual velocity will be equal to 8.39 m/s

Explanation:

density of fluid = 900 kg/m³

d₁ = 0.025 m

d₂ = 0.05 m

Δ P = -40 k N/m²

C v = 0.89

using energy equation

\dfrac{P_1}{\gamma}+\dfrac{v_1^2}{2g} = \dfrac{P_2}{\gamma}+\dfrac{v_2^2}{2g}\\\dfrac{P_1-P_2}{\gamma}=\dfrac{v_2^2-v_1^2}{2g}\\\dfrac{-40\times 10^3\times 2}{900}=v_2^2-v_1^2

under ideal condition v₁² = 0

v₂² = 88.88

v₂ = 9.43 m/s

hence discharge at downstream will be

Q = Av

Q = \dfrac{\pi}{4}d_1^2 \times v

Q = \dfrac{\pi}{4}0.025^2 \times 9.43

Q= 4.6 × 10⁻³ m³/s

we know that

C_v =\dfrac{actual\ velocity}{theoretical\ velocity }\\0.89 =\dfrac{actual\ velocity}{9.43}\\actual\ velocity = 8.39m/s

hence , actual velocity will be equal to 8.39 m/s

6 0
2 years ago
Find the largest number. The process of finding the maximum value (i.e., the largest of a group of values) is used frequently in
salantis [7]

Answer:

See Explanation

Explanation:

Required

- Pseudocode to determine the largest of 10 numbers

- C# program to determine the largest of 10 numbers

The pseudocode and program makes use of a 1 dimensional array to accept input for the 10 numbers;

The largest of the 10 numbers is then saved in variable Largest and printed afterwards.

Pseudocode (Number lines are used for indentation to illustrate the program flow)

1. Start:

2. Declare Number as 1 dimensional array of 10 integers

3. Initialize: counter = 0

4. Do:

4.1 Display “Enter Number ”+(counter + 1)

4.2 Accept input for Number[counter]

4.3 While counter < 10

5. Initialize: Largest = Number[0]

6. Loop: i = 0 to 10

6.1 if Largest < Number[i] Then

6.2 Largest = Number[i]

6.3 End Loop:

7. Display “The largest input is “+Largest

8. Stop

C# Program (Console)

Comments are used for explanatory purpose

using System;

namespace ConsoleApplication1

{

   class Program

   {

       static void Main(string[] args)

       {

           int[] Number = new int[10];  // Declare array of 10 elements

           //Accept Input

           int counter = 0;

           while(counter<10)

           {

               Console.WriteLine("Enter Number " + (counter + 1)+": ");

               string var = Console.ReadLine();

               Number[counter] = Convert.ToInt32(var);

               counter++;                  

           }

           //Initialize largest to first element of the array

           int Largest = Number[0];

           //Determine Largest

           for(int i=0;i<10;i++)

           {

               if(Largest < Number[i])

               {

                   Largest = Number[i];

               }

           }

           //Print Largest

           Console.WriteLine("The largest input is "+ Largest);

           Console.ReadLine();

       }

   }

}

8 0
3 years ago
Find Re,Rc,R1 and R2!? Show your work.(hlp plz)
Brums [2.3K]
Can u be more clear with the question plsss?
3 0
3 years ago
Write a MATLAB program in a script file that calculate the average, standard
Kryger [21]

Answer:

Code in MATLab is given as  below:

Explanation:

grade = input('Enter the grades as elements of a vector ');

x1 = length(grade);

fprintf('There are %5.2f grades\n',x1);

x2 = mean(grade);

fprintf('The average grade is %5.2f \n',x2);

x3=std(grade);

fprintf('The standard deviation is %5.2f \n',x3);

x4 = median(grade);

fprintf('The median grade is %5.2f \n',x4);

7 0
3 years ago
Read 2 more answers
A CL soil is being used for compacted fill on a project. A sample of the compacted soil with a total volume of 1/30 ft3 weighs 4
Genrish500 [490]

Answer:

A. 0.4

B. 1.003

C. 0.83

Explanation:

The void ratio of a mixture is defined as the ratio of the volume of voids to volume of solids.

Total volume of soil = 1/30 ft3

= 1 ft3/30 * 0.0283 m3/1 ft3

= 9.43 x 10^-4 m3

Mass of water is in the soil = 20% * 4.8

= 0.96 pounds of water

= 0.96 * 0.454

= 0.44 kg

SG = density of substance/density of water

= 2.66 * 1 kg/l

Density of the soil = 2.660 kg/l

Mass of solid = 80 %

= 80% * 4.8 * 0.454

= 1.74 kg

Volume of solids = mass/density

= 1.74/2.66

= 6.63 l

= 6.63 x 10^-4 m3.

The volume of voids is found by adding the volume of water and the volume of air.

Total volume of soil = volume of (solids + voids)

9.43 x 10^-4 = 6.63 x 10^-4 + voids

Volume of voids = 2.8 x 10^-4 m3

A.

Void ratio = volume of void : volume of solids

= 2.8 : 6.63

= 0.4

B.

Y = (1 + w) * Gs * Yw * (1 + e)

Y = moist unit weight

Yw = unit weight of water

w = moisture content of the material

Gs = pecific gravity of the solid

e = void ratio

= (1 + 0.2) * 2.66 * 0.44 * (1 + 0.4)

= 1.003.

C.

gd = Y/(1 + w)

Or

= Gs * Yw * 1/(1 + e)

= 0.83.

6 0
3 years ago
Other questions:
  • Which of the following factors does not promote safety in the shop?
    15·1 answer
  • A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
    6·2 answers
  • Explain the differences between planned and predictive maintenance.
    12·1 answer
  • I need answers for this sheet please.
    15·1 answer
  • Which traditional subject is part of construction management or construction science syllabi?
    5·1 answer
  • What is the ideal cooling system for low horsepower motor? For example1hp motor
    9·1 answer
  • Users say that the game is interesting to look at but the music gets annoying
    9·1 answer
  • Test if a number grade is an A (greater than or equal to 90). If so, print "Great!". Hint: Grades may be decimals. Sample Run En
    15·1 answer
  • What is a transition? A. An animation that happens on a single slide B. An outline format that uses roman numerals C. An image f
    10·1 answer
  • ) If the blood viscosity is 2.7x10-3 Pa.s, length of the blood vessel is 1 m, radius of the blood vessel is 1 mm, calculate the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!