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
sergiy2304 [10]
3 years ago
5

6.27 LAB: Convert to binary - functions Write a program that takes in a positive integer as input, and outputs a string of 1's a

nd 0's representing the integer in binary. For an integer x, the algorithm is:
Engineering
1 answer:
Olin [163]3 years ago
4 0

Answer:

//Convert any decimal number to binary number

//Program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program starts here

#include <iostream>

using namespace std;

// Main Method declared here

int main()

{

    int x;

   cout<<"Enter any integer number: ";

    cin>>x;

   DecBin(x);

   return 0;

}

// Here a function named DecBin is declared along with an integer variable, x

void DecBin(int x)

{

   // Declare an array to store the resulting binary digits

   int bindigit[32];

   // counter for binary array

   int kount = 0;

   while (x > 0) {

       // Store the remainder of each division in the declared array

       bindigit[kount] = x % 2;

       x = x / 2;

       kount++;

   }

   // Loop to print the binary digits in reverse order

   for (int j = i - 1; j >= 0; j--)

          {

       cout << bindigit[j];

        }

}

// End of Program

You might be interested in
Thoughts on Anime?<br> Whats your fav
nlexa [21]
Is miraculous ladybug one
5 0
3 years ago
Read 2 more answers
You are preparing to work with Chemical A. You open the appropriate storage cabinet, and notice Chemical B, as well as Chemical
PtichkaEL [24]

The correct answer is; Stability and reactivity.

Further Explanation:

The stability and reactivity section of the SDS sheets is where to check for the possibility of hazardous reactions for the chemicals. This also lists the chemical stability of each chemical that people may be using. This can be found in section 10 of the OSHA Quick Card.

The SDS sheets has 16 sections for employees to use. Since 2015, the sections can be found in uniform format for easier and faster ways to find the section needed. The 16 sections for the SDS sheets are:

  1. Identification
  2. Hazard(s) identification
  3. Composition/information on ingredients
  4. First-aid measures
  5. First-aid measures
  6. First-aid measures
  7. Handling and storage
  8. Exposure controls/personal protection
  9. Physical and chemical properties
  10. Stability and reactivity
  11. Toxicological information
  12. Ecological information
  13. Disposal considerations
  14. Transport information
  15. Regulatory information
  16. Other information

Learn more about SDS sheets at brainly.com/question/9753408

#LearnwithBrainly

5 0
4 years ago
Hỗ trợ mình với được không các bạn
Leya [2.2K]

Answer:

Explanation:

Be bop

6 0
3 years ago
Express the Internal Energy and Entropy as a Function of T and V for a homogeneous fluid. Develop the same relations using the i
DedPeter [7]

Answer:

dU=C_{v} dT+(T(\frac{\beta }{\kappa })  -P)dV

dS=C_{v} \frac{dT}{T} +(\frac{\beta }{\kappa } ) dV

Explanation:

The internal energy is equal to:

dU=C_{v} dT+(T(\frac{\delta P}{\delta T} )_{v} -P)dV

The entropy is equal to:

dS=C_{v} \frac{dT}{T} +(\frac{\delta P}{\delta T} )_{v} dV

If we write the pressure derivative in terms of isothermal compresibility and volume expansivity, we have

\frac{\delta P}{\delta T}=\frac{\beta }{\kappa }

Replacing:

dU=C_{v} dT+(T(\frac{\beta }{\kappa })  -P)dV

dS=C_{v} \frac{dT}{T} +(\frac{\beta }{\kappa } ) dV

4 0
3 years ago
Air, at a pressure of 700 kPa and a temperature of 80°C, flows through a convergent– divergent nozzle. The inlet area is 0.005 m
vodomira [7]

Answer: The complete part of the question is to find the exit velocity

Explanation:

Given the following parameters

Inlet pressure = 700kpa

outlet pressure = 40kpa

Temperature = 80°C = 353k

mass flow rate =  1 kg/s

The application of the continuity and the bernoulli's equation is employed to solve the problem.

The detailed steps and the appropriate formula is as shown in the attached file.

7 0
4 years ago
Other questions:
  • 7. With the instruments located on the high-voltage side and with the low-voltage side short-circuited, the short-circuit test r
    13·2 answers
  • According to OSHA, employers must_____ and _____ hazardous chemicals in the workplace. Which selection completes the sentence to
    14·1 answer
  • 2.18 The net potential energy between two adjacent ions, EN, may be represented by the following equation: (1) Calculate the bon
    5·1 answer
  • A Barnes and Books is interested in purchasing a two-story building for a new
    5·1 answer
  • An open-open organ pipe is 73.5 cm long. An open-closed pipe has a fundamental frequency equal to the third harmonic of the open
    11·2 answers
  • Hey answr this sajida Yusof
    15·2 answers
  • An exit sign must be:Colored in a way that doesn’t attract attentionIlluminated by a reliable light sourceAt least 3 inches tall
    14·1 answer
  • Steam enters a heavily insulated throttling valve at 11 MPa, 600°C and exits at 5.5 MPa. Determine the final temperature of the
    14·1 answer
  • Which of the following is not a task electricians typically do when maintaining a building’s electrical system?
    5·1 answer
  • 1) Plastics that soften when heated,harden when cooled, and then can be heated and softened many times
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!