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
coldgirl [10]
3 years ago
13

Write an ALP to separate odd and even numbers from an array of N numbers; arrange odd

Engineering
1 answer:
Marta_Voda [28]3 years ago
6 0

Below is the program to separate odd and even numbers                                  

<u>Explanation</u>:

<u>L1:</u>

         mov ah,00

         mov al,[BX]

         mov dl,al

         div dh

         cmp ah,00

         je EVEN1

         mov [DI],dl

         add OddAdd,dl

         INC DI

         INC BX

         Loop L1

         jmp CAL

    <u>EVEN1:</u>

         mov [SI],dl

         add Even Add,dl

         INC SI

         INC BX

         Loop L1

    <u>CAL:   </u>  

         mov ax,0000

         mov bx,0000

         mov al,OddAdd

         mov bl,EvenAdd

         MOV  ax,4C00h

         int 21h

end

The above program separates odd and even numbers from the array using 8086 microprocessor. It has odd numbers in 2000h and even numbers in 3000h.

You might be interested in
If a car sits out in the sun every day for a long time can light from the sun damage the car paint
Reika [66]

Answer:

i think yes it could make the color go lighter

Explanation:

6 0
3 years ago
Read 2 more answers
An insulated piston-cylinder device contains 0.15 of saturated refrigerant-134a vapor at 0.8 MPa pressure. The refrigerant is no
Stells [14]

Answer:

Assumption:

1. The kinetic and potential energy changes are negligible

2. The cylinder is well insulated and thus heat transfer is negligible.

3. The thermal energy stored in the cylinder itself is negligible.

4. The process is stated to be reversible

Analysis:

a. This is reversible adiabatic(i.e isentropic) process and thus s_{1} =s_{2}

From the refrigerant table A11-A13

P_{1} =0.8MPa   \left \{ {{ {{v_{1}=v_{g}  @0.8MPa =0.025645 m^{3/}/kg } } \atop { {{u_{1}=u_{g}  @0.8MPa =246.82 kJ/kg } -   also  {{s_{1}=s_{g}  @0.8MPa =0.91853 kJ/kgK } } \right.

sat vapor

m=\frac{V}{v_{1} } =\frac{0.15}{0.025645} =5.8491 kg\\and \\\\P_{2} =0.2MPa  \left \{ {{x_{2} =\frac{s_{2} -s_{f} }{s_{fg }}=\frac{0.91853-0.15449}{0.78339}   = 0.9753 \atop {u_{2} =u_{f} +x_{2} }(u_{fg}) =  38.26+0.9753(186.25)= 38.26+181.65 =219.9kJ/kg \right. \\s_{1} = s_{2}

T_{2} =T_{sat @ 0.2MPa} = -10.09^{o}  C

b.) We take the content of the cylinder as the sysytem.

This is a closed system since no mass leaves or enters.

Hence, the energy balance for adiabatic closed system can be expressed as:

E_{in} - E_{out}  =ΔE

w_{b, out}  =ΔU

w_{b, out} =m([tex]u_{1} -u_{2)

w_{b, out}  = workdone during the isentropic process

=5.8491(246.82-219.9)

=5.8491(26.91)

=157.3993

=157.4kJ

4 0
3 years ago
What does a manufacturing engineer do?
Lisa [10]

Answer: Manufacturing engineers may be responsible for solving production problems, conducting cost-benefit assessments, or designing and manufacturing goods and systems using computer-aided design software. Plant engineers and process engineers are two terms used by professionals in this industry. Manufacturing engineers are in charge of new and existing production lines' technical management, maintenance, and development. Employers are looking for people that are commercially aware and have good technical and analytical skills. They are in charge of keeping production costs low while preserving the product or service's quality, and they have considerable project expertise and insight.

Explanation: See above.

I hope this helps.

6 0
2 years ago
Read 2 more answers
Which of the following is true about the n-way analysis of variance (ANOVA)?
Ne4ueva [31]

Answer:

It is a type of ANOVA that can analyze several independent variables at the same time.

Explanation:

This is the statement that correctly describes the n-way analysis of variance (ANOVA). ANOVA is a type of analysis of variance that can analyze several independent variables at the same time. In this type of analysis, a dependent variable is measured by different levels of independent variables. When the results are obtained, these are assumed to be the consequence of the different levels of the independent variables, plus random error. The computation necessary for this analysis can be done in most types of statistical software.

7 0
3 years ago
What is rainfall intensity
bearhunter [10]

Answer:

Rainfall intensity is defined as the ratio of the total amount of rain (rainfall depth) falling during a given period to the duration of the period It is expressed in depth units per unit time, usually as mm per hour (mm/h).

3 0
2 years ago
Read 2 more answers
Other questions:
  • The type of current that flows from the electrode across the arc to the work is called what?
    5·1 answer
  • suppose a wheel with a 15 inch diameter is used to turn a water valve stem with a radius of .95 inches. What is the Mechanical a
    15·1 answer
  • Sadadasdasdasdasdadaaasd1
    14·1 answer
  • An inventor claims to have developed a heat engine that produces work at 10 kW, while absorbing heat at 10 kW. Evaluate such a c
    12·1 answer
  • Write a program that asks the user to enter a list of numbers. The program should take the list of numbers and add only those nu
    7·1 answer
  • State 3 advantages and 3 disadvantages of unit rate contract​
    10·1 answer
  • Which cod is the best whoever has the best awnser gets brainliest​
    12·1 answer
  • Liquefied Natural Gas (LNG) is a natural gas in its liquid form that is clear, colorless, odorless, non-corrosive, and non-toxic
    5·1 answer
  • Why the power factor is Low in no load test in induction motor ?​
    13·1 answer
  • The sum of forces on node 2 (upper-left) is ______.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!